MCP server for 0xPdf — schema-first PDF to structured JSON for AI agents
Project description
0xPdf 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.
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)
- Python:
oxpdf - JS/TS:
@0xpdf/client
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
089fc9abea8097406a971dc19ab16816ad9d61e119c6edb78dd9b86101fd75c1
|
|
| MD5 |
5b6007f40dc0b7a4c3325094510115c3
|
|
| BLAKE2b-256 |
73768a7682ddb689b4783bbaf35d0beaf1a324347a987229f2981e40021e4aac
|
Provenance
The following attestation bundles were made for oxpdf_mcp-0.1.0.tar.gz:
Publisher:
publish.yml on risha-max/0xpdf-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oxpdf_mcp-0.1.0.tar.gz -
Subject digest:
089fc9abea8097406a971dc19ab16816ad9d61e119c6edb78dd9b86101fd75c1 - Sigstore transparency entry: 2175815770
- Sigstore integration time:
-
Permalink:
risha-max/0xpdf-mcp@aa5a79ce8d85af7a2d55b399d28b1f712b92d78d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/risha-max
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa5a79ce8d85af7a2d55b399d28b1f712b92d78d -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fecdcf3c04a70755f2cfac9eec1e6d714e8884a38ac99f594cb7f896d7ff912
|
|
| MD5 |
0bdba855a48264db0db7f2ea2e76263e
|
|
| BLAKE2b-256 |
6a41c1776bcc107be5f401281418d826a5974005be24583ab76fa660d78b9475
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oxpdf_mcp-0.1.0-py3-none-any.whl -
Subject digest:
7fecdcf3c04a70755f2cfac9eec1e6d714e8884a38ac99f594cb7f896d7ff912 - Sigstore transparency entry: 2175815830
- Sigstore integration time:
-
Permalink:
risha-max/0xpdf-mcp@aa5a79ce8d85af7a2d55b399d28b1f712b92d78d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/risha-max
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa5a79ce8d85af7a2d55b399d28b1f712b92d78d -
Trigger Event:
push
-
Statement type: