Skip to main content

MCP server for 0xPdf — schema-first PDF to structured JSON for AI agents

Project description

0xPdf MCP

PyPI MCP

Schema in → PDF in → JSON out for Claude, Cursor, and other MCP clients.

This stdio MCP server wraps the 0xPdf HTTP API (auth, billing, rate limits intact). Agents can parse invoices/forms into a JSON schema, generate schemas, and poll async jobs.

0xPdf — schema in, PDF in, JSON out

Playground · Docs / MCP setup · Pricing

Install

pip install oxpdf-mcp
# or
uvx oxpdf-mcp

Get an API key at 0xpdf.io/dashboard.

Cursor / Claude Desktop

{
  "mcpServers": {
    "0xpdf": {
      "command": "uvx",
      "args": ["oxpdf-mcp"],
      "env": {
        "PDF_PARSING_API_BASE_URL": "https://api.0xpdf.io",
        "PDF_PARSING_API_PREFIX": "api/v1",
        "PDF_PARSING_API_KEY": "YOUR_API_KEY",
        "PDF_PARSING_ALLOWED_API_HOSTS": "api.0xpdf.io",
        "PDF_PARSING_REQUIRE_HTTPS": "true",
        "PDF_PARSING_ALLOWED_FILE_ROOTS": "/home/YOU/Downloads:/home/YOU/Documents",
        "PDF_PARSING_MCP_DISALLOW_FULL_RESPONSE_MODE": "true"
      }
    }
  }
}

Or with pip:

"command": "oxpdf-mcp"

Tools (selected)

Tool Purpose
parse_pdf_sync Schema-first sync parse
parse_pdf_stream Streaming parse (SSE)
submit_parse_job / wait_for_job_completion Async jobs
list_schemas / create_schema Saved schemas
generate_schema_from_description AI schema generation (wallet debit)
get_pricing_current Balance / pricing
health_check Liveness

Full list and env vars: see source oxpdf_mcp/server.py and docs.

Env

Variable Default Notes
PDF_PARSING_API_KEY Required for authenticated tools
PDF_PARSING_API_BASE_URL https://api.0xpdf.io Production API
PDF_PARSING_ALLOWED_API_HOSTS Required in production (api.0xpdf.io)
PDF_PARSING_REQUIRE_HTTPS false Set true for production
PDF_PARSING_ALLOWED_FILE_ROOTS CWD Colon-separated absolute paths for pdf_path

SDKs (non-MCP)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oxpdf_mcp-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oxpdf_mcp-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file oxpdf_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: oxpdf_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oxpdf_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 089fc9abea8097406a971dc19ab16816ad9d61e119c6edb78dd9b86101fd75c1
MD5 5b6007f40dc0b7a4c3325094510115c3
BLAKE2b-256 73768a7682ddb689b4783bbaf35d0beaf1a324347a987229f2981e40021e4aac

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxpdf_mcp-0.1.0.tar.gz:

Publisher: publish.yml on risha-max/0xpdf-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oxpdf_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: oxpdf_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oxpdf_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fecdcf3c04a70755f2cfac9eec1e6d714e8884a38ac99f594cb7f896d7ff912
MD5 0bdba855a48264db0db7f2ea2e76263e
BLAKE2b-256 6a41c1776bcc107be5f401281418d826a5974005be24583ab76fa660d78b9475

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxpdf_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on risha-max/0xpdf-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page