Claude Code + pdfmcp: setup guide

Add pdfmcp to Claude Code with one command, or via .mcp.json.

What you need: a free pdfmcp API key — sign in with your email (no password) and copy the key shown at first login. Then replace pdfmcp_live_YOUR_KEY in the config below.

Where it goes: Terminal, or a .mcp.json file in your project

claude mcp add --transport http pdfmcp https://mcp.pdfmcp.org/mcp --header "Authorization: Bearer pdfmcp_live_YOUR_KEY"

Steps

  1. Get a free API key from the pdfmcp dashboard.
  2. Run the command above (or add the JSON below to .mcp.json in your project root).
  3. Restart Claude Code and run /mcp to confirm pdfmcp is connected.
  4. Try: “Use pdfmcp to merge these two PDFs” or “…to OCR this scan”.

Project-scoped .mcp.json alternative:

Config

{
  "mcpServers": {
    "pdfmcp": {
      "type": "http",
      "url": "https://mcp.pdfmcp.org/mcp",
      "headers": {
        "Authorization": "Bearer pdfmcp_live_YOUR_KEY"
      }
    }
  }
}

Troubleshooting

Try it with

PDF info & metadata On-devicePage count, page sizes, metadata, encryption status as JSON.Merge PDFs On-deviceCombine multiple PDF files into one, in upload order.PDF to text On-deviceExtract plain text, one form-feed separated section per page.

More clients: Claude Desktop MCP setup · ChatGPT MCP setup · Cursor MCP setup · All MCP setup guides · REST API quickstart