# OCRRouter

> OCRRouter is a freemium MCP server for files and documents. OCR API and MCP server that turns PDFs and images into Markdown or JSON for agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, CLI
- **Website:** https://ocrrouter.ai/docs
- **MCP Registry name:** ai.ocrrouter/ocrrouter
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

OCRRouter accepts a PDF or image by URL, base64 or uploaded file ID and returns the text as Markdown, JSON, plain text, HTML, CSV, Word or Excel. Tables, formulas and page breaks are preserved in the Markdown output, and the JSON output uses the same block structure across every model.

Rather than tying you to one engine, it exposes a catalogue of OCR and vision models behind a single request. You can name a model, set model to auto with a route preference of quality, cheapest or fastest, and list fallback models that run in order if the first one errors or is rate-limited. The response reports which model answered, and failed or empty results are not charged.

It suits developers wiring document extraction into their own applications, and AI agents that need to read invoices, reports or scanned files. A remote MCP server exposes an ocr tool and a list_models tool to clients such as Claude Code, Cursor and Windsurf, and agents can obtain a temporary key without an account.

## Features

- **Multiple output formats:** Returns Markdown, JSON, text, HTML, CSV, Word or Excel from the same document.
- **Automatic model routing:** Chooses a model per document, weighted toward quality, cost or speed.
- **Fallback chain:** Retries the request on other listed models when the first one fails.
- **Remote MCP server:** Streamable HTTP endpoint with ocr and list_models tools for AI clients.
- **Temporary agent keys:** Agents without an account can request a small credit key for trial use.
- **Result caching:** Repeat requests for the same file and model are served from cache at no cost.

## Good for

- Extracting tables and line items from invoices into structured data
- Converting scanned PDFs into Markdown for retrieval or RAG pipelines
- Letting an AI agent read attached documents through an MCP client
- Comparing OCR output across several models with fallbacks for reliability
- Exporting scanned reports into editable Word or Excel files

## Install

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

```sh
claude mcp add --transport http ocrrouter https://api.ocrrouter.ai/v1/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": {
    "ocrrouter": {
      "type": "http",
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

```text
https://api.ocrrouter.ai/v1/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": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "type": "http",
      "url": "https://api.ocrrouter.ai/v1/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.ocrrouter.ai/v1/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 ocrrouter --url https://api.ocrrouter.ai/v1/mcp
```

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

```toml
[mcp_servers.ocrrouter]
url = "https://api.ocrrouter.ai/v1/mcp"
```

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "httpUrl": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http ocrrouter https://api.ocrrouter.ai/v1/mcp

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "serverUrl": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/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": {
    "ocrrouter": {
      "type": "streamableHttp",
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/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": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "ocrrouter": {
      "url": "https://api.ocrrouter.ai/v1/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.ocrrouter.ai/v1/mcp
```

Enter a Name (for example "OCRRouter"), 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": {
    "ocrrouter": {
      "type": "http",
      "url": "https://api.ocrrouter.ai/v1/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 2 tools reads data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `ocr`: Converts a PDF or image URL or base64 input to Markdown or JSON.
- `list_models` (name suggests: reads): Lists the available OCR models with their prices and availability.

## FAQ

### How do I call an OCR API?

Send a POST request to the ocr endpoint with a bearer API key, a model ID or auto, and a file URL, base64 string or file ID. A curl quickstart is in the documentation.

### Is there a free OCR API key?

New accounts receive 50 free credits, and POST /v1/keys/temporary issues a temporary key with 50 credits once per day without sign-up.

### What happens if a model fails?

If you list fallbacks, the next model runs in order, and you pay only for the model that answered.

### Can AI agents use OCRRouter?

Yes. The remote MCP server at api.ocrrouter.ai/v1/mcp can be added to Claude Code, Cursor and other MCP clients with an API key header.

### How do I add OCRRouter to Claude Code?

Run this command in your terminal: claude mcp add --transport http ocrrouter https://api.ocrrouter.ai/v1/mcp

### What are the best alternatives to OCRRouter?

The closest alternatives to OCRRouter are Smart OCR, Smart OCR — PDF, Invoice & Receipt to JSON/Table API, ocr-software.com OCR, Space Ocr and pdffr.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Smart OCR](https://ai-powered.com/mcp/smart-ocr): Smart OCR is a paid MCP server for files and documents.
- [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.
- [ocr-software.com OCR](https://ai-powered.com/mcp/ocr-software-com-ocr): ocr-software.com OCR 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.
- [pdffr](https://ai-powered.com/mcp/pdffr): pdffr is an open-source MCP server for files and documents.
- [PDF to MD](https://ai-powered.com/mcp/pdf-to-md): PDF to MD is a freemium MCP server for files and documents.
- [Optical Context MCP](https://ai-powered.com/mcp/optical-context-mcp): Optical Context MCP is an open-source MCP server for files and documents.
- [Pdf MCP](https://ai-powered.com/mcp/pdf-mcp-2): Pdf MCP is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/ocrrouter
