Back to Browse

Structocr MCP Server

Developer ToolsModerate7.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Structured OCR & ID verification MCP: driver license PDF417 verify, PDF tables, 22 endpoints.

About

Structured OCR & ID verification MCP: driver license PDF417 verify, PDF tables, 22 endpoints.

Security Report

7.2
Moderate7.2Low Risk

StructOCR MCP server is a thin wrapper around the official StructOCR API that requires a STRUCTOCR_API_KEY from environment variables, with no hardcoded secrets, no shell execution, and no exfiltration patterns in the visible code. Permissions (network_http to the StructOCR API, file_read for local document paths) match the stated OCR purpose and the Developer Tools category baseline. Minor observations include that local file paths are read without a directory restriction and that the structocr SDK and remaining test/README content were only partially visible. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

7 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Your StructOCR API key from https://structocr.com/dashboard/api-keys (200 permanent free credits on signup).Required

Environment variable: STRUCTOCR_API_KEY

Optional API base URL override (defaults to https://api.structocr.com/v1).Optional

Environment variable: STRUCTOCR_BASE_URL

Optional HTTP timeout in milliseconds (defaults to 60000).Optional

Environment variable: STRUCTOCR_TIMEOUT_MS

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "structocr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "structocr-mcp@1.0.1"
      ],
      "env": {
        "STRUCTOCR_API_KEY": "your-structocr-api-key-here",
        "STRUCTOCR_BASE_URL": "your-structocr-base-url-here",
        "STRUCTOCR_TIMEOUT_MS": "your-structocr-timeout-ms-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

StructOCR MCP Server

npm version CI MCP Docs

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

  1. 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.
  2. Copy your key from API Keys in the dashboard.
  3. 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 down to $99 for 17,000 credits ($0.00582–$0.0100/credit), with $0 monthly subscription and non-expiring credits. Failed requests, failed PDF pages, and unreadable HTTP 422 barcodes are automatically refunded.

TierCreditsCost / Scan (Pro – Mini)Cost / 1,000 Scans (USD)Covered Endpoints
Standard1$0.0058 – $0.0100$5.82 – $10.00Standard Receipt, VIN, Container (ISO 6346), License Plate, Marine HIN, ATM Cassette
Advanced2$0.0116 – $0.0200$11.65 – $20.00PDF Extract (per page, Zero Retention), Image to Excel (Zero Retention), Passport, National ID, Driver License, PDF417 (Zero Retention), Health Card, Visa, Proof of Address, Vehicle Registration, Auto Insurance, Weighbridge, VIN Pro, Enhanced Receipt
Complex3$0.0175 – $0.0300$17.47 – $30.00Multi-Page PDF Invoice (up to 5 pages), Bill of Lading
Verification4$0.0233 – $0.0400$23.29 – $40.00US/Canada Driver License Front + Back PDF417 Verify (Zero Retention)

See full pricing & comparisons.

Supported documents & endpoints

Document / WorkflowMCP Tool / document_typeCreditsZero RetentionTry it
US/Canada driver license verify (front OCR + back PDF417)verify_driver_license4YesTry it
PDF table & JSON extraction (up to 20 pages)extract_pdf2 / pageYesTry it
Image to Excel table extractionimage_to_excel2 / imageYesTry it
US/Canada driver license PDF417 barcodescan_document (driver_license_pdf417)2YesTry it
Driver license (front)scan_document (driver_license)2—Try it
Passport (MRZ + visual)scan_document (passport)2—Try it
National ID cardscan_document (national_id)2—Try it
Health insurance cardscan_document (health_card)2YesTry it
Proof of Addressscan_document (proof_of_address)2YesTry it
Travel visa (MRV-A/B & eVisa)scan_document (visa)2YesTry it
VINscan_document (vin)1—Try it
VIN Pro (VIN + vehicle details)scan_document (vin_pro)2—
License platescan_document (license_plate)1—Try it
Vehicle registration (Istimara, Mulkiya, global)scan_document (vehicle_registration)2—Try it
Auto insurance cardscan_document (auto_insurance)2—Try it
Invoice (multi-page PDF up to 5 pages)scan_document (invoice)3—Try it
Receiptscan_document (receipt)1 (2 enhanced)—Try it
Shipping container (ISO 6346)scan_document (container)1—Try it
Bill of Lading & freightscan_document (bill_of_lading)3—Try it
Weighbridge ticketscan_document (weighbridge_ticket)2—Try it
ATM cassettescan_document (atm_cassette)1—
HIN (boat hull number)scan_document (hin)1—Try it

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-mcp

VS 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

ToolEndpointCreditsPurpose
verify_driver_licensePOST /v1/driver-license-verify4Front OCR + back AAMVA PDF417 cross-check, DD/DCF check, expiry, and min_age check (strict Zero Data Retention; card-level check only, does not query DMV registries).
extract_pdfPOST /v1/pdf-extract2 / pageMulti-page PDF & scanned document table/KV/custom-schema JSON extraction up to 10 MB / 20 pages (strict Zero Data Retention).
image_to_excelPOST /v1/image-to-excel2 / imageConvert table photos and scans into deterministic headers[] and rows[][] arrays (strict Zero Data Retention).
scan_document19 /v1/* endpoints1–3Scan 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.
get_account_balanceGET /v1/account/balance0Check remaining non-expiring credits and current-month API usage.
list_supported_documentsLocal metadata0List 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_license and scan_document (driver_license_pdf417): JPG, PNG, WebP, and Apple HEIC/HEIF up to 4.5 MB.
  • Other scan_document endpoints: JPG, PNG, WebP, HEIC/HEIF, and PDF up to 4.5 MB.
  • extract_pdf and image_to_excel: PDF, JPG, PNG, and WebP up to 10 MB / 20 pages.

Example agent prompts

  • "Verify ./license-front.jpg and ./license-back.heic with minimum age 21 and tell me if DD matches DCF."
  • "Extract all tables from pages 1–5 of ./q4-statement.pdf and save them as a CSV."
  • "Scan ./saudi-istimara.jpg as a vehicle_registration and return the VIN, plate number, and owner name."
  • "Check my StructOCR credit balance."

Configuration

Environment variableRequiredDefaultDescription
STRUCTOCR_API_KEYYes (for live scans)—Your StructOCR API key
STRUCTOCR_BASE_URLNohttps://api.structocr.com/v1Custom API base URL
STRUCTOCR_TIMEOUT_MSNo60000Request timeout in milliseconds

Machine-Readable Specs, SDKs & Automation

Errors & privacy

  • Built on the official structocr Node.js SDK. Errors return structured JSON (error, status, code, retryable, details) with isError: 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, and visa.

License

MIT

Reviews

No reviews yet

Be the first to review this server!