StructOCR

v1.0.1
io.github.dracula911/structocr-mcp Checked 1 day ago Published 2 days ago

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

Values you need

VariableWhat it is
STRUCTOCR_API_KEYrequired secret Your StructOCR API key from https://structocr.com/dashboard/api-keys (200 permanent free credits on signup).
STRUCTOCR_BASE_URLoptional Optional API base URL override (defaults to https://api.structocr.com/v1).
STRUCTOCR_TIMEOUT_MSoptional Optional HTTP timeout in milliseconds (defaults to 60000).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add structocr-mcp -e 'STRUCTOCR_API_KEY=<STRUCTOCR_API_KEY>' -- npx -y structocr-mcp@1.0.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "structocr-mcp": {
      "args": [
        "-y",
        "structocr-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "STRUCTOCR_API_KEY": "<STRUCTOCR_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "structocr-mcp": {
      "args": [
        "-y",
        "structocr-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "STRUCTOCR_API_KEY": "<STRUCTOCR_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "STRUCTOCR_API_KEY",
      "id": "structocr-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "structocr-mcp": {
      "args": [
        "-y",
        "structocr-mcp@1.0.1"
      ],
      "command": "npx",
      "env": {
        "STRUCTOCR_API_KEY": "${input:structocr-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.structocr-mcp]
command = "npx"
args = ["-y", "structocr-mcp@1.0.1"]
env = { "STRUCTOCR_API_KEY" = "<STRUCTOCR_API_KEY>" }

For AI agents

  1. Ask the user for: STRUCTOCR_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: verify_driver_license, extract_pdf, image_to_excel, scan_document, get_account_balance, list_supported_documents.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json