PDF MCP Server avatar
PDF MCP Server

Pricing

Pay per usage

Go to Apify Store
PDF MCP Server

PDF MCP Server

Stateless PDF tools exposed via MCP. Open, split, merge, extract text, fill and flatten forms, and generate PDFs in a single run. Designed for deterministic, auditable document transformations by agents and workflows.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Quadruped

Quadruped

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

PDF MCP Server — Document Intelligence

PDF operations + AI-powered document extraction. Extract structured data from invoices, receipts, contracts, resumes, W-2s, 1099s, and bank statements.

Features

  • AI Document Extraction - Extract structured JSON from documents using GPT-4o
  • Auto-detect document type - Automatically identify invoices, receipts, contracts, etc.
  • Vision support - Works with scanned PDFs (no text layer)
  • Extract text from PDF documents
  • Get metadata including title, author, page count
  • Fill form fields in interactive PDFs
  • Merge multiple PDFs into one document
  • Split PDFs into separate files by page ranges
  • Create PDFs from HTML with full CSS support
  • Render pages to images (PNG/JPEG)

AI Document Extraction

The pdf.ai_extract tool uses GPT-4o to extract structured data from documents.

Supported Document Types

TypeKey Fields Extracted
invoiceinvoice_number, dates, vendor/customer, line_items, totals
receiptmerchant, date, items, totals, payment_method
contractparties, dates, key_terms, signatures
resumename, contact, experience, education, skills
w2employer, employee, wages, tax withholdings
form_1099payer, recipient, amounts, form_type
bank_statementaccount, period, balances, transactions
autoAuto-detect type and extract relevant fields

AI Extract Example

{
"tool": "pdf.ai_extract",
"pdfUrl": "https://example.com/invoice.pdf",
"documentType": "invoice",
"openaiApiKey": "sk-..."
}

Output:

{
"status": "ok",
"document_type": "invoice",
"extraction": {
"invoice_number": "INV-2024-001",
"vendor_name": "Acme Corp",
"total": 1234.56,
"line_items": [
{ "description": "Widget A", "quantity": 10, "unit_price": 100.00, "amount": 1000.00 }
]
},
"confidence": 0.95
}

All Tools

ToolWhat it does
pdf.ai_extractAI-powered structured data extraction
pdf.openLoad PDF from URL or base64
pdf.get_metadataGet document info (title, author, pages)
pdf.extract_textExtract all text content
pdf.render_pagesConvert pages to PNG images
pdf.list_form_fieldsList all fillable form fields
pdf.fill_form_fieldsFill form fields with values
pdf.flatten_formMake form fields permanent
pdf.create_from_htmlGenerate PDF from HTML content
pdf.mergeCombine multiple PDFs
pdf.splitSplit PDF by page ranges
pdf.extract_pagesExtract specific pages

Input Examples

Get Metadata

{
"tool": "pdf.get_metadata",
"pdfUrl": "https://example.com/document.pdf"
}

Extract Text

{
"tool": "pdf.extract_text",
"pdfUrl": "https://example.com/document.pdf",
"pages": "1,2,3"
}

Create from HTML

{
"tool": "pdf.create_from_html",
"html": "<h1>Hello World</h1><p>This is a PDF.</p>"
}

Merge PDFs

{
"tool": "pdf.merge",
"urls": ["https://example.com/doc1.pdf", "https://example.com/doc2.pdf"]
}

Pricing

  • PDF operations (open, extract, merge, split): Apify compute costs only
  • AI extraction: Your OpenAI API costs (~$0.01-0.10 per document)

Limits

LimitValue
Max file size50 MB
Max pages500
AI extraction pages10 max
Render DPI150

Use Cases

  • Invoice Processing: Extract vendor, amounts, line items automatically
  • Resume Parsing: Get structured candidate data from PDFs
  • Contract Analysis: Pull key terms, dates, parties
  • Tax Document Processing: Extract W-2 and 1099 data
  • Form Automation: Fill tax forms, applications programmatically
  • Report Generation: Create PDFs from HTML templates

MCP Integration

Works with Claude Desktop, VS Code, and any MCP-compatible agent.

Claude Desktop (claude_desktop_config.json):

{
"mcpServers": {
"pdf-tools": {
"url": "https://mcp.apify.com?actors=YOUR_USERNAME/pdf-mcp-server"
}
}
}

Support

For issues or feature requests, open a ticket on the Issues tab.