PDF Tools for AI Agents – MCP Server, REST API & A2A

Last updated: 2026-12-01

PDF Efforts offers its PDF tools to AI assistants and programs, not only to people in a browser. If you use an AI agent such as Claude, ChatGPT or Cursor, connect it once and it can merge, split, compress, convert, OCR, protect and watermark PDFs for you. If you build agents, call the same 24 tools over MCP, a plain JSON REST API or the A2A protocol. It is free and needs no API key.

Privacy, in plain words: unlike most tools on this website, which run in your browser, everything sent through the agent API is uploaded to and processed on our server. Input files are deleted as soon as the task ends; result files are deleted after 60 minutes. Don't let an agent send documents you are not willing to upload. Details: How we handle your files.

Connection details

WhatAddress
MCP server (Streamable HTTP, no sign-in)https://pdfefforts.com/mcp
REST APIhttps://pdfefforts.com/api/v1/tools (list) and POST https://pdfefforts.com/api/v1/tools/{name}
OpenAPI 3.1 descriptionhttps://pdfefforts.com/openapi.json
A2A agent cardhttps://pdfefforts.com/.well-known/agent-card.json (JSON-RPC endpoint https://pdfefforts.com/a2a)
Summary for language models/llms.txt and /llms-full.txt

Connect your AI assistant

Menu names change from time to time and some apps only offer custom connectors on certain plans; the address to enter is always https://pdfefforts.com/mcp, with no authentication.

Claude

ChatGPT

Where your plan allows custom connectors (developer mode), open Settings → Apps & Connectors, create a connector, and enter the URL above with no authentication.

Cursor

Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "pdfefforts": {
      "url": "https://pdfefforts.com/mcp"
    }
  }
}

VS Code (GitHub Copilot agent mode)

Add this to .vscode/mcp.json:

{
  "servers": {
    "pdfefforts": {
      "type": "http",
      "url": "https://pdfefforts.com/mcp"
    }
  }
}

Any other MCP client

Use the Streamable HTTP transport with the URL above. The server is stateless: no session ID and no server-sent event stream are needed.

How files are passed

Every call returns download links that work for 60 minutes:

{
  "files": [
    {
      "file_id": "3f6c…",
      "name": "merged.pdf",
      "mime_type": "application/pdf",
      "size_bytes": 482113,
      "download_url": "https://pdfefforts.com/agent/files/3f6c…/merged.pdf",
      "expires_at": "2026-12-01T12:00:00.000Z"
    }
  ]
}

The tools

ToolWhat it doesArguments (? = optional)
merge_pdfs
Merge PDFs
Combine 2 to 20 PDF files into one PDF, in the order given. Pages are copied without re-compression.files
split_pdf
Split PDF
Split one PDF into several PDFs: by page ranges (each range becomes a file), every N pages, or one file per page.file, mode?, ranges?, every?
rotate_pdf
Rotate PDF pages
Rotate all or selected pages of a PDF by 90, 180 or 270 degrees clockwise (saved permanently in the file).file, angle?, pages?
delete_pages
Delete PDF pages
Remove pages from a PDF. The remaining pages are copied unchanged.file, pages
extract_pages
Extract PDF pages
Create a new PDF containing only the selected pages, in the order given (e.g. "5, 1, 2" starts with page 5).file, pages
compress_pdf
Compress PDF
Reduce PDF file size with Ghostscript, keeping text as text. Either pick a quality level, or give target_kb to get the best-quality file under that size (reports whether the target was met).file, level?, target_kb?, grayscale?, remove_images?
protect_pdf
Password-protect PDF
Encrypt a PDF with AES-256 so it needs a password to open; optionally block printing, copying or editing. The password is used once and not stored.file, password, block_printing?, block_copying?, block_editing?
unlock_pdf
Unlock PDF
Remove a KNOWN open password and/or editing restrictions from a PDF. Does not crack unknown passwords. Only use on documents the user owns or may open.file, password?
repair_pdf
Repair PDF
Rebuild the internal structure of a damaged or corrupted PDF (qpdf, with a Ghostscript fallback).file
grayscale_pdf
Convert PDF to grayscale
Convert every colour in a PDF to shades of gray; text stays searchable.file
optimize_pdf_for_web
Optimize PDF for web (linearize)
Linearize a PDF ("fast web view") so browsers can show page 1 before the whole file has downloaded.file
convert_to_pdfa
Convert PDF to PDF/A
Convert a PDF to the PDF/A archiving standard (PDF/A-1b, 2b or 3b) with Ghostscript, embedding fonts and an sRGB colour profile.file, level?
office_to_pdf
Word / Excel / PowerPoint to PDF
Convert an office document to PDF with LibreOffice: .doc, .docx, .odt, .rtf, .txt, .xls, .xlsx, .ods, .csv, .ppt, .pptx, .odp, .html. The file name (or URL) must have the right extension.file
images_to_pdf
Images to PDF
Combine 1 to 20 images (JPG, PNG, WEBP, GIF, BMP) into one PDF, one image per page, in the order given. JPG and PNG are embedded at full resolution.files, page_size?, orientation?, margin?
pdf_to_images
PDF to JPG / PNG images
Render PDF pages as images (one JPG or PNG file per page).file, format?, dpi?, pages?, jpg_quality?, transparent?
pdf_to_text
Extract text from PDF
Extract the plain text of a PDF that has a text layer. The text is returned inline (up to 200,000 characters) and as a .txt file. For scans without text, use ocr_pdf.file, page_markers?
pdf_to_word
PDF to Word (DOCX)
Rebuild a PDF as an editable Word .docx with paragraphs, fonts, colours, tables, lists, links and pictures. Charts and drawn shapes are not included. Scanned PDFs need ocr_pdf first.file
pdf_to_excel
PDF tables to Excel
Detect tables in a digitally created PDF (statements, invoices, reports) and save them as an .xlsx workbook or .csv. Numbers become real numbers.file, format?
ocr_pdf
OCR (make scans searchable)
Recognize text in a scanned PDF or an image with Tesseract (self-hosted). Output a searchable PDF (invisible text layer) or plain text. Up to 50 pages; about 3-10 seconds per page.file, language?, output?
add_watermark
Add text watermark
Stamp a text watermark (e.g. CONFIDENTIAL, DRAFT) on all or selected pages. Text must use Latin characters (Western European).file, text, layout?, font_size?, color?, opacity?, pages?
add_page_numbers
Add page numbers
Add page numbers as real text in a chosen corner with a custom format such as "Page {n} of {total}".file, position?, format?, start?, font_size?, skip_first_page?
webpage_to_pdf
Web page to PDF
Open a public web page in the server's headless Chromium and save it as a PDF (print styles apply). Pages behind a login cannot be reached.url, page_size?
djvu_to_pdf
DjVu to PDF
Convert a bundled DjVu document (scanned book) to PDF with DjVuLibre, keeping its hidden text layer as searchable text when present.file
get_pdf_info
PDF information
Read basic facts about a PDF without changing it: page count, page sizes, encryption, title/author metadata, file size and whether it has a text layer on page 1. Does not count against the hourly task limit.file

The page tools (merge, split, rotate, OCR, PDF to Word and others) run the same engine as the tools on this website, so agents get the same results you would get here. Conversions and compression use LibreOffice, Ghostscript and qpdf on our server.

REST example

curl -X POST https://pdfefforts.com/api/v1/tools/merge_pdfs \
  -H "Content-Type: application/json" \
  -d '{"files":[{"url":"https://example.com/a.pdf"},{"url":"https://example.com/b.pdf"}]}'

Errors come back as {"error": "…"} with HTTP 400 (bad input), 413 (too large), 429 (rate limit, with a Retry-After header) or 503 (busy).

A2A example

Send a message/send request with a data part naming the skill (the tool name) and its arguments, plus file parts. Short plain-text requests such as “merge these PDFs” with files attached also work; we match a fixed list of keywords, no AI model is involved.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "message/send",
  "params": {
    "message": {
      "kind": "message",
      "role": "user",
      "messageId": "msg-1",
      "parts": [
        {
          "kind": "data",
          "data": {
            "skill": "compress_pdf",
            "arguments": {
              "target_kb": 200
            }
          }
        },
        {
          "kind": "file",
          "file": {
            "uri": "https://example.com/report.pdf",
            "name": "report.pdf"
          }
        }
      ]
    }
  }
}

Limits and fair use