PDF MCP logo

PDF MCP

Extracts PDF and Word text and tables into structured records or Excel, CSV, and JSON for agent workflows.

Install PDF MCP

Run the project’s own setup commands, in order.

Setup steps from the project

pdf-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    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"
    
  2. 2. Start the server
    pdf-mcp-app
    
  3. 3. Install
    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"
    
  4. 4. Install
    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"
    

Overview

The pdf-mcp MCP server extracts text and tables from local PDF and DOCX files and exposes the results to AI agents through MCP tools. It supports raw extraction, CSV conversion, document-table export, and profile-based validation with evidence and explicit decisions. Use the local server for confidential files or unrestricted offline processing; scanned PDFs are not supported without an external OCR step. A separate hosted beta accepts temporary authenticated uploads for raw extraction only.

Use cases

  • Extract invoice line items into structured records
  • Convert PDF or Word tables to CSV or Excel
  • Validate recurring documents against named profiles
  • Read page text and table data for an agent workflow

Key features

  • PDF text and table extraction
  • DOCX paragraph and table extraction
  • Profile-based validation with evidence
  • Excel, CSV, and JSON export
  • Local stdio MCP operation
  • Optional hosted extraction beta

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 76d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.

How PDF MCP works

What pdf-mcp MCP server does

The pdf-mcp MCP server connects an MCP client to local PDF and Word documents. Agents can inspect page counts, read page text, extract tables, convert individual tables to CSV, and export document tables as .xlsx, .csv, or .json files. Word support includes paragraph extraction and table extraction from .docx files.

For recurring document workflows, the server also provides profile-based extraction. Built-in reference profiles include lab-coa-v1 and invoice-lines-v1. A profile can define expected fields and return canonical records, source-cell evidence, validation issues, and one of three decisions: accepted, needs_review, or rejected. Profile exports can create workbooks containing Review, Data, and Evidence sheets.

How it works

The local pdf-agent-mcp command runs through standard input/output and keeps documents on the local machine. Install the package, register the command in an MCP client, and let the agent pass a document path to the relevant tool. Extraction values come from document parsers rather than generated model output.

Raw table extraction returns rows, source coordinates, and basic parser warnings. Multi-page tables can be merged when the relevant option is enabled. Profile extraction adds field mapping and validation; its decision describes whether the configured checks passed, not whether the original document is factually correct. Applications should send needs_review and rejected results to a person instead of treating them as trusted business data.

The optional hosted bridge uses a separately supplied endpoint and API key. It uploads the selected document for one authenticated operation, deletes temporary uploads after completion, and is intended for redacted or non-sensitive files. The free beta exposes raw text, table, and CSV extraction and allows 25 operations per calendar month.

Setup and configuration

Install the local package with the MCP extra from the v0.4.0 release, then configure an MCP client to start pdf-agent-mcp with no required environment variables. Claude Desktop, Cursor, VS Code with Copilot Agent mode, Windsurf, and Cline are documented as clients. Cursor can hot-reload its configuration; other clients may require their documented restart or settings flow.

Set PDF_MCP_ALLOWED_DIR when the agent should be restricted to one directory. This provides a file-access boundary for the local server. The hosted bridge instead requires PDF_MCP_CLOUD_URL and PDF_MCP_CLOUD_API_KEY supplied with beta access.

Tools and capabilities

The pdf-mcp MCP server exposes these documented operations:

  • list_extraction_profiles() lists profile IDs, versions, fields, and hashes.
  • extract_with_profile(path, profile) returns records, evidence, issues, and a decision.
  • export_with_profile(input_path, profile, output_path) writes checked XLSX, CSV, or JSON output.
  • page_count(path) reports the number of PDF pages.
  • extract_text(path, page) reads one page or the complete PDF.
  • extract_tables(path, page, merge_multipage) extracts rows and parser assessments.
  • table_to_csv(path, page, index) converts one PDF table to CSV text.
  • extract_docx_text(path) reads DOCX paragraphs.
  • extract_docx_tables(path) reads DOCX table cells and reports merged-cell warnings.
  • docx_table_to_csv(path, index) converts one Word table to CSV text.
  • export_document_tables(input_path, output_path, merge_multipage) exports PDF or DOCX tables.

Limitations and notes

PDF extraction supports born-digital documents. Scanned or image-only PDFs need OCR, which is not included. Basic structure checks and an accepted result do not guarantee accurate source values, so important outputs still require review.

The local edition is MIT licensed, network-free, and telemetry-free. The hosted beta has different data-handling characteristics because selected documents leave the local machine. The browser application is another local option for direct table conversion, but it does not require an MCP client and is separate from agent setup.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about PDF MCP

pdf-mcp is an MCP server that connects AI agents to local PDF and DOCX files for document extraction. Its main tools read page text, extract tables, convert tables to CSV, export document data to Excel, CSV, or JSON, and validate records against configured extraction profiles with evidence and review decisions.

Install the local package with the MCP extra from the project’s v0.4.0 wheel, then configure your MCP client to run `pdf-agent-mcp`. The documented command is `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"`.

Yes, pdf-mcp works with Cursor through its MCP configuration. Add `pdf-agent-mcp` under `mcpServers` in the global `~/.cursor/mcp.json` or project `.cursor/mcp.json`; Cursor hot-reloads the configuration without requiring a restart.

No, pdf-mcp does not include OCR and supports born-digital PDFs only. Scanned or image-only PDFs require an external OCR process before extraction can work.

Set `PDF_MCP_ALLOWED_DIR` to restrict the local server to one directory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPDF MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pdf-mcp-2?style=directory)](https://allmcps.com/mcp/pdf-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/pdf-mcp-2"><img src="https://allmcps.com/api/badge/pdf-mcp-2?style=directory" alt="PDF MCP on AllMCPs" /></a>