Doc Extract API MCP server
io.github.thestarboy9696/doc-extract-api·v0.2.0SchemaLock — paid extraction: JSON from docs via your schema, x402/USDC.
0 stars32 downloads/wk
Reviews
Write oneNobody has reviewed Doc Extract API yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Doc Extract API tools (1)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
extract_customExtract structured JSON from a PDF/image or raw text/HTML into a caller-supplied JSON Schema. $0.08 in USDC on Base, paid from WALLET_PRIVATE_KEY on every call.
Public scan report
scanner v0.1.10 · 2026-10-30 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned20/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 51 days ago12/15
- Maintainer identityregistry namespace matches repository owner6/10
Findings (1)
- mediumeval / new Function used
exec.evaldist/mcp-server.js: …ode, sch); const makeValidate = new Function(`${names_1.default.self}`, `${names_1.de…
How Doc Extract API compares
Against every graded Scraping and browsing MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 68/100
- higher than 28% of 867 Scraping and browsing servers
- Tools
- 1
- the typical Scraping and browsing server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 32
- more than 12% of 312 Scraping and browsing servers with a package
What its tools let an agent do: 1 read
Install Doc Extract API in Claude Code, Cursor or VS Code
Runs npx -y doc-extract-api on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add doc-extract-api -- npx -y doc-extract-api
What the publisher says
From the Doc Extract API repository's README, as published. We do not edit it. Read it on GitHub
doc-extract-api
Document-to-structured-JSON extraction API. Takes a PDF/PNG/JPEG and returns clean JSON. Four fixed document types (invoice, receipt, contract, resume) get a matched schema plus domain-specific validation; /extract/custom accepts any JSON Schema, so a caller isn't limited to those four types. Built for autonomous AI agents: no signup, no API key, no human checkout — an agent discovers the price and pays per call via x402 v2 (USDC), entirely over HTTP, and can find this service programmatically via the x402 Bazaar discovery catalog. Also published as an MCP server (doc-extract-api-mcp on npm, and on the official MCP Registry) — but that's a client for the same paid API, not a free alternative: every MCP tool call is a real x402 payment from a wallet you supply, not a locally-run, unmetered extraction. There is no free path to this service.
Why x402, not Stripe
Stripe Checkout is built for humans — it collects a card through a UI, and its payment button actively resists non-trusted, programmatic (agent-driven) submission. x402 revives the HTTP 402 Payment Required status code: hit a paid endpoint with no payment, get back a 402 whose PAYMENT-REQUIRED header carries a complete, machine-readable manifest (price, network, receiving address, asset, and — via the Bazaar extension — a full input/output schema with a real example). Retry with an X-PAYMENT header carrying a signed USDC transfer authorization, and the request goes through. No account, no key, no human in the loop — the discovery step and the payment step are the same HTTP round trip.
Payment is only settled after the extraction succeeds — @x402/hono's middleware verifies the payment signature before running the handler, but only executes the actual on-chain transfer if the handler returns a non-error status (confirmed: this project's paymentMiddlewareFromConfig call skips settlement whenever the wrapped route responds ≥400). A failed extraction costs the caller nothing.
Discovery: the x402 Bazaar
The Bazaar (GET {facilitator}/discovery/resources) is a live, queryable catalog of x402 services — ~15k listings as of this writing, searchable by agent clients (client.extensions.bazaar.search({ query: "..." })). Getting listed isn't a submission form: a facilitator catalogs a resource automatically the first time it processes a real payment that echoes the route's declared bazaar extension. src/lib/discovery.ts declares that extension for all four routes — full input schema (multipart form-data, a file field) and a real, verified output example — so once a route's first live mainnet payment lands, it becomes findable in the catalog with enough detail for an agent to integrate correctly without reading any docs. As of this writing the /extract/invoice catalog entry is still showing a stale pre-migration record rather than this rich content — see git history / ask for status; /extract/receipt, /extract/contract, and /extract/resume haven't had a mainnet payment yet so aren't catalogued at all.
Positioning (from surveying the live Bazaar before writing the listing copy): generic OCR competitors are free but return raw unvalidated text; generic structured-extraction competitors charge ~$0.10/call and require the caller to already have plain text, not a raw file. This is the only listing found doing both — raw PDF/image in, a fixed validated schema out. Pricing (see wrangler.toml) is matched per-route to the lowest verified live-402 price from a direct competitor in that category, not set independently — $0.02 for invoice/receipt/resume/custom, $0.03 for contract (its real comparable is a cent higher). See src/lib/discovery.ts for the exact listing copy and each route's tags (serviceName/tags/description).
Architecture
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-10-30downgradeB → Cscore 68: eval / new Function used
Doc Extract API: common questions
- Is Doc Extract API MCP server safe?
- With care: it is graded C, so read the findings first (68/100). Read the Doc Extract API safety report
- How do I install Doc Extract API?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Doc Extract API need an API key?
- Yes. The registry entry asks for
WALLET_PRIVATE_KEY. - Is Doc Extract API maintained?
- The last commit was 58 days ago (2026-09-08). The latest release is v0.2.0.
- What can I use instead of Doc Extract API?
- Servers from other publishers that do the same job: Talonic MCP server, Mistral MCP server and Groundcheck MCP server.
- How does Doc Extract API compare with other Scraping and browsing MCP servers?
- safety score 68/100 (higher than 28% of 867 Scraping and browsing servers); tools 1 (the typical Scraping and browsing server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Doc Extract API
Same job from other publishers: the closest match first, then the best rated.
- TalonicExtract structured, schema-validated data from PDFs, scans, images, spreadsheets, and forms.not reviewedGrowingA
- MistralMistral MCP server: extract invoices and documents from text, Markdown or OCR into typed JSON.not reviewedGrowingB
- GroundcheckVerify claims, resolve FIGI identity, extract claims, and sign x402 delivery receipts over MCP.not reviewedGrowingA
- Rendex: Rendering API for Images, PDFs & Content ExtractionRender HTML, Markdown, or URLs to images, PDF, or branded artifacts; extract and watch pages.not reviewedGrowingA
- BrightdataBright Data's Web MCP server enabling AI agents to search, extract & navigate the webnot reviewedEstablishedB