# Pdf Extract MCP

> Pdf Extract MCP is an open-source MCP server for files and documents. Turn digital PDF invoices and bank statements into CSV, JSON or Excel with PII masked. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/diyaluo/pdf-extract-mcp
- **MCP Registry name:** io.github.diyaluo/pdf-extract-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

## 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.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [UltraTransfer](https://ai-powered.com/mcp/ultratransfer): UltraTransfer is an open-source MCP server for files and documents.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [Base & EVM DeFi Pre-Trade Shield (x402)](https://ai-powered.com/mcp/base-and-evm-defi-pre-trade-shield-x402): Base & EVM DeFi Pre-Trade Shield (x402) is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/pdf-extract-mcp
