StructOCR MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| STRUCTOCR_API_KEY | Yes | Your StructOCR API key (required for live scans). | |
| STRUCTOCR_BASE_URL | No | Custom API base URL. | https://api.structocr.com/v1 |
| STRUCTOCR_TIMEOUT_MS | No | Request timeout in milliseconds. | 60000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| verify_driver_licenseA | 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. |
| extract_pdfA | 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. |
| image_to_excelA | 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. |
| scan_documentA | 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. |
| get_account_balanceA | Retrieve your remaining StructOCR non-expiring credit balance, lifetime usage, and current-month API request metrics (GET /v1/account/balance, 0 credits). |
| list_supported_documentsA | 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). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.