pdf-mcp
Click on "Install 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-mcppull the line items out of this invoice"
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-mcp
Turn tables in PDF and Word documents into Excel, CSV, or JSON. Use the simple browser app with no agent setup, or connect the same deterministic extraction tools to an AI agent through MCP.
The browser app is for direct table conversion. It previews the extracted rows, highlights basic
structure warnings, and keeps files on your computer. Advanced profile checking can additionally
validate named fields, preserve source evidence, and return accepted, needs_review, or
rejected for a recurring document workflow. Cell values come from document parsers, not generated
model output.
Need a profile and measured baseline for real documents? See the
Document Reliability Pilot.
Agents can use the structured offer at
offers/document-to-excel-pilot.json.
Website: simple conversion, local tools, and the free hosted agent beta.
Current limitation: PDF extraction supports born-digital documents. Scanned or image-only PDFs require OCR, which is not included. An
accepteddecision means the configured checks passed; it does not prove that the source document itself is correct.
Simple browser app
This is the easiest way to use pdf-mcp. It requires no Python, terminal, MCP client, or agent configuration after downloading the app.
Open the v0.4.0 release.
Download the
pdf-mcp-appZIP for 64-bit Windows, an Apple silicon Mac, or 64-bit Linux.Unzip it and open
pdf-mcp-app.Your browser opens. Drop in a PDF or Word document, choose Excel, CSV, or JSON, and select Convert document.
Use Stop app in the browser when finished. The app listens only on your computer. Temporary document copies are deleted immediately after conversion, and prepared downloads expire after 30 minutes or when the app stops. The community beta downloads are currently unsigned, so the operating system may ask you to confirm that you want to open them.
If Python is already installed, the same interface can be started with:
python -m pip install "pdf-agent-mcp @ https://github.com/wesseltl/pdf-mcp/releases/download/v0.4.0/pdf_agent_mcp-0.4.0-py3-none-any.whl"
pdf-mcp-appThe simple app performs raw table extraction. “No basic structure problems detected” is not an accuracy guarantee. Check important values before using them, or use a profile-checked pilot for a recurring business workflow.
Related MCP server: pdfmux
For agents: local or free hosted beta
The normal pdf-agent-mcp command remains local, MIT licensed, network-free, and telemetry-free.
For people who explicitly want a measured agent beta, pdf-agent-cloud-mcp uploads only the selected
document for one authenticated operation.
Profile checking and evaluation currently run in the local edition or as part of the paid pilot. The free hosted beta currently exposes raw text, table, and CSV extraction only.
Edition | Document location | Measurement | Best for |
Local | Stays on your machine | None | Confidential or unrestricted local use |
Hosted | Temporary authenticated upload | Bounded operational counters | Redacted/non-sensitive beta evaluation |
The free hosted beta includes 25 operations per calendar month. Temporary uploads are deleted when each request completes. Usage metrics exclude filenames, document contents, extracted text, and table cells. Applications are open while endpoint deployment is completed. Apply without attaching a document; invitations begin only after the endpoint is verified:
Apply for free agent beta access
After acceptance, install and configure the separate bridge with the endpoint and key you receive:
python -m pip install "pdf-agent-mcp[cloud] @ https://github.com/wesseltl/pdf-mcp/releases/download/v0.4.0/pdf_agent_mcp-0.4.0-py3-none-any.whl"{
"mcpServers": {
"pdf-cloud": {
"command": "pdf-agent-cloud-mcp",
"env": {
"PDF_MCP_CLOUD_URL": "https://endpoint-provided-with-beta-access.example",
"PDF_MCP_CLOUD_API_KEY": "key-provided-once"
}
}
}
}Use only redacted or non-sensitive files. See the free beta terms,
privacy notice, and machine-readable
beta/free-hosted-beta.json.
What it turns a document into
A PDF or Word table like this:
Item Qty Price
Widget 3 12.50
Gadget 1 40.00
Bolt 10 0.25can be checked against invoice-lines-v1 and returned as canonical records with an explicit decision:
{
"decision": "accepted",
"profile": {"id": "invoice-lines-v1", "version": "1.0.0"},
"records": [
{
"values": {"item": "Widget", "quantity": "3", "unit_price": "12.50"},
"evidence": {
"item": {"page": 1, "table_index": 0, "row": 1, "column": 0, "bbox": [242.9, 136.0, 287.7, 154.0]}
}
}
]
}The tools it gives an agent
Tool | What it does |
| Built-in profile IDs, versions, fields, and hashes |
| Canonical records, cell evidence, validation issues, and a fail-closed decision |
| Profile-checked |
| How many pages the PDF has |
| Text per page (one page, or the whole doc) |
| Raw rows, source coordinates, and basic parser warnings |
| One table as clean CSV text |
| Paragraph text from a |
| Word tables as rows of cells, with the same assessment fields and merged-cell warnings |
| One Word table as clean CSV text |
| Export PDF/DOCX tables to |
MCP setup for Claude Desktop
The fastest way to use this is with an MCP client like Claude Desktop. Three steps:
1. Install it
python -m pip install "pdf-agent-mcp[mcp] @ https://github.com/wesseltl/pdf-mcp/releases/download/v0.4.0/pdf_agent_mcp-0.4.0-py3-none-any.whl"2. Add it to your client's config
Claude Desktop's config lives here:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server:
{
"mcpServers": {
"pdf": { "command": "pdf-agent-mcp" }
}
}3. Restart Claude Desktop. You'll see a tools icon appear, meaning the server is connected.
That's it. Now ask about any .pdf or .docx on your machine:
You: Check /Users/me/invoices/2024-001.pdf with invoice-lines-v1.
Agent (calls extract_with_profile):
decision: accepted
records: 3
issues: 0The agent must route needs_review and rejected results to a person instead of treating them as
trusted business data.
Restricting file access: to stop the agent reading anything outside one folder, set
PDF_MCP_ALLOWED_DIR. See SECURITY.md.
Use it with other MCP clients
The same server works in any MCP client, only the config differs. Use pdf-agent-mcp as the command.
Cursor — ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Same shape as Claude
Desktop, and it hot-reloads (no restart):
{ "mcpServers": { "pdf": { "command": "pdf-agent-mcp" } } }VS Code / GitHub Copilot — .vscode/mcp.json. Note the different key (servers, not mcpServers)
and the required type. Tools only run in Copilot Agent mode:
{ "servers": { "pdf": { "type": "stdio", "command": "pdf-agent-mcp" } } }Windsurf — ~/.codeium/windsurf/mcp_config.json (create it if missing). Same shape as Claude
Desktop:
{ "mcpServers": { "pdf": { "command": "pdf-agent-mcp" } } }Cline — add it from the extension's MCP settings panel in VS Code (command: pdf-agent-mcp).
Profile-checked extraction
The package includes lab-coa-v1 and invoice-lines-v1 as reference profiles:
extract-document-with-profile examples/invoice.pdf invoice-lines-v1 result.xlsxExit status is 0 for accepted, 2 for needs_review, and 3 for rejected. XLSX output contains
Review, Data, and Evidence sheets. Formula-like document values are escaped in spreadsheet
exports rather than executed.
Profiles are ordinary, versioned JSON contracts. See the profile format and machine-readable schema. Results follow the versioned extraction result schema.
Measure a profile
Measure exact field and record accuracy against local, customer-approved expected rows:
evaluate-document-profile evaluations/sample-invoice.jsonThe report contains document hashes and aggregate metrics, not document or expected cell values. The included sample is synthetic; build a representative private set before claiming accuracy for a real document family. See the evaluation guide.
For a larger demonstration, the repository includes an 18-document fictional workflow simulation. It exercises accepted, review, and rejected outcomes across PDF and DOCX variants. It is regression coverage authored by the product developer, not customer validation or evidence of demand.
Raw export
For a direct document-to-file workflow, use the CLI:
export-document-tables report.pdf report.xlsx
export-document-tables coa.docx coa.xlsx
export-document-tables coa.docx coa.jsonRaw Excel exports include a Review sheet with table locations and parser warnings. Use profile-based
export when a workflow needs canonical fields and an acceptance decision.
Understanding the output
extract_tables returns raw rows and lightweight parser diagnostics:
{
"page": 1,
"rows": [ ... ],
"n_rows": 4,
"looks_clean": true,
"column_count": 3,
"empty_ratio": 0.0,
"warnings": []
}looks_clean—trueonly means these basic diagnostics found no red flag. It is not an accuracy score or acceptance decision.column_count— the number of columns, if every row agrees on it (nullif rows disagree).empty_ratio— fraction of blank cells. A high value often means a bad extraction.has_merged_cells— Word-only flag for tables with merged cells. Word exposes those cells as repeated values, so the table is flagged for review.warnings— plain-language flags, e.g. "ragged: rows have [2, 3, 4] columns (grid may be misdetected)" or "66% of cells are empty". PDF tables are genuinely hard (nested/merged cells, multi-page), so instead of pretending, the tool tells you when a result is suspect.
Also usable from plain Python
from pdf_mcp import docx_extractor, exporter, extractor, verified
result = verified.extract_with_profile("invoice.pdf", "invoice-lines-v1")
if result["decision"] == "accepted":
rows = [record["values"] for record in result["records"]]
verified.export_with_profile("coa.pdf", "lab-coa-v1", "coa.xlsx")
extractor.extract_tables("invoice.pdf") # {'tables': [{'rows': [...], 'looks_clean': True, ...}]}
extractor.table_to_csv("invoice.pdf") # clean CSV of the first table
extractor.extract_text("report.pdf", page=1)
docx_extractor.extract_docx_tables("coa.docx")
docx_extractor.docx_table_to_csv("coa.docx")
exporter.export_document_tables("coa.docx", "coa.xlsx")Tests
python -m pip install -e ".[test]"
python -m unittest discover -s tests # builds synthetic PDFs, runs anywhere
evaluate-document-profile evaluations/sample-invoice.json
evaluate-document-profile evaluations/simulated-customer/development.json
evaluate-document-profile evaluations/simulated-customer/holdout.jsonLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceEmpowers AI agents to securely read and extract information (text, metadata, page count) from PDF files within project contexts using a flexible MCP tool.1301905MIT
- AlicenseAqualityBmaintenancePDF extraction that actually works. The only extractor that audits every page. #2 on opendataloader-bench. 5 MCP tools for AI agents: metadata, convert, analyze, batch, structured extraction.779MIT

okraPDF PDF MCP serverofficial
AlicenseAqualityCmaintenanceThis MCP server enables AI agents to view PDFs as accessible HTML with bounding-box citations, and provides tools for layout-aware parsing, schema extraction, cross-document Q&A, and PDF rendering.27MIT- AlicenseNot gradedqualityCmaintenanceProvides AI agents with comprehensive document parsing capabilities including PDF text extraction, OCR, HTML-to-markdown conversion, table extraction, and summarization, optimized for agent workflows.101MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wesseltl/pdf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server