# ExactPDF

> ExactPDF is a freemium MCP server for files and documents. Local MCP client for ExactPDF: merge, split, compress and convert PDFs to Markdown. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://exactpdf.com/docs/api
- **Repository:** https://github.com/smmallya/exactpdf/tree/HEAD/packages/exactpdf-mcp
- **MCP Registry name:** com.exactpdf/mcp
- **Categories:** files and documents
- **Listing updated:** 2026-11-15

## About

This npm package is a small local stdio client that calls ExactPDF's hosted API, so PDF work runs on ExactPDF servers rather than in your editor. It can start without a key and give setup guidance, but processing needs an EXACTPDF_API_KEY, and credits are metered per call. New API users get 20 free test credits.

The API side covers merge, split, rotate, compress, images to PDF, text extraction, PDF to JSON and structured Markdown. Markdown has developer, academic and RAG modes, with output as Markdown, JSON with page provenance, or JSONL chunks; a source-pack option is described for agent ingestion. Compression takes a target size and reports whether it was reached, which helps with portal upload limits. The docs are explicit about limits: no OCR, images are not extracted, tables stay as reading-order text, and scanned PDFs may not shrink much.

There is also bounded English PDF-to-speech with voice preview and cost estimates; other languages are not enabled. Tools named include exactpdf_account and exactpdf_pdf_info.

## Features

- **PDF editing calls:** Merge, split, rotate, compress and turn images into PDFs.
- **Target-size compression:** Aims for sizes such as 100KB to 5MB and reports X-Target-Reached.
- **Structured Markdown:** Developer, academic and RAG modes with JSON or JSONL chunk output.
- **Text-layer JSON:** Per-page text and metadata for agent pipelines.
- **English audio:** Bounded PDF-to-speech jobs with voice preview and cost estimates.
- **Credit metering:** Each successful operation costs a credit; account checks are free.

## Good for

- Merge vendor PDFs and extract text for invoice intake
- Shrink a PDF to meet an upload portal limit
- Convert long reports into RAG-ready chunks
- Split a PDF into per-page files for processing

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp --env EXACTPDF_API_KEY='<EXACTPDF_API_KEY>' -- npx -y @exactpdf/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exactpdf/mcp"
      ],
      "env": {
        "EXACTPDF_API_KEY": "<EXACTPDF_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exactpdf/mcp"
      ],
      "env": {
        "EXACTPDF_API_KEY": "<EXACTPDF_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@exactpdf/mcp"
      ],
      "env": {
        "EXACTPDF_API_KEY": "<EXACTPDF_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exactpdf/mcp"
      ],
      "env": {
        "EXACTPDF_API_KEY": "<EXACTPDF_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exactpdf/mcp"
      ],
      "env": {
        "EXACTPDF_API_KEY": "<EXACTPDF_API_KEY>"
      }
    }
  }
}
```

## Tools

- `exactpdf_account`: Returns credits remaining and key metadata.
- `exactpdf_pdf_info`: Probes a PDF before extraction, conversion or audio.

## FAQ

### Do I need an API key?

Hosted processing needs EXACTPDF_API_KEY; the server starts without one for setup guidance.

### Is there a free trial?

New API users get 20 free test credits.

### Does it do OCR?

No. Scanned PDFs need OCR first, and tables are not reconstructed.

### How does it run?

As a local stdio server installed from npm as @exactpdf/mcp.

### Is ExactPDF free?

ExactPDF has a free plan, with paid plans for more usage or features.

### How do I add ExactPDF to Claude Code?

Run this command in your terminal: claude mcp add mcp --env EXACTPDF_API_KEY='<EXACTPDF_API_KEY>' -- npx -y @exactpdf/mcp

### What are the best alternatives to ExactPDF?

The closest alternatives to ExactPDF are ASTra, CARTESIAN ECU, Invoices, SigPen and ConvertAudioToText.

## Alternatives

- [ASTra](https://ai-powered.com/mcp/astra): ASTra is a freemium MCP server for files and documents.
- [CARTESIAN ECU](https://ai-powered.com/mcp/cartesian-ecu): CARTESIAN ECU is a paid MCP server for files and documents.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [ConvertAudioToText](https://ai-powered.com/mcp/convertaudiototext): ConvertAudioToText is a freemium MCP server for design and media.
- [WhoScribe](https://ai-powered.com/mcp/whoscribe): WhoScribe is a freemium MCP server for design and media.
- [filex](https://ai-powered.com/mcp/filex): filex is an open-source MCP server for files and documents.
- [DocJacket](https://ai-powered.com/mcp/docjacket): DocJacket is a freemium MCP server for productivity.

---
Source: https://ai-powered.com/mcp/exactpdf
