# Smart OCR

> Smart OCR is a paid MCP server for files and documents. Multi-provider OCR API that turns invoices, receipts and forms into typed JSON. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://smartocr.dev
- **Repository:** https://github.com/saneth98/smart-ocr-proxy
- **MCP Registry name:** io.github.Saneth98/smartocr
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-22

## About

Smart OCR accepts a document and a target JSON schema, then routes the file to one of several AI providers and local models to return values that match that schema. Digital PDFs with embedded text skip OCR and are parsed directly, while scans and handwriting go through vision models. Nested line items and table rows are kept in their original relationships so the output can be inserted into a database without extra cleanup.

The service is offered as a REST endpoint and as a Model Context Protocol server, so an AI assistant or agent can request extractions as tool calls. Access is controlled with scoped API keys, per-key rate limits, signed webhooks for asynchronous batch jobs, and request logs.

It suits finance and operations teams processing supplier invoices, logistics teams handling shipping paperwork, and developers who would rather integrate one API than maintain several OCR vendors.

## Features

- **Schema-based JSON output:** Returns fields typed and validated against a schema the user supplies, including nested objects and required keys.
- **Table and line item extraction:** Detects table structure and cell boundaries so rows and columns stay aligned in the returned data.
- **Native PDF fast path:** Parses PDFs that already contain digital text directly, skipping OCR for those pages.
- **Multi-provider routing:** Sends each document to an appropriate model from several providers and falls back when needed.
- **Async webhooks:** Delivers results for batch jobs to a callback URL with signed payloads and retries.
- **MCP server access:** Exposes extraction to MCP-compatible AI clients over streamable HTTP.

## Good for

- Automating accounts payable by pulling line items from vendor invoices
- Extracting fields from bills of lading and shipping manifests
- Digitizing handwritten or scanned patient intake forms
- Letting an AI agent read uploaded receipts and return structured expense data

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http smartocr https://api.smartocr.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.smartocr.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.smartocr.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add smartocr --url https://api.smartocr.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.smartocr]
url = "https://api.smartocr.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "smartocr": {
      "httpUrl": "https://api.smartocr.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http smartocr https://api.smartocr.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "smartocr": {
      "serverUrl": "https://api.smartocr.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "smartocr": {
      "url": "https://api.smartocr.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.smartocr.dev/mcp
```

Enter a Name (for example "Smart OCR"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

The server marks 5 of 7 tools as able to change data. From the server's own tool labels and tool names; not verified by us.

- `extract_document_json` (says it can change data): 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_t
- `extract_document_table` (says it can change data): 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_docu
- `extract_document_text` (says it can change data): 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 JS
- `extract_document_batch` (says it can change data): 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 do
- `submit_document_job` (says it can change data): 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
- `get_document_job` (says read-only): 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 bala
- `get_smartocr_status` (says read-only): 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`).

## FAQ

### What is an OCR API used for?

It extracts text, tables and handwriting from documents such as invoices and receipts and returns the data as structured JSON.

### How do I call the extraction endpoint?

Send a POST request to /v1/extract with the file and a target schema, passing your API key in the x-api-key header.

### Is there a free tier?

New accounts receive 10 free API credits to extract data from the first 10 documents, with no credit card required.

### How is customer data handled?

Documents are processed in memory and discarded immediately, and TLS 1.2+ encrypts traffic. Upstream providers are bound by agreements that prohibit training on customer data.

### How do I add Smart OCR to Claude Code?

Run this command in your terminal: claude mcp add --transport http smartocr https://api.smartocr.dev/mcp

### What are the best alternatives to Smart OCR?

The closest alternatives to Smart OCR are Smart OCR — PDF, Invoice & Receipt to JSON/Table API, Space Ocr, Document to JSON – PDF Invoice/Statement/Contract Parser, PDF Text Extractor and Doc Extract Api.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Smart OCR — PDF, Invoice & Receipt to JSON/Table API](https://ai-powered.com/mcp/smart-ocr-pdf-invoice-and-receipt-to-json-table-api): Smart OCR — PDF, Invoice & Receipt to JSON/Table API is a freemium MCP server for files and documents.
- [Space Ocr](https://ai-powered.com/mcp/space-ocr): Space Ocr is a freemium MCP server for files and documents.
- [Document to JSON – PDF Invoice/Statement/Contract Parser](https://ai-powered.com/mcp/document-to-json-pdf-invoice-statement-contract-parser): Document to JSON – PDF Invoice/Statement/Contract Parser is a paid MCP server for files and documents.
- [PDF Text Extractor](https://ai-powered.com/mcp/pdf-text-extractor-2): PDF Text Extractor is a paid MCP server for files and documents.
- [Doc Extract Api](https://ai-powered.com/mcp/doc-extract-api): Doc Extract Api is a paid MCP server for files and documents.
- [Mistral MCP](https://ai-powered.com/mcp/mistral-mcp): Mistral MCP is an open-source MCP server for files and documents.
- [OCR-AI](https://ai-powered.com/mcp/ocr-ai): OCR-AI is a freemium MCP server for files and documents.
- [Suidasu](https://ai-powered.com/mcp/suidasu): Suidasu is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/smart-ocr
