Guide · AI
How to connect Claude to your PDFs with MCP
Reviewed

Short answer
To connect Claude to your PDFs, add PDFBetter's MCP server https://pdfbetter.com/api/mcp/ as a custom connector in Claude (on the web or in Claude Desktop) and click Allow and connect on the PDFBetter sign-in screen; no key to copy. In Claude Code or Cursor, create an agent key under Settings → Agents (MCP) and add the server with the header “Authorization: Bearer <your key>”: one command in Claude Code, or mcp.json in Cursor. Then ask for an outcome, such as “Merge my three latest invoices and give me the link”, and Claude calls PDFBetter's tools on your documents.
On this page (7)
Before you start
You need a PDFBetter account; agent access is included on every account plan, with 200 agent calls a month on Free and 5,000 on Pro. Each successful tool call counts once. The work a call triggers — exports, conversions, OCR pages, AI credits — uses the same allowances as doing it in the app.
MCP (Model Context Protocol) is an open standard that lets an AI assistant call tools on another service. PDFBetter's server speaks Streamable HTTP and accepts OAuth sign-in from Claude and ChatGPT, or a key in a header from any client that supports remote servers with custom headers.

- Edit & fill, Invite to sign and Create form are three modes of the same editor
- Amounts are formula fields: they calculate as you type
- The field navigator counts what's left and jumps to the next field
The editor in Edit & fill mode on an invoice template. Sample content; names and companies are fictional.
Connect step by step
- 1
Claude and Claude Desktop
Add a custom connector with the URL https://pdfbetter.com/api/mcp/, then sign in to PDFBetter and click Allow and connect. The connection appears in Settings → Agents (MCP) as a key named Claude, with every agent permission.
- 2
Or create an agent key
For Claude Code, Cursor or narrower permissions, open Settings → Agents (MCP) and name the key after the client, such as “Claude Code on my laptop”. Tick only the permissions it needs — for example Read documents and Use AI — and copy the key. It starts with pb_mcp_ and is shown once.
- 3
Claude Code
Run: claude mcp add --transport http pdfbetter https://pdfbetter.com/api/mcp/ --header "Authorization: Bearer pb_mcp_…". Add --scope user to use it in every project.
- 4
Cursor
Add the server's URL and an Authorization header to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). The settings page has the exact JSON.
- 5
Test it
Ask: “List my five most recent PDFBetter documents.” If you see your documents, the connection works.
Prompts that work well
Ask for a result, not a tool. “What is the notice period in the lease? Quote the page.” gets a cited answer. “Fill the W-9 with my company details and give me a download link” lists the form's fields, fills them and exports a new revision. “Extract the invoice number, date and total from these five invoices as CSV” uses data extraction if the key allows it.
Local files work too: the agent asks PDFBetter for an upload link, uploads the file and creates a document from it. Results come back as new documents, new revisions and download links that expire after a few minutes, so originals are never overwritten.
Keep it safe
Use one key per client so you can revoke one without breaking the others, and give each key the narrowest permissions that work. Revoking a key in Settings cuts off that client immediately. Keys belong in an MCP client or a server; PDFBetter refuses calls made from web pages.
Agents can't send signature requests, delete documents, change account settings or apply redactions. Workflow review steps wait for a person unless you explicitly allowed agent approval on that step.
If it doesn't connect
Check the URL keeps its trailing slash and the header reads exactly “Authorization: Bearer pb_mcp_…”. An authorization error means the key was mistyped or revoked; a permission error names the scope the key is missing. If AI answers say pages weren't read, those pages are scans without a text layer — ask the agent to OCR the document first.
Tools used in this guide
- Chat with PDFUpload a PDF and ask questions in plain language; every answer points to the pages it is based on.
- PDF to JSONChoose the fields you need, run it on one PDF or a whole batch, and check each value against the quote and page it came from before exporting.
- Fill PDFOpen the form, move through every field with Tab, fill it in, and download a completed PDF that keeps or locks your answers.
- Merge PDFDrop in two or more PDFs, set the file and page order, and download one combined PDF.
- OCR PDFUpload a scan, pick its language, and download a PDF that looks the same but lets you search, select and copy the text.
Questions people ask
Does Claude Desktop need the mcp-remote bridge?
No. Claude Desktop's custom connectors sign in to PDFBetter with OAuth. A key-based config through mcp-remote still works if you already use one.
Can Claude change my original PDFs?
No. Page tools create new documents, and filling fields or OCR save a new revision while earlier revisions stay in the version history.
What happens when I run out of agent calls?
Further tool calls are refused with a message until your plan period resets or you upgrade. Failed calls never count.
Does this work with ChatGPT or other assistants?
Yes. ChatGPT connects the same way as Claude: add the URL as a custom MCP server with OAuth and allow it on the PDFBetter screen. Any other MCP client that supports remote Streamable HTTP servers with a custom Authorization header connects with an agent key.
Is my document sent to Anthropic?
Whatever the agent reads from a tool result goes to the model your client uses, under that provider's terms. Ask for cited answers or extracted fields instead of whole documents when you want to share less.