pdf-extract-mcp MCP Server
Digital PDF invoices/bank statements to CSV, JSON or Excel with automatic PII redaction.
pdf-extract-mcp scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It declares 1 tool. Filed under Data and analytics, Knowledge. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
86/100 for listing completeness. Lost points: short README, short summary.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "diyaluo-pdf-extract-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools1Tool docs quality grade B
All capabilitiesextract_pdftoolupload a digital PDF (base64 or URL), get back structured
About
pdf-extract-mcp
π Project landing page (use cases and install guide): https://diyaluo.github.io/pdf-extract-mcp/
A Model Context Protocol (MCP) server that extracts tables and text from digital (text-layer) PDFs β bank statements, invoices, bills β into CSV / JSON / Excel, with automatic PII redaction.
Part of the invoice-extractor product. This package is the MCP distribution channel ("ecosystem parasite": one backend, many host workflows). Web demo lives in the parent project.
What it does
extract_pdfβ upload a digital PDF (base64 or URL), get back structured table rows as CSV / JSON records / XLSX.healthβ service status and free-tier limits.
Table detection tries three strategies per page: ruled tables β explicit columns derived from the header row's own x-positions (handles statement PDFs with no grid lines, the common case for Western banks) β generic text alignment.
PII redaction (on by default) covers:
| Region | Masked |
|---|---|
| US / international | SSN, EIN/TIN, IBAN, SWIFT/BIC, routing/ABA, account numbers, card numbers (plain and 4111 1111 1111 1111 / dashed), US & international phone, email |
| China | 18/15-digit national ID, mobile phone, bank card, USCC (η»δΈη€ΎδΌδΏ‘η¨δ»£η ), passport, 2β3 char personal names, organization keywords |
Bank identifiers that are ambiguous as bare numbers (routing/account/sort code) are masked only when they follow a label, so reference numbers and amounts stay readable. Amounts, dates and descriptions are never altered.
Scanned / image-only PDFs are explicitly rejected (SCANNED_PDF_UNSUPPORTED)
β the free tier covers digital PDFs only (OCR is a paid-tier candidate).
Limits (free tier)
- 100 pages / rolling 30 days / client (anonymous, keyed by client hash).
- 50 MB per file.
- Above quota the tool returns a structured
QUOTA_EXCEEDEDresponse with an in-band upgrade pointer. It never silently bills. - Set
PDF_EXTRACT_API_KEYto a paid key to bypass the quota (billing gateway is a P1 item; current free tier has no paid keys issued).
Run (local stdio β Claude Desktop / Cursor / any MCP client)
pip install -e .
pdf-extract-mcp
Client config example:
{
"mcpServers": {
"pdf-extract": {
"command": "pdf-extract-mcp",
"env": {}
}
}
}
Run (remote streamable-http, for hosted MCP clients)
REMOTE_TRANSPORT=http MCP_HOST=127.0.0.1 MCP_PORT=5060 \
python -m pdf_extract_mcp.server
# POST JSON-RPC to http://127.0.0.1:5061/mcp
Tool schema
extract_pdf(
pdf_base64: str | None, # preferred: PDF bytes as base64
pdf_url: str | None, # alternative: direct https .pdf URL
output: "csv"|"json"|"xlsx", # default csv
redact_pii: bool = true,
api_key: str | None, # paid key, optional
) -> {
ok, type: "tables"|"text", pages, tables, rows, columns,
csv | rows_json | xlsx_base64, # depends on output
elapsed_ms
}
Telemetry
Every call is appended (best-effort, never blocks extraction) to
~/.cache/pdf-extract-mcp/mcp_usage.jsonl (override with
PDF_EXTRACT_STATE_DIR). Clients are recorded as salted hashes; no PDF
content and no PII are ever logged.
Note: as a distributed stdio bundle this file lives on the user's machine, so the publisher cannot read it. Real external usage is read from the hosting registry's owner API instead (
GET /servers/{namespace}/{name}/logson Smithery returns the invocation count).
Stack
mcp >= 1.2 (works on both mcp 1.x FastMCP and mcp 2.x MCPServer), pdfplumber,
openpyxl. pandas is optional β when absent the package falls back to a
lightweight list-of-rows table (stdlib CSV/JSON + openpyxl), which keeps the
distributable bundle small. Python 3.10+.
License
MIT
Frequently asked questions
What is pdf-extract-mcp MCP Server?
Digital PDF invoices/bank statements to CSV, JSON or Excel with automatic PII redaction.
How do I install pdf-extract-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. pdf-extract-mcp MCP Server runs locally from the Docker image ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0 with the command docker run -i --rm ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0.
Is pdf-extract-mcp MCP Server free and open source?
Yes. pdf-extract-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does pdf-extract-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for pdf-extract-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does pdf-extract-mcp MCP Server provide?
pdf-extract-mcp MCP Server provides 1 tool: extract_pdf. See the full tool list for descriptions and parameters.
How is pdf-extract-mcp MCP Server's trust score calculated?
pdf-extract-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetβBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.