Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Doc Extract API
D
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Doc Extract API

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

SchemaLock β€” structured JSON from documents via a caller-supplied JSON Schema.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "doc-extract-api": {
      "command": "npx",
      "args": [
        "-y",
        "doc-extract-api"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

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. Priced at $0.05/call (still half the nearest real competitor). See src/lib/discovery.ts for the exact listing copy and each route's tags (serviceName/tags/description).

Architecture

  • schemas/ β€” JSON Schema for invoice, receipt, contract, and resume extractions (also the tool input_schema sent to Claude, so the model is forced into this exact shape).
  • src/lib/claude.ts β€” calls the Anthropic Messages API with the document as a native document/image content block and a forced tool_choice, so the model can't return anything but the schema.
  • src/lib/validate.ts β€” post-extraction sanity checks: line items sum to subtotal, subtotal + tax (+ tip) β‰ˆ total, dates are valid and not in the future, currency is a real ISO 4217 code, low-confidence fields get flagged.
  • src/lib/extract.ts β€” orchestrates one extraction pass, validates, and β€” if validation fails β€” retries once with a corrective prompt describing exactly what didn't add up. Never fails silently; returns validation_warnings alongside the data either way.
  • src/lib/customSchema.ts / src/routes/customExtractHandler.ts β€” /extract/custom: same Claude forced-tool-use engine, but the tool's input_schema is a JSON Schema the caller supplies at request time instead of one of the four fixed schemas. There's no domain-specific validator (no fixed domain to check against), so this returns schema-conformant output, not fact-checked output β€” validation_warnings is always []. The caller's schema is bounded (≀6000 chars, depth ≀4, ≀30 properties per level, no $ref) and rejected with a 400 β€” which costs nothing, since x402 only settles on a non-error response β€” before any model call. Accepts either a file (binary PDF/image, same as the fixed routes) or content (raw text/HTML the caller already has β€” e.g. an already-scraped web page, ≀100,000 chars) β€” exactly one of the two, not both. The text/HTML path is labeled explicitly as data in the prompt sent to Claude, not instructions, since it's arbitrary caller-supplied content and could otherwise be a prompt-injection vector.
  • src/lib/facilitator.ts β€” picks the free default facilitator on testnet, or, on mainnet (X402_NETWORK = "base"), Coinbase's authenticated CDP facilitator plus Mogami and PayAI for additional Bazaar-equivalent discovery surface (CDP stays first/primary β€” earlier facilitators get precedence for verify/settle); maps this project's human-readable network names to the CAIP-2 identifiers x402 v2 uses (eip155:8453 etc). Important: src/index.ts caches the built payment middleware at module scope rather than rebuilding it per-request β€” with multiple facilitators, an unhealthy one adds its full timeout to initialize(), and rebuilding per-request meant paying that cost on every request (this broke the API entirely the first time multi-facilitator was tried). Caching means only a cold isolate's first request pays that cost.
  • src/lib/discovery.ts β€” the Bazaar listing content: descriptions, tags, and discovery extensions (schema + real example) for all four routes.
  • src/index.ts β€” Hono app on Cloudflare Workers. @x402/hono's paymentMiddlewareFromConfig guards /extract/*, built per-request from Env bindings (Workers only exposes env vars inside a request, not at module load time).
  • src/routes/extractHandler.ts β€” pure extraction logic; payment has already been verified by the time this runs.
  • mcp/server.ts β€” stdio MCP server exposing extract_invoice, extract_receipt, extract_contract, extract_resume, and extract_custom tools. Each tool call signs and sends a real x402 payment (via @x402/fetch's wrapFetchWithPayment, same mechanism as scripts/test-payment.mjs) from a wallet supplied via WALLET_PRIVATE_KEY, then calls the live HTTP API over the network β€” it does not run extraction locally or call Claude directly. No free path: a missing or unfunded wallet fails the same way it would calling the API directly.

One deliberate deviation from the original spec

The spec assumed a PDF→image conversion step (pdf2image/poppler). Cloudflare Workers can't run native binaries, and Claude's Messages API accepts PDFs natively as a document content block — so PDFs are sent to Claude as-is. This removes a whole pipeline stage and a dependency that wouldn't run on Workers anyway.

Setup

bash
cd "doc-extract-api"
npm install

1. Secrets

Local dev β€” copy .dev.vars.example to .dev.vars and fill in a real key (gitignored):

bash
cp .dev.vars.example .dev.vars

Production:

Terminal
npx wrangler secret put ANTHROPIC_API_KEY

2. Wallet β€” where payments land

Edit wrangler.toml: X402_PAY_TO_ADDRESS must be a real wallet address you control before this can receive actual payments. It's a public receiving address (safe to commit, like a bank account number) β€” never put a private key anywhere in this project.

X402_NETWORK defaults to base-sepolia (testnet, free fake USDC from a faucet β€” good for verifying the whole flow with zero real money at risk).

X402_PRICE_PER_CALL defaults to $0.05, applied to all four routes.

2b. Going to mainnet (X402_NETWORK = "base")

The free default facilitator (x402.org/facilitator, used automatically on testnet) only supports testnet β€” mainnet requires an authenticated facilitator. This project is wired for Coinbase's CDP facilitator (src/lib/facilitator.ts):

  1. Create a CDP Portal account and a Secret API Key under Project β†’ API Keys.
  2. npx wrangler secret put CDP_API_KEY_ID
  3. npx wrangler secret put CDP_API_KEY_SECRET
  4. Set X402_NETWORK = "base" in wrangler.toml and redeploy.

Pricing: free for the first ~1,000 settled transactions/month, then $0.001 each β€” payment verification itself is always free. If X402_NETWORK is "base" and these secrets aren't set, requests will fail loudly at the facilitator-config step rather than silently misconfiguring payments.

Getting listed in the Bazaar requires at least one real mainnet payment to go through β€” the facilitator catalogs the resource the first time it processes a payment that echoes the bazaar extension. Run scripts/test-payment.mjs with a real funded wallet once to trigger it (see below), then confirm with:

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Developer Tools View all alternatives
  • Docling MCP logoDocling MCP

    Convert PDFs and other documents to structured formats via Docling, for AI applications.

    πŸ’» Developer Tools0 views
    Compare vs Docling MCP β†’
  • PraisonAI logoPraisonAI

    AI Agents Framework with Self Reflection and MCP support

    πŸ’» Developer Tools1 views
    Compare vs PraisonAI β†’
  • E
    Extend

    Turn documents into structured data: parse, extract, classify, split, and fill PDF forms.

    πŸ’» Developer Tools0 views
    Compare vs Extend β†’
  • Labelhead Artist Momentum logoLabelhead Artist Momentum

    Trending hip-hop artist momentum scores across four cultural dimensions.

    πŸ’» Developer Tools0 views
    Compare vs Labelhead Artist Momentum β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Doc Extract API

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "doc-extract-api": { "command": "npx", "args": ["-y", "doc-extract-api"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDoc Extract API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/doc-extract-api?style=directory)](https://allmcps.com/mcp/doc-extract-api)
HTML Embed
<a href="https://allmcps.com/mcp/doc-extract-api"><img src="https://allmcps.com/api/badge/doc-extract-api?style=directory" alt="Doc Extract API on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Doc Extract API β†’Install in Claude DesktopInstall in CursorInstall in VS Code