StructOCR MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@StructOCR MCP Server extract the line items from this invoice PDF and return them as JSON"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
StructOCR MCP Server
Official Model Context Protocol (MCP) server for the StructOCR API.
Give Claude Desktop, Cursor, Claude Code, VS Code, Windsurf, and any MCP-compatible AI agent direct access to 22 structured OCR & verification endpoints — spanning identity & KYC (US/Canadian front+back driver license verification, PDF417 barcodes, driver licenses, passports, travel visas, proof of address, national IDs, health insurance cards), general documents (multi-page PDF table/JSON extraction, Image to Excel), vehicles & insurance (VIN, VIN Pro vehicle decode, license plates, vehicle registrations including Saudi Istimara & UAE Mulkiya, auto insurance cards), finance (multi-page PDF invoices, receipts), and logistics (bills of lading, shipping containers, weighbridge tickets, ATM cassettes, boat HINs). One tool call per document, zero template training, pay-as-you-go credits that never expire.
Get a free API key
Create an account. New accounts get 200 permanent free credits (50 full driver license verifications or 100 two-credit document scans), with no credit card required.
Copy your key from API Keys in the dashboard.
Optionally test any endpoint on a sample document in the Playground before connecting your agent.
After the free credits, packs start at $5 for 500 credits ($0.0058–$0.01/credit). There is no monthly subscription and credits never expire. See pricing.
Related MCP server: Invoice Data Extraction MCP server
Supported documents & endpoints
Document / Workflow | MCP Tool / | Credits | Zero Retention | Try it |
US/Canada driver license verify (front OCR + back PDF417) |
| 4 | Yes | |
PDF table & JSON extraction (up to 20 pages) |
| 2 / page | Yes | |
Image to Excel table extraction |
| 2 / image | Yes | |
US/Canada driver license PDF417 barcode |
| 2 | Yes | |
Driver license (front) |
| 2 | — | |
Passport (MRZ + visual) |
| 2 | — | |
National ID card |
| 2 | — | |
Health insurance card |
| 2 | Yes | |
Proof of Address |
| 2 | Yes | |
Travel visa (MRV-A/B & eVisa) |
| 2 | Yes | |
VIN |
| 1 | — | |
VIN Pro (VIN + vehicle details) |
| 2 | — | |
License plate |
| 1 | — | |
Vehicle registration (Istimara, Mulkiya, global) |
| 2 | — | |
Auto insurance card |
| 2 | — | |
Invoice (multi-page PDF up to 5 pages) |
| 3 | — | |
Receipt |
| 1 (2 enhanced) | — | |
Shipping container (ISO 6346) |
| 1 | — | |
Bill of Lading & freight |
| 3 | — | |
Weighbridge ticket |
| 2 | — | |
ATM cassette |
| 1 | — | |
HIN (boat hull number) |
| 1 | — |
Only successful requests are charged. Failed pages on extract_pdf / image_to_excel and unreadable back barcodes (HTTP 422) on verify_driver_license are automatically refunded.
Quick setup
Node.js 18+ is required. Run directly via npx without a global install:
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"structocr": {
"command": "npx",
"args": ["-y", "structocr-mcp"],
"env": {
"STRUCTOCR_API_KEY": "YOUR_API_KEY"
}
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"structocr": {
"command": "npx",
"args": ["-y", "structocr-mcp"],
"env": {
"STRUCTOCR_API_KEY": "YOUR_API_KEY"
}
}
}
}Claude Code
claude mcp add structocr -e STRUCTOCR_API_KEY="YOUR_API_KEY" -- npx -y structocr-mcpVS Code (.vscode/mcp.json)
{
"servers": {
"structocr": {
"type": "stdio",
"command": "npx",
"args": ["-y", "structocr-mcp"],
"env": {
"STRUCTOCR_API_KEY": "${input:structocr_api_key}"
}
}
},
"inputs": [
{
"id": "structocr_api_key",
"type": "promptString",
"description": "StructOCR API Key",
"password": true
}
]
}Available MCP tools
Tool | Endpoint | Credits | Purpose |
|
| 4 | Front OCR + back AAMVA PDF417 cross-check, DD/DCF check, expiry, and |
|
| 2 / page | Multi-page PDF & scanned document table/KV/custom-schema JSON extraction up to 10 MB / 20 pages (strict Zero Data Retention). |
|
| 2 / image | Convert table photos and scans into deterministic |
| 19 | 1–3 | Scan passports, national IDs, driver licenses, PDF417 barcodes, visas, proof of address, health cards, VIN/VIN Pro, license plates, vehicle registrations (Saudi Istimara, UAE Mulkiya, US DMV), auto insurance cards, invoices, receipts, containers, bills of lading, weighbridge tickets, ATM cassettes, and HINs. |
|
| 0 | Check remaining non-expiring credits and current-month API usage. |
| Local metadata | 0 | List all 22 document endpoints, credit costs, zero-retention flags, and accepted formats (works without an API key). |
Supported file inputs
Every file parameter (file, front_file, back_file) accepts:
A local file path (e.g.
./license-front.jpg,/path/to/license-back.heic,./statement.pdf)A base64 data URL (e.g.
data:image/jpeg;base64,...)A raw base64 string with valid JPEG, PNG, WebP, HEIC/HEIF, or PDF magic bytes
Size & format limits:
verify_driver_licenseandscan_document(driver_license_pdf417): JPG, PNG, WebP, and Apple HEIC/HEIF up to 4.5 MB.Other
scan_documentendpoints: JPG, PNG, WebP, HEIC/HEIF, and PDF up to 4.5 MB.extract_pdfandimage_to_excel: PDF, JPG, PNG, and WebP up to 10 MB / 20 pages.
Example agent prompts
"Verify
./license-front.jpgand./license-back.heicwith minimum age 21 and tell me if DD matches DCF.""Extract all tables from pages 1–5 of
./q4-statement.pdfand save them as a CSV.""Scan
./saudi-istimara.jpgas avehicle_registrationand return the VIN, plate number, and owner name.""Check my StructOCR credit balance."
Configuration
Environment variable | Required | Default | Description |
| Yes (for live scans) | — | Your StructOCR API key |
| No |
| Custom API base URL |
| No |
| Request timeout in milliseconds |
Machine-Readable Specs, SDKs & Automation
Python SDK (
pip install structocr):dracula911/structocr-pythonNode.js SDK (
npm install structocr):dracula911/structocr-nodeOpenAPI 3.1 Spec:
https://structocr.com/openapi.jsonLLM Documentation Index:
https://structocr.com/llms.txt·https://structocr.com/llms-full.txtn8n Workflow Guides: Driver License Verification · Image to Excel · Saudi Istimara
API Reference:
https://structocr.com/developers
Errors & privacy
Built on the official
structocrNode.js SDK. Errors return structured JSON (error,status,code,retryable,details) withisError: true— the server never retries OCR calls automatically to prevent duplicate charges.Strict Zero Data Retention is enforced on
verify_driver_license,extract_pdf,image_to_excel,driver_license_pdf417,health_card,proof_of_address, andvisa.
License
MIT
Available Tools
6 toolsextract_pdfExtract Tables, Key-Values & Custom JSON from PDFARead-onlyIdempotent
Zero-retention general-purpose PDF and scanned document extraction (POST /v1/pdf-extract, 2 credits per succeeded page, failed pages automatically refunded). Supports PDF, JPG, PNG, and WebP up to 10 MB / 20 pages with multi-page table stitching and optional custom JSON schema.
Inputs: file (required), mode, pages, schema, +1 more.
get_account_balanceCheck StructOCR Account Credit BalanceARead-onlyIdempotent
Retrieve your remaining StructOCR non-expiring credit balance, lifetime usage, and current-month API request metrics (GET /v1/account/balance, 0 credits).
Inputs: no named parameters.
image_to_excelExtract Structured Tables from Image or Scan (Image to Excel)ARead-onlyIdempotent
Zero-retention table extraction optimized for photos, screenshots, and scanned sheets (POST /v1/image-to-excel, 2 credits per succeeded image/page, failed pages automatically refunded). Returns deterministic headers[] and rows[][] arrays ready for Excel or CSV.
Inputs: file (required), mode, pages, schema, +1 more.
list_supported_documentsList Supported StructOCR Documents & Credit PricingARead-onlyIdempotent
List all 22 supported StructOCR document & verification endpoints with credit costs, zero-retention flags, accepted file formats, and documentation URLs (local lookup, 0 credits, no API key required).
Inputs: category, zero_retention_only.
scan_documentScan Single Document to Structured JSONARead-onlyIdempotent
Extract schema-validated JSON from any of 19 specialized StructOCR single-document endpoints (1-3 credits depending on document type; supports JPG, PNG, WebP, HEIC, and PDF up to 4.5 MB — driver_license_pdf417 accepts JPG, PNG, WebP, HEIC). Zero Data Retention applies automatically on driver_license_pdf417, health_card, proof_of_address, and visa.
Inputs: file (required), document_type (required), accuracy, response_version.
verify_driver_licenseVerify US/Canada Driver License (Front OCR + Back PDF417)ARead-onlyIdempotent
Single-call US & Canadian driver license verification (POST /v1/driver-license-verify, 4 credits, strict Zero Data Retention). Runs back AAMVA PDF417 barcode decode first, then front OCR cross-check, Document Discriminator (DD vs. DCF), expiry, and optional minimum age check. Unreadable back barcodes return HTTP 422 with failed_side/capture_issue and automatically refund all 4 credits. Card-level consistency check only (does not query DMV registries). Supports JPG, PNG, WebP, and HEIC up to 4.5 MB each.
Inputs: back_file (required), front_file (required), min_age.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools target distinct operations, but verify_driver_license overlaps with scan_document, whose driver_license_pdf417 endpoint covers driver licenses too, and extract_pdf overlaps with scan_document for PDF inputs. The descriptions hint at the difference (dedicated two-sided AAMVA verification vs. generic schema extraction), but an agent could easily misselect between them.
Five of six tools follow a clean verb_noun snake_case pattern (get_account_balance, verify_driver_license, extract_pdf, scan_document, list_supported_documents). image_to_excel breaks the pattern slightly by being noun_to_noun, but it remains readable and consistent in casing.
Six tools is well-scoped for an OCR/extraction API: account, discovery, three extraction modes, and one specialized verification. Each tool clearly earns its place with no filler.
The surface covers discovery, billing/usage, generic PDF extraction, table extraction, schema-based document scanning, and license verification—enough for typical workflows. Minor gaps exist around batch/multi-file submission, async job status, or structured error/result retrieval that a production OCR pipeline might expect.
Related MCP Connectors
Hosted document tools for agents: extract, parse, classify, convert, OCR, sign, and redact.
OCR for agents: PDFs and images to Markdown or JSON, routed across OCR models. Free models included.
Pay-per-call document and web tools for AI agents: PDF parsing and OCR (Japanese-strong), web and structured extraction, invoice verification, company profiles and PDF utilities. x402 (USDC on Base), no API key; failed calls are never charged.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
AlicenseAqualityCmaintenanceEnables Claude and other MCP-compatible agents to process documents, extract structured data, detect PII, and export LLM-ready datasets through natural language tool calls.854 PyPI1MIT- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible agents to run the complete document extraction loop as remote tools: upload files, submit extraction jobs with plain-language instructions, answer clarifying questions, inspect review-needed rows and failed pages, and download results as spreadsheets or JSON.MIT

FastOCR MCP serverofficial
AlicenseAqualityCmaintenanceEnables MCP clients such as Claude Desktop, Claude Code and Cursor to OCR local scanned PDFs and images in 100+ languages, returning the extracted text or a searchable PDF. It also lets agents check document status, list recent documents and delete them.637 PyPI1MIT- AlicenseAqualityBmaintenanceEnables Claude, Cursor, and other AI agents to read PDFs and scans by submitting documents to an OCR API and saving results as JSON, text, Markdown, or hOCR files. Includes quoting, job status, and human-confirmed budget controls for safe document processing.747 PyPIMIT