# PDF.co

> PDF.co is an MCP server for files and documents. Convert, merge, split, OCR, search and fill PDFs through the PDF.co API from an AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, CLI
- **Website:** https://developer.pdf.co
- **Repository:** https://github.com/pdfdotco/pdfco-mcp
- **MCP Registry name:** io.github.pdfdotco/pdfco-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

Published by PDF.co itself, this local server wraps the company's hosted API, so every call needs a PDF.co API key from the dashboard. It runs through uvx over stdio with an X_API_KEY environment variable, and step-by-step guides exist for Claude Desktop, ChatGPT desktop, Codex CLI, Claude Code, Cursor and VS Code.

Conversion works in both directions. PDFs and scanned images can become JSON, CSV, text, XLS, XLSX, XML, HTML or images; Word, RTF, text, spreadsheets, images, web pages, HTML and email files can become PDFs. Editing covers merging, splitting by page range, adding text, links, images and shapes, and reading, filling or creating form fields.

Analysis tools search text including regular expressions, locate tables, read metadata and security details, and run an AI invoice parser. Others add or remove passwords, make a PDF searchable by OCR or strip its text layer, and extract attachments. Local files are uploaded to PDF.co's servers and long jobs can be tracked by status, so documents leave your machine.

## Features

- **Format conversion:** Turn PDFs into JSON, CSV, text, Excel, XML, HTML or images, and back.
- **Merge and split:** Combine PDFs or split them by page range.
- **Form handling:** Read form fields, fill them and create new form elements.
- **Search and tables:** Regex text search and table location in PDFs.
- **AI invoice parser:** Extracts invoice data using AI.
- **OCR and passwords:** Make scans searchable and add or remove password protection.
- **Job tracking:** Upload local files and check the status of asynchronous jobs.

## Good for

- Convert a scanned PDF to searchable text
- Merge several reports into one PDF
- Fill in a PDF form from structured data
- Extract line items from invoices
- Pull tables out of a PDF into a spreadsheet

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add pdfco-mcp --env X_API_KEY='<X_API_KEY>' -- uvx pdfco-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pdfco-mcp --env X_API_KEY='<X_API_KEY>' -- uvx pdfco-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pdfco-mcp]
command = "uvx"
args = ["pdfco-mcp"]
env = { X_API_KEY = "<X_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e X_API_KEY='<X_API_KEY>' pdfco-mcp uvx -- pdfco-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `pdf_to_json`: Converts PDFs and scanned images to JSON with text, fonts, images and formatting.
- `pdf_to_csv`: Converts PDFs and scanned images to CSV with layout, rows and tables.
- `pdf_to_text`: Converts PDFs and scanned images to text with layout preserved.
- `pdf_to_xls`: Converts PDFs and scanned images to XLS format.
- `pdf_to_xlsx`: Converts PDFs and scanned images to XLSX format.

## FAQ

### Do I need an account?

Yes. You need a PDF.co API key from app.pdf.co, supplied as X_API_KEY.

### Which clients are documented?

Claude Desktop, ChatGPT desktop, Codex CLI, Claude Code, Cursor and VS Code.

### How do I run PDF.co?

With uvx pdfco-mcp over stdio, after installing uv.

### Is PDF.co official?

Yes. The registry entry describes it as the official PDF.co MCP server.

### How do I add PDF.co to Claude Code?

Run this command in your terminal: claude mcp add pdfco-mcp --env X_API_KEY='<X_API_KEY>' -- uvx pdfco-mcp

### What are the best alternatives to PDF.co?

The closest alternatives to PDF.co are Scholar Sidekick, Stashpad, loremfile, Excel-AI-ze and SSRS2.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [loremfile](https://ai-powered.com/mcp/loremfile): loremfile is a free MCP server for developer tools.
- [Excel-AI-ze](https://ai-powered.com/mcp/excel-ai-ze): Excel-AI-ze is an MCP server for files and documents.
- [SSRS2](https://ai-powered.com/mcp/ssrs2): SSRS2 is an MCP server for files and documents.
- [axross headless MCP](https://ai-powered.com/mcp/axross-headless-mcp): axross headless MCP is an open-source MCP server for cloud and infrastructure.
- [PlainByte Shopify Variant Metafields CSV Validator](https://ai-powered.com/mcp/plainbyte-shopify-variant-metafields-csv-validator): PlainByte Shopify Variant Metafields CSV Validator is a paid MCP server for files and documents.
- [Merrowick Tools](https://ai-powered.com/mcp/merrowick-tools): Merrowick Tools is an MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/pdf-co
