PDF.co MCP Server
Provides PDF.co API functionality through the Model Context Protocol, enabling AI assistants to perform various PDF processing tasks like conversion, editing, searching, and security operations.
README
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 CSV, JSON, HTML, TXT, XML, 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
⚙️ Configuration
🔑 Get API Key
- Sign up at PDF.co website
- Get your API key from the dashboard
MCP Server Setup
Cursor IDE Configuration
Add the following to your .cursor/mcp.json file:
{
"mcpServers": {
"pdfco": {
"command": "uvx",
"args": ["pdfco-mcp"],
"env": {
"X_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Claude Desktop Configuration
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"pdfco": {
"command": "uvx",
"args": ["pdfco-mcp"],
"env": {
"X_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
🔧 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
excel_to_csv: Convert Excel(XLS, XLSX) to CSVexcel_to_json: Convert Excel(XLS, XLSX) to JSONexcel_to_html: Convert Excel(XLS, XLSX) to HTMLexcel_to_txt: Convert Excel(XLS, XLSX) to TXTexcel_to_xml: Convert Excel(XLS, XLSX) to XMLexcel_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.pdf
Merge Multiple Images into PDF
Create a PDF from these images: image1.jpg, image2.png, image3.jpg
Search for Specific Text in PDF
Find the word "contract" in this PDF document
Fill 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 PDF
Extract Invoice Data
Extract invoice information from this PDF using AI
Add 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。