Smart OCR
Multi-provider AI OCR and structured JSON/table extraction API for PDFs, invoices, and receipts.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (3)
- HIGH
- MEDIUMin extract_document_json
- MEDIUMin get_smartocr_status
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"smartocr": {
"url": "https://api.smartocr.dev/mcp"
}
}
}Remote-Endpunkte
https://api.smartocr.dev/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (3)
🟢extract_document_table(file_url, file_base64, file_name, preset, custom_headers, ...)
Extract structured table rows (line items, transactions, headers, document metadata, summary totals, Markdown table, and CSV) from a PDF or image (invoice, bank statement, credit card statement, receipt, timesheet, or scanned table). Works immediately on the free tier (2 free documents/day) or with an optional Smart OCR API key.
Eingabe-Schema
{
"type": "object",
"properties": {
"file_url": {
"type": "string",
"description": "Public HTTP/HTTPS URL to a PDF, PNG, JPG, WEBP, or TIFF document to extract."
},
"file_base64": {
"type": "string",
"description": "Base64-encoded document content (raw base64 or data:...;base64,... URI). Provide either file_url or file_base64."
},
"file_name": {
"type": "string",
"description": "Optional filename with extension (e.g., \"invoice.pdf\", \"statement.pdf\", \"receipt.png\"). Defaults to \"document.pdf\"."
},
"preset": {
"type": "string",
"enum": [
"auto",
"invoice",
"bank_statement",
"receipt"
],
"description": "Document preset: \"invoice\" for vendor invoices/bills, \"bank_statement\" for bank or credit card statements, \"receipt\" for retail/expense receipts, or \"auto\" to auto-detect."
},
"custom_headers": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional list of custom column headers to extract (e.g., [\"Date\", \"Description\", \"Amount\", \"Balance\"])."
},
"api_key": {
"type": "string",
"description": "Optional Smart OCR API key from https://smartocr.dev (can also be sent via x-api-key header). If omitted, uses the free tier (2 free docs/day)."
}
}
}🟢extract_document_json(file_url, file_base64, schema, file_name, api_key)
Extract strict, structured JSON matching any custom JSON schema or field template from a PDF or image (PNG, JPG, WEBP, TIFF). Ideal for developer pipelines, ERP/accounting ingestion, and custom document fields. Works on the free tier (2 free docs/day) or with a Smart OCR API key (10 free credits at https://smartocr.dev).
Eingabe-Schema
{
"type": "object",
"properties": {
"file_url": {
"type": "string",
"description": "Public HTTP/HTTPS URL to a PDF, PNG, JPG, WEBP, or TIFF document to extract."
},
"file_base64": {
"type": "string",
"description": "Base64-encoded document content (raw base64 or data:...;base64,... URI). Provide either file_url or file_base64."
},
"schema": {
"type": "object",
"description": "Target JSON schema or key-value object template describing the fields to extract (e.g., {\"vendorName\": \"string\", \"invoiceNumber\": \"string\", \"invoiceDate\": \"string\", \"totalAmount\": \"number\", \"lineItems\": [{\"description\": \"string\", \"quantity\": \"number\", \"amount\": \"number\"}]}).",
"additionalProperties": true
},
"file_name": {
"type": "string",
"description": "Optional filename with extension (e.g., \"invoice.pdf\")."
},
"api_key": {
"type": "string",
"description": "Optional Smart OCR API key from https://smartocr.dev (can also be sent via x-api-key header). If omitted, uses the free tier (2 free docs/day)."
}
},
"required": [
"schema"
]
}🟢get_smartocr_status(api_key)
Check Smart OCR service status, remaining free daily document quota (2 free documents/day), or developer API key credit balance, plus links to the web converter (https://read.smartocr.dev) and API portal (https://smartocr.dev).
Eingabe-Schema
{
"type": "object",
"properties": {
"api_key": {
"type": "string",
"description": "Optional Smart OCR API key to check your remaining API credit balance."
}
}
}Community
Nachweis