# Smart OCR

> Multi-provider AI OCR and structured JSON/table extraction API for PDFs, invoices, and receipts.

- name: io.github.Saneth98/smartocr
- version: 1.0.1
- connection class: R0 (autonomous)
- trust: 97/100
- quality: 80/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.Saneth98%2Fsmartocr
- tools: https://api.protogrid.dev/v1/servers/io.github.Saneth98%2Fsmartocr/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "smartocr": {
      "type": "http",
      "url": "https://api.smartocr.dev/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 99
- freshness: 100
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-97% +updated-8d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 80/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-03-26; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 7 of 7 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 2,587 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 9 tool changes in 30 days
- fail `stability.rug_pull`: 3 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 7, about 2,587 tokens to load them all
- tool set hash: 10ba40aaef38f7d934a5bc05d81bbac2
- tools last changed: 2026-11-26T20:46:45.212Z
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.Saneth98/smartocr.svg)](https://protogrid.dev/servers/io.github.Saneth98/smartocr)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-26 `extract_document_text` changed (description, outputSchema) no new version (still 1.1.0)
  - before: Extract verbatim plain-text OCR transcription from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) with zero LLM rewriting or schema transformation. Routes digital PDFs through native text extraction and scanned documents through Google Cloud Vision or AWS Textract in memory. Use when you want the full raw text of contracts, letters, forms, or scans. Do NOT use when you need structured JSON fields (`extract_document_json`) or spreadsheet/CSV rows (`extract_document_table`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
  - after: Extract verbatim plain-text OCR transcription from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) with zero LLM rewriting or schema transformation. Routes digital PDFs through native text extraction and scanned documents through enterprise computer vision in memory. Use when you want the full raw text of contracts, letters, forms, or scans. Do NOT use when you need structured JSON fields (`extract_document_json`) or spreadsheet/CSV rows (`extract_document_table`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- 2026-11-26 `extract_document_json` changed (outputSchema) no new version (still 1.1.0)
- 2026-11-25 `get_smartocr_status` changed (description, inputSchema, outputSchema) **meaning changed**
  - before: 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).
  - after: Check Smart OCR server health, remaining anonymous daily free-tier document quota (2 free documents/day per IP), and optionally validate an `api_key` to inspect remaining paid page credits. Read-only and consumes zero credits. Use before running extractions to verify quota or credit availability; do NOT use to poll async extraction jobs (`get_document_job`).
- 2026-11-25 `get_document_job` added
  - Retrieve the lifecycle status (`PROCESSING`, `COMPLETED`, or `FAILED`), timestamps, and extracted JSON result of an asynchronous job previously created by `submit_document_job`. Requires the same user `api_key` that submitted the job; returns a not-found error for unknown or unauthorized `job_id` values. Read-only and consumes zero credits. Do NOT use to check service health or account credit balance (`get_smartocr_status`).
- 2026-11-25 `submit_document_job` added
  - Create a tracked extraction job (`jobId`) for custom-schema JSON extraction with optional HTTP webhook delivery (`POST` callback with `{jobId, status, data}`), persisted so results can be retrieved via `get_document_job`. Requires a valid `api_key` (max 5 MB document size; deducts 1 credit per page upon completion). Use for asynchronous, persisted, or webhook-driven workflows; for immediate inline extraction without creating a stored job record, use `extract_document_json` instead.
- 2026-11-25 `extract_document_batch` added
  - Extract structured JSON matching one shared `schema` across 2 to 5 document URLs in a single batch call (max 15 MB per file). Partial failures are isolated per item: if one URL fails to download or parse, remaining documents still succeed and return per-file status. Use when normalizing multiple homogeneous documents (e.g., a batch of vendor bills or receipts) into the same schema. For a single document, use `extract_document_json` instead. Requires a valid `api_key` (or `x-api-key` header) and deducts 1 credit per successfully processed page.
