PDF Coder MCP server

AI assistants and agents can use PDF Coder through the Model Context Protocol (MCP): read a PDF as Markdown, OCR a scan, compress, merge or convert files, fill forms and generate invoices.

  • Address: https://pdfcoder.com/mcp (Streamable HTTP)
  • Sign-in: your PDF Coder API key as Authorization: Bearer YOUR_API_KEY. Create one on your account page.
  • Each tool call counts against your plan, like an API call.

Set up your client

Claude Code

claude mcp add --transport http pdfcoder https://pdfcoder.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pdfcoder": {
      "url": "https://pdfcoder.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "pdfcoder": {
      "type": "http",
      "url": "https://pdfcoder.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

Apps that only add connectors through OAuth sign-in cannot connect yet: the server accepts API keys for now.

Tools

  • pdf_to_markdown: Convert a PDF to Markdown and return the Markdown inline: headings, paragraphs, lists and tables, without images.
  • pdf_to_text: Extract the plain text of a PDF, page by page, returned inline (up to 200,000 characters).
  • ocr_pdf: OCR a scanned PDF or an image (PNG, JPG, TIFF, BMP, GIF, WebP): returns the recognised text inline and a searchable PDF to download.
  • compress_pdf: Compress a PDF.
  • merge_pdfs: Merge two or more PDFs into one, in the order given.
  • split_pdf: Split a PDF into one PDF per page; returns a ZIP to download.
  • extract_pages: Save chosen pages of a PDF as a new PDF, or with separate=true one PDF per comma-separated part in a ZIP.
  • convert_to_pdf: Convert a document to PDF: Word (docx), Excel (xlsx, xls), PowerPoint (pptx), OpenDocument (odt, ods, odp), RTF, HTML, Markdown (md), text (txt) or EPUB.
  • convert_pdf: Convert a PDF to another format: docx, xlsx, pptx, txt, md, html, epub, or images (jpg, png, webp; dpi 72, 150 or 300; more than one page gives a ZIP).
  • list_form_fields: List a PDF form's fillable fields: name, kind (text, checkbox, radio, dropdown, list), current value and options.
  • fill_pdf_form: Fill a PDF form: values maps field names (see list_form_fields) to values: text as a string, checkboxes true/false, radio groups and lists by option.
  • generate_invoice: Generate an invoice, quote, receipt, pro-forma invoice or credit note PDF from structured data: the document the PDF Coder invoice generator builds (country profile, doc_type, seller, buyer, items with quantity and price, dates, currency).

Files go in as base64 (with a file name) or as a public https address. Results that are files come back as a download link that works for about an hour. Text taken from a document is returned as data for your assistant, never as instructions to it.