PDF.co MCP Server
OfficialPDF.co MCP Server lets you perform PDF/document conversion, editing, analysis, form handling, security, OCR/searchability, and file/job management through PDF.co API tools.
Convert PDFs to JSON, CSV, text, XLS/XLSX, XML, HTML, and images (JPG/PNG/WebP/TIFF).
Convert documents, spreadsheets, images, webpages, HTML, and emails (MSG/EML) to PDF; Excel tools include retiring CSV/JSON/HTML/TXT/XML converters and excel_to_pdf.
Edit PDFs: merge, split, add text/images/links/shapes/annotations, fill forms, and create fillable form fields.
Read PDF form field info, fill existing forms, and create new form elements.
Search PDFs for text (including regex) and find table coordinates.
Analyze PDFs: AI invoice parsing, attachment extraction, and PDF info such as pages, metadata, security, and form fields.
Add/remove password protection and configure encryption, permissions, and printing/copying restrictions.
Make scanned PDFs searchable via OCR or remove the text layer to make them non-searchable.
Upload local files to PDF.co and check or wait for asynchronous job completion.
Offers PDF conversion to XML format, allowing transformation of PDF content into structured XML data
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PDF.co MCP Server convert this PDF to text so I can copy the content"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PDF.co MCP
PDF.co MCP Server provides PDF.co API functionality through the Model Context Protocol (MCP), enabling AI assistants to easily perform various PDF processing tasks.
π Key Features
π PDF Conversion Tools
PDF β Various Formats: Convert PDFs to JSON, CSV, Text, Excel (XLS/XLSX), XML, HTML, Images (JPG/PNG/WebP/TIFF)
Various Formats β PDF: Convert documents (DOC/DOCX/RTF/TXT), spreadsheets (CSV/XLS/XLSX), images, web pages, HTML, emails (MSG/EML) to PDF
Excel Conversions: Convert Excel files to PDF
π οΈ PDF Editing & Modification
PDF Merging: Combine multiple PDF files into one
PDF Splitting: Split PDFs by specific pages or page ranges
Add Annotations & Images: Add text, links, images, shapes to PDFs
Form Operations: Read PDF form field information, fill forms, create new form elements
π PDF Search & Analysis
Text Search: Search text in PDFs (supports regular expressions)
Table Detection: Find table locations and coordinates in PDFs
AI Invoice Parser: Extract invoice data using AI
PDF Information: Get detailed information including metadata, page count, security info
π Security & Accessibility
Password Protection: Add/remove password protection to PDFs
Searchability: Make PDFs searchable via OCR or remove text layers
Attachment Extraction: Extract attachments from PDFs
πΌ File Management
File Upload: Upload local files to PDF.co servers
Job Status Tracking: Monitor progress and results of asynchronous operations
Related MCP server: Doc MCP Server
βοΈ Configuration
π Get API Key
Sign up at PDF.co website
Get your API key from the dashboard
π¦ Install UV
You need to install UV (a fast Python packaging tool) to use this MCP server:
macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | shWindows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Alternative Installation Methods
Homebrew:
brew install uvPyPI with pipx:
pipx install uvPyPI with pip:
pip install uv
For more installation options and details, see the UV installation guide.
Connect your client
Step-by-step guides with screenshots for each client are on developer.pdf.co:
Any other client that runs local MCP servers over STDIO uses the same three values: the command uvx, the argument pdfco-mcp, and the environment variable X_API_KEY. In JSON form:
{
"mcpServers": {
"pdfco": {
"command": "uvx",
"args": ["pdfco-mcp"],
"env": {
"X_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Desktop apps often do not see your terminal's PATH; if the server fails to start, use the full path to uvx as the command. uvx keeps the version it first resolved, so run uvx pdfco-mcp@latest once to pick up a new release.
π§ Available Tools
PDF Conversion Tools
pdf_to_json: Convert PDF and scanned images into JSON representation with text, fonts, images, vectors, and formatting preservedpdf_to_csv: Convert PDF and scanned images into CSV representation with layout, columns, rows, and tablespdf_to_text: Convert PDF and scanned images to text with layout preservedpdf_to_xls: Convert PDF and scanned images to XLS (Excel 97-2003) formatpdf_to_xlsx: Convert PDF and scanned images to XLSX (Excel 2007+) formatpdf_to_xml: Convert PDF and scanned images to XML formatpdf_to_html: Convert PDF and scanned images to HTML formatpdf_to_image: Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF)
Document to PDF Conversion Tools
document_to_pdf: Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDFcsv_to_pdf: Convert CSV or spreadsheet files (XLS, XLSX) to PDFimage_to_pdf: Convert various image formats (JPG, PNG, TIFF) to PDFwebpage_to_pdf: Convert external webpage URL to PDFhtml_to_pdf: Convert HTML to PDFemail_to_pdf: Convert email to PDF
Excel Conversion Tools
Retirement Notice β January 5, 2027
The following Excel conversion tools are scheduled for retirement on January 5, 2027, following the discontinuation of their underlying PDF.co API endpoints:
excel_to_csv,excel_to_json,excel_to_html,excel_to_txt,excel_to_xml. These tools will remain available until the retirement date. After January 5, 2027, requests to their underlying API endpoints will no longer be supported.excel_to_pdfis not affected.
excel_to_csv: Convert Excel(XLS, XLSX) to CSV (retiring January 5, 2027)excel_to_json: Convert Excel(XLS, XLSX) to JSON (retiring January 5, 2027)excel_to_html: Convert Excel(XLS, XLSX) to HTML (retiring January 5, 2027)excel_to_txt: Convert Excel(XLS, XLSX) to TXT (retiring January 5, 2027)excel_to_xml: Convert Excel(XLS, XLSX) to XML (retiring January 5, 2027)excel_to_pdf: Convert Excel(XLS, XLSX) to PDF
PDF Editing Tools
pdf_add_annotations_images_fields: Add text, images, forms, other PDFs, fill forms, links to external sites and external PDF files. You can update or modify PDF and scanned PDF filespdf_merge: Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDFpdf_split: Split a PDF into multiple PDF files using page indexes or page ranges
PDF Form Tools
read_pdf_forms_info: Extracts information about fillable PDF fields from an input PDF filefill_pdf_forms: Fill existing form fields in a PDF documentcreate_fillable_forms: Create new fillable form elements in a PDF document
PDF Search Tools
find_text: Find text in PDF and get coordinates. Supports regular expressionsfind_table: Find tables in PDF and get their coordinates
PDF Analysis Tools
ai_invoice_parser: AI Invoice Parser: Extracts data from invoices using AIextract_attachments: Extracts attachments from a source PDF filepdf_info_reader: Get detailed information about a PDF document - number of pages, metadata, security, form fields, and more
PDF Security Tools
pdf_add_password: Add password protection to a PDF filepdf_remove_password: Remove password protection from a PDF file
PDF Searchability Tools
pdf_make_searchable: Convert scanned PDF documents or image files into a text-searchable PDF. Runs OCR and adds an invisible text layer that can be used for text searchpdf_make_unsearchable: Make existing PDF document non-searchable by removing the text layer from it
File Management Tools
upload_file: Upload a file to the PDF.co APIget_job_check: Check the status and results of a job. Status can be: working, success, failed, aborted, or unknownwait_job_completion: Wait for a job to complete
π Usage Examples
Convert PDF to Text
Convert this PDF file to text: https://example.com/document.pdfMerge Multiple Images into PDF
Create a PDF from these images: image1.jpg, image2.png, image3.jpgSearch for Specific Text in PDF
Find the word "contract" in this PDF documentFill PDF Form Fields
Fill the name field in this PDF form with "John Doe"Convert Web Page to PDF
Convert https://example.com webpage to PDFExtract Invoice Data
Extract invoice information from this PDF using AIAdd Password Protection
Add password protection to this PDF fileπ Support & Contact
PDF.co: https://pdf.co
PDF.co API Documentation: https://developer.pdf.co
Issue Reports: Please report issues through GitHub Issues
π License
This project is distributed under the MIT License.
Note: A valid PDF.co API key is required to use this tool. Create a free account at PDF.co to get your API key.
Available Tools
38 toolsai_invoice_parserB
AI Invoice Parser: Extracts data from invoices using AI.
Ref: https://developer.pdf.co/api/ai-invoice-parser.md
Inputs: url (required), api_key.
create_fillable_formsB
Create new fillable form elements in a PDF document.
Example annotations format:
[
{
"text": "prefilled text",
"x": 10,
"y": 30,
"size": 12,
"pages": "0-",
"type": "TextField",
"id": "textfield1"
},
{
"x": 100,
"y": 150,
"size": 12,
"pages": "0-",
"type": "Checkbox",
"id": "checkbox1"
}
]
Ref: https://developer.pdf.co/api/pdf-add.md
Inputs: url (required), annotations (required), name, api_key, +4 more.
csv_to_pdfC
Convert CSV or spreadsheet files (XLS, XLSX) to PDF.
Ref: https://developer.pdf.co/api/pdf-from-document/csv.md
Inputs: url (required), name, pages, api_key, +5 more.
document_to_pdfB
Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDF.
Ref: https://developer.pdf.co/api/pdf-from-document/doc.md
Inputs: url (required), name, pages, api_key, +5 more.
email_to_pdfC
Convert email to PDF.
Ref: https://developer.pdf.co/api/pdf-from-email.md
Inputs: url (required), api_key, margins, profiles, +5 more.
excel_to_csvB
Convert Excel(XLS, XLSX) to CSV.
Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards.
Ref: https://developer.pdf.co/api/convert-from-excel/csv.md
Inputs: url (required), name, api_key, profiles, +4 more.
excel_to_htmlB
Convert Excel(XLS, XLSX) to HTML.
Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards.
Ref: https://developer.pdf.co/api/convert-from-excel/html.md
Inputs: url (required), name, api_key, profiles, +4 more.
excel_to_jsonB
Convert Excel(XLS, XLSX) to JSON.
Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards.
Ref: https://developer.pdf.co/api/convert-from-excel/json.md
Inputs: url (required), name, api_key, profiles, +4 more.
excel_to_pdfC
Convert Excel(XLS, XLSX) to PDF.
Ref: https://developer.pdf.co/api/convert-from-excel/pdf.md
Inputs: url (required), name, api_key, profiles, +4 more.
excel_to_txtA
Convert Excel(XLS, XLSX) to TXT.
Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards.
Ref: https://developer.pdf.co/api/convert-from-excel/text.md
Inputs: url (required), name, api_key, profiles, +4 more.
excel_to_xmlA
Convert Excel(XLS, XLSX) to XML.
Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards.
Ref: https://developer.pdf.co/api/convert-from-excel/xml.md
Inputs: url (required), name, api_key, profiles, +4 more.
extract_attachmentsC
Extracts attachments from a source PDF file.
Ref: https://developer.pdf.co/api/pdf-extract-attachments.md
Inputs: url (required), api_key, password, profiles, +3 more.
fill_formsA
Fill existing form fields in a PDF document.
Example fields format:
[
{
"fieldName": "field_name_from_form_info",
"pages": "1",
"text": "Value to fill"
}
]
Use 'read_pdf_forms_info' first to get the fieldName values of the form.
Ref: https://developer.pdf.co/api/pdf-add.md
Inputs: url (required), fields (required), name, api_key, +4 more.
find_tableC
Find tables in PDF and get their coordinates.
Ref: https://developer.pdf.co/api/pdf-find/table.md
Inputs: url (required), pages, api_key, password, +4 more.
find_textC
Find text in PDF and get coordinates. Supports regular expressions.
Ref: https://developer.pdf.co/api/pdf-find/basic.md
Inputs: url (required), searchString (required), pages, api_key, +7 more.
get_job_checkA
Check the status and results of a job
Status can be:
- working: background job is currently in work or does not exist.
- success: background job was successfully finished.
- failed: background job failed for some reason (see message for more details).
- aborted: background job was aborted.
- unknown: unknown background job id. Available only when force is set to true for input request.
Inputs: job_id (required), api_key.
html_to_pdfB
Convert HTML to PDF.
Ref: https://developer.pdf.co/api/pdf-from-html/convert.md
The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them:
- date: formatted print date
- title: document title
- url: document location
- pageNumber: current page number
- totalPages: total pages in the document
- img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string.
For example, the following markup will generate Page N of NN page numbering:
```html
<span style='font-size:10px'>Page <span class='pageNumber'></span> of <span class='totalPages'></span>.</span>
Inputs: html (required), name, footer, header, +11 more.
image_to_pdfC
Convert various image formats (JPG, PNG, TIFF) to PDF.
Ref: https://developer.pdf.co/api/pdf-from-image.md
```
Inputs: url (required), name, pages, api_key, +4 more.
pdf_add_annotations_images_fieldsB
Add text, images, forms, other PDFs, fill forms, links to external sites and external PDF files. You can update or modify PDF and scanned PDF files.
This tool supports three main ways to add content:
1. **annotations**: Add text, links, shapes, etc.
Properties: text, x, y, size, pages, color, link, fontName, fontItalic, fontBold, fontStrikeout, fontUnderline
2. **images**: Add images or other PDF content
Properties: url, x, y, width, height, pages
3. **fields**: Fill existing form fields
Properties: fieldName, pages, text, fontName, size, fontBold, fontItalic, fontStrikeout, fontUnderline
Example annotations:
[{"text": "Sample Text - Click here to test link", "x": 250, "y": 240, "size": 24, "pages": "0-", "color": "CCBBAA", "link": "https://pdf.co/", "fontName": "Comic Sans MS", "fontItalic": true, "fontBold": true, "fontStrikeout": false, "fontUnderline": true}]
Example images:
[{"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-edit/logo.png", "x": 270, "y": 150, "width": 159, "height": 43, "pages": "0"}]
Example fields:
[{"fieldName": "topmostSubform[0].Page1[0].YourSocial_ReadOrderControl[0].f1_05[0]", "pages": "1", "text": "Joan B.", "fontName": "Arial", "size": 6, "fontBold": true, "fontItalic": true, "fontStrikeout": true, "fontUnderline": true}]
Ref: https://developer.pdf.co/api/pdf-add.md
Inputs: url (required), name, fields, images, +9 more.
pdf_add_passwordC
Add password protection to a PDF file.
Ref: https://developer.pdf.co/api/pdf-password/add.md
Inputs: url (required), owner_password (required), name, api_key, +15 more.
pdf_info_readerB
Get detailed information about a PDF document - number of pages, metadata, security, form fields, and more.
Ref: https://developer.pdf.co/api/pdf-info-reader.md
Inputs: url (required), api_key, password, profiles, +3 more.
pdf_make_searchableB
Convert scanned PDF documents or image files into a text-searchable PDF.
Runs OCR and adds an invisible text layer that can be used for text search.
Ref: https://developer.pdf.co/api/pdf-change-text-searchable/searchable.md
Inputs: url (required), lang, name, pages, +6 more.
pdf_make_unsearchableB
Make existing PDF document non-searchable by removing the text layer from it.
Ref: https://developer.pdf.co/api/pdf-change-text-searchable/unsearchable.md
Inputs: url (required), name, pages, api_key, +5 more.
pdf_mergeB
Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF.
Ref: https://developer.pdf.co/api/merge/various-files.md
Inputs: url (required), name, api_key, profiles, +3 more.
pdf_remove_passwordC
Remove password protection from a PDF file.
Ref: https://developer.pdf.co/api/pdf-password/remove.md
Inputs: url (required), name, api_key, password, +4 more.
pdf_splitC
Split a PDF into multiple PDF files using page indexes or page ranges.
Ref: https://developer.pdf.co/api/pdf-split/by-pages.md
Inputs: url (required), pages (required), name, api_key, +5 more.
pdf_to_csvC
Convert PDF and scanned images into CSV representation with layout, columns, rows, and tables.
Ref: https://developer.pdf.co/api/pdf-to-csv.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_htmlC
Convert PDF and scanned images to HTML format.
Ref: https://developer.pdf.co/api/pdf-to-html.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_imageC
Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF).
Ref:
- https://developer.pdf.co/api/pdf-to-image/jpg.md
- https://developer.pdf.co/api/pdf-to-image/png.md
- https://developer.pdf.co/api/pdf-to-image/webp.md
- https://developer.pdf.co/api/pdf-to-image/tiff.md
Inputs: url (required), lang, name, rect, +10 more.
pdf_to_jsonB
Convert PDF and scanned images into JSON representation with text, fonts, images, vectors, and formatting preserved using the /pdf/convert/to/json2 endpoint.
Ref: https://developer.pdf.co/api/pdf-to-json/basic.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_textC
Convert PDF and scanned images to text with layout preserved.
Ref: https://developer.pdf.co/api/pdf-to-text/basic.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_xlsC
Convert PDF and scanned images to XLS (Excel 97-2003) format.
Ref: https://developer.pdf.co/api/pdf-to-excel/xls.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_xlsxC
Convert PDF and scanned images to XLSX (Excel 2007+) format.
Ref: https://developer.pdf.co/api/pdf-to-excel/xlsx.md
Inputs: url (required), lang, name, rect, +9 more.
pdf_to_xmlC
Convert PDF and scanned images to XML format.
Ref: https://developer.pdf.co/api/pdf-to-xml.md
Inputs: url (required), lang, name, rect, +9 more.
read_pdf_forms_infoB
Extracts information about fillable PDF fields from an input PDF file.
Ref: https://developer.pdf.co/api/forms/info-reader.md
Inputs: url (required), api_key, password, profiles, +3 more.
upload_fileC
Upload a file to the PDF.co API
Inputs: file_path (required), api_key.
wait_job_completionC
Wait for a job to complete
Inputs: job_id (required), api_key, timeout, interval.
webpage_to_pdfB
Convert external webpage URL to PDF.
Ref: https://developer.pdf.co/api/pdf-from-url.md
The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them:
- date: formatted print date
- title: document title
- url: document location
- pageNumber: current page number
- totalPages: total pages in the document
- img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string.
For example, the following markup will generate Page N of NN page numbering:
```html
<span style='font-size:10px'>Page <span class='pageNumber'></span> of <span class='totalPages'></span>.</span>
Inputs: url (required), name, footer, header, +11 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 38 tools
Most conversion tools target a unique sourceβtarget pair, but the PDF-modification cluster (pdf_add_annotations_images_fields, fill_forms, create_fillable_forms) all map to the same /pdf-add endpoint and overlap heavily. Likewise excel_to_pdf, csv_to_pdf, and document_to_pdf all convert spreadsheets to PDF, forcing the agent to guess which to use.
The dominant <source>_to_<target> pattern (pdf_to_text, excel_to_csv, document_to_pdf) is readable and predictable, but it is mixed with noun_verb (pdf_merge, pdf_split), verb_noun (upload_file, find_text, extract_attachments), and bare noun (ai_invoice_parser) styles. Three different conventions coexist without a clear rule for which applies where.
38 tools is heavy and partly inflated by redundancy β three ExcelβPDF paths, both pdf_to_xls and pdf_to_xlsx, and five excel_to_* converters explicitly marked as retiring in 2027. A conversion matrix naturally needs many entries, but several could be consolidated into parameterized tools.
Conversion and inspection coverage is broad (formats in and out, OCR, forms, search, attachments, job polling), but core page-level operations are missing: no delete/rotate/reorder/extract-pages, no compression, and no document splitting by barcode or text. Agents can convert and inspect but cannot fully restructure a PDF.
Maintenance
Related MCP Connectors
13 stateless PDF tools for AI agents: merge, split, rotate, compress, watermark, redact, flatten, repair, add page numbers and fill PDF forms. Files are processed in memory and nothing is stored. Part of FreeDailyPro's 211+ MCP tools; trial key with 20,000 calls/month at freedailypro.com/developers.
Convert, merge, compress, OCR, redact, and sign PDFs inside your AI assistant. From pdfAssistant.
PDF tools for AI agents: validate, extract, merge, split, compress, OCR, sign and redact.
PDF tools for AI agents: inspect, fill, merge, split, rotate, watermark, protect and invoice PDFs.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables PDF manipulation including text, images, annotations, form fields, page operations, and metadata through natural language.16MIT
- AlicenseBqualityCmaintenanceEnables AI agents to generate PDFs from Markdown or URLs, extract text, merge documents, and perform text conversions via the Model Context Protocol.81MIT
- AlicenseAqualityDmaintenanceEnables PDF processing and analysis including text extraction, metadata retrieval, search, page manipulation, splitting/merging, conversion to images, and form handling.10MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to perform PDF operations like merge, split, compress, convert, encrypt, OCR, and summarize using natural language.9811 npmMIT