Skip to content
MCP server

PDF.co

Convert, merge, split, OCR, search and fill PDFs through the PDF.co API from an AI client

Runs locally

PDF.co is an MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Platforms
API, CLI
Runs
Locally
Access
Needs a secret key or token
Version
0.0.13
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pdfco-mcp": {
      "command": "uvx",
      "args": [
        "pdfco-mcp"
      ],
      "env": {
        "X_API_KEY": "<X_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • X_API_KEYYour PDF.co API key (from https://app.pdf.co)Required

About PDF.co

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.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Pricing unknown

Requires a PDF.co API key; plan prices not listed here

Prices change. Check developer.pdf.co before you buy.

PDF.co 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.

How AIPoweredBot checks servers