- 2026-11-25 `extract_document_text` added
  - Extract verbatim plain-text OCR transcription from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) with zero LLM rewriting or schema transformation. Routes digital PDFs through native text extraction and scanned documents through Google Cloud Vision or AWS Textract in memory. Use when you want the full raw text of contracts, letters, forms, or scans. Do NOT use when you need structured JSON fields (`extract_document_json`) or spreadsheet/CSV rows (`extract_document_table`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- 2026-11-25 `extract_document_table` changed (description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: 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.
  - after: Extract flat 2D spreadsheet rows and columns from a single PDF or image (max 15 MB) as a Markdown table and RFC-4180 CSV without defining a JSON schema. Ideal for bank statements, credit card statements, invoice line-item grids, and timesheets. Use ONLY for flat row/column tabular exports; for nested or arbitrary JSON schemas use `extract_document_json`, and for non-tabular prose use `extract_document_text`. Fails with an error if the document contains zero tabular rows. Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- 2026-11-25 `extract_document_json` changed (description, inputSchema, outputSchema, annotations) **meaning changed**
  - before: 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).
  - after: Extract nested, typed JSON fields matching a caller-defined `schema` from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) in memory without storing files. Use when you need structured key-value or nested object/array fields (e.g., invoice headers, serial numbers, or vendor bill expense vs. item cost distributions). Do NOT use for schema-free 2D spreadsheet/CSV exports (`extract_document_table`), verbatim plain-text OCR (`extract_document_text`), multiple documents at once (`extract_document_batch`), or async webhook jobs (`submit_document_job`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.

Full history: https://api.protogrid.dev/v1/servers/io.github.Saneth98%2Fsmartocr/changes

## Remotes

- https://api.smartocr.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.9722222)

## Packages

_none_

## Tools (7)

- `extract_document_batch`: Extract structured JSON matching one shared `schema` across 2 to 5 document URLs in a single batch call (max 15 MB per file). Partial failures are isolated per item: if one URL fails to download or parse, remaining documents still succeed and return per-file status. Use when normalizing multiple homogeneous documents (e.g., a batch of vendor bills or receipts) into the same schema. For a single document, use `extract_document_json` instead. Requires a valid `api_key` (or `x-api-key` header) and deducts 1 credit per successfully processed page.
- `extract_document_json`: Extract nested, typed JSON fields matching a caller-defined `schema` from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) in memory without storing files. Use when you need structured key-value or nested object/array fields (e.g., invoice headers, serial numbers, or vendor bill expense vs. item cost distributions). Do NOT use for schema-free 2D spreadsheet/CSV exports (`extract_document_table`), verbatim plain-text OCR (`extract_document_text`), multiple documents at once (`extract_document_batch`), or async webhook jobs (`submit_document_job`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- `extract_document_table`: Extract flat 2D spreadsheet rows and columns from a single PDF or image (max 15 MB) as a Markdown table and RFC-4180 CSV without defining a JSON schema. Ideal for bank statements, credit card statements, invoice line-item grids, and timesheets. Use ONLY for flat row/column tabular exports; for nested or arbitrary JSON schemas use `extract_document_json`, and for non-tabular prose use `extract_document_text`. Fails with an error if the document contains zero tabular rows. Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- `extract_document_text`: Extract verbatim plain-text OCR transcription from a single PDF or image (PNG, JPEG, WEBP, TIFF; max 15 MB) with zero LLM rewriting or schema transformation. Routes digital PDFs through native text extraction and scanned documents through enterprise computer vision in memory. Use when you want the full raw text of contracts, letters, forms, or scans. Do NOT use when you need structured JSON fields (`extract_document_json`) or spreadsheet/CSV rows (`extract_document_table`). Consumes 1 credit per page with `api_key`, or 1 of 2 free daily anonymous extractions when omitted.
- `get_document_job`: Retrieve the lifecycle status (`PROCESSING`, `COMPLETED`, or `FAILED`), timestamps, and extracted JSON result of an asynchronous job previously created by `submit_document_job`. Requires the same user `api_key` that submitted the job; returns a not-found error for unknown or unauthorized `job_id` values. Read-only and consumes zero credits. Do NOT use to check service health or account credit balance (`get_smartocr_status`).
- `get_smartocr_status`: Check Smart OCR server health, remaining anonymous daily free-tier document quota (2 free documents/day per IP), and optionally validate an `api_key` to inspect remaining paid page credits. Read-only and consumes zero credits. Use before running extractions to verify quota or credit availability; do NOT use to poll async extraction jobs (`get_document_job`).
- `submit_document_job`: Create a tracked extraction job (`jobId`) for custom-schema JSON extraction with optional HTTP webhook delivery (`POST` callback with `{jobId, status, data}`), persisted so results can be retrieved via `get_document_job`. Requires a valid `api_key` (max 5 MB document size; deducts 1 credit per page upon completion). Use for asynchronous, persisted, or webhook-driven workflows; for immediate inline extraction without creating a stored job record, use `extract_document_json` instead.

## Prompts and resources

### Prompts (2)

- `` extract-bank-statement ``: Extract all transactions (Date, Description, Debit, Credit, Balance) from a bank or credit card statement PDF.
- `` extract-invoice-to-table ``: Extract all line items, vendor details, and totals from an invoice PDF or image.

### Resources (1)

- `` smartocr://docs/overview ``: Overview of Smart OCR endpoints, pricing, supported document formats, and multi-engine OCR routing.
