Skip to content
MCP server

Pdf Extract MCP

Turn digital PDF invoices and bank statements into CSV, JSON or Excel with PII masked

Runs locally

Pdf Extract MCP is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, Linux
Runs
Locally
Version
0.3.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add pdf-extract-mcp -- docker run -i --rm ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "pdf-extract-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pdf-extract-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pdf-extract-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "pdf-extract-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add pdf-extract-mcp -- docker run -i --rm ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.pdf-extract-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pdf-extract-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user pdf-extract-mcp docker -- run -i --rm ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "pdf-extract-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Pdf Extract MCP

Pdf Extract MCP reads text-layer PDFs such as bank statements, invoices and bills and returns their tables as CSV, JSON records or an XLSX file. For each page it tries three strategies: ruled tables, columns inferred from the header row's own positions (aimed at statements with no grid lines), and generic text alignment.

Redaction is on by default. It masks items like SSNs, IBANs, routing and account numbers, card numbers, phones and emails, plus Chinese national IDs, bank cards and passport numbers. Ambiguous bank numbers are masked only when they follow a label, so amounts, dates and descriptions stay readable.

Scanned or image-only PDFs are rejected with an explicit error. The free tier allows 100 pages per rolling 30 days per client and 50 MB per file, and exceeding it returns a structured quota response rather than billing. It ships as an OCI image over stdio and is MIT licensed.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

extract_pdf
Extract tables from a digital PDF given as base64 or a URL and return CSV, JSON or XLSX
health
Report service status and free-tier limits

What it does

Table extraction
Three detection strategies including grid-less statement layouts.
Multiple outputs
Return CSV, JSON records or base64 XLSX.
PII redaction
Masks account, card and ID numbers by default, with an option to turn it off.
Scanned PDF rejection
Image-only files fail with a clear error code.
Quota reporting
A health tool reports service status and free-tier limits.
Local telemetry
Usage logs stay on your machine and exclude PDF content and PII.

Good for

  • Convert a bank statement PDF to a spreadsheet for reconciliation
  • Pull line items from a supplier invoice
  • Share statement data with an assistant with account numbers masked
  • Batch digital bills into JSON for a script

Pricing

Open source

Free tier 100 pages per 30 days; paid keys not yet issued

Pdf Extract MCP FAQ

What are the free limits?

100 pages per rolling 30 days per client and 50 MB per file.

Does Pdf Extract MCP handle scanned PDFs?

No. Scanned or image-only PDFs return a SCANNED_PDF_UNSUPPORTED error.

What is the licence?

MIT.

Does Pdf Extract MCP log my documents?

The README says no PDF content or PII is logged, only hashed client identifiers on your own machine.

How do I add Pdf Extract MCP to Claude Code?

Run this command in your terminal: claude mcp add pdf-extract-mcp -- docker run -i --rm ghcr.io/diyaluo/pdf-extract-mcp:v0.3.0

What are the best alternatives to Pdf Extract MCP?

The closest alternatives to Pdf Extract MCP are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Scholar Sidekick and UltraTransfer.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers