PDF Tools for AI Agents – MCP Server, REST API & A2A
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.
Connection details
| What | Address |
|---|---|
| MCP server (Streamable HTTP, no sign-in) | https://pdfefforts.com/mcp |
| REST API | https://pdfefforts.com/api/v1/tools (list) and POST https://pdfefforts.com/api/v1/tools/{name} |
| OpenAPI 3.1 description | https://pdfefforts.com/openapi.json |
| A2A agent card | https://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
- Claude (web and desktop app): open Settings → Connectors, choose Add custom connector, enter the name “PDF Efforts” and the URL above.
- Claude Code: run this in your terminal:
claude mcp add --transport http pdfefforts https://pdfefforts.com/mcp
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
- A public link:
{"url": "https://…/file.pdf"}. Our server downloads it (up to 30 MB, within 60 seconds). Links to private or internal network addresses are refused. - The file itself:
{"base64": "…", "filename": "file.pdf"}. Fine for small files; one request can carry about 32 MB in total. - An earlier result:
{"file_id": "…"}. Chain tools without downloading in between, for example merge → compress → protect.
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
| Tool | What it does | Arguments (? = optional) |
|---|---|---|
merge_pdfsMerge PDFs | Combine 2 to 20 PDF files into one PDF, in the order given. Pages are copied without re-compression. | files |
split_pdfSplit 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_pdfRotate 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_pagesDelete PDF pages | Remove pages from a PDF. The remaining pages are copied unchanged. | file, pages |
extract_pagesExtract 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_pdfCompress 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_pdfPassword-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_pdfUnlock 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_pdfRepair PDF | Rebuild the internal structure of a damaged or corrupted PDF (qpdf, with a Ghostscript fallback). | file |
grayscale_pdfConvert PDF to grayscale | Convert every colour in a PDF to shades of gray; text stays searchable. | file |
optimize_pdf_for_webOptimize 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_pdfaConvert 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_pdfWord / 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_pdfImages 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_imagesPDF 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_textExtract 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_wordPDF 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_excelPDF 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_pdfOCR (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_watermarkAdd 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_numbersAdd 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_pdfWeb 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_pdfDjVu 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_infoPDF 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
- 30 tasks per hour per IP address (
get_pdf_infois free of this limit). - 30 MB per file, 100 MB and 20 files per task; OCR up to 50 pages.
- Only process documents you own or are allowed to change.
unlock_pdfremoves passwords you already know; it does not crack them. - The Terms of Use and Privacy Policy apply. Questions or higher limits: support@pdfefforts.com.