OCRRouter
OCR API and MCP server that turns PDFs and images into Markdown or JSON for agents
OCRRouter is a freemium MCP server for files and documents. It runs as a hosted remote server, so there is nothing to install locally.
- Pricing
- Freemium
- Platforms
- Web, API, CLI
- Runs
- Remotely
- Version
- 0.2.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add --transport http ocrrouter https://api.ocrrouter.ai/v1/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"ocrrouter": {
"type": "http",
"url": "https://api.ocrrouter.ai/v1/mcp"
}
}
}In Customize → Connectors → Add → Add custom connector
https://api.ocrrouter.ai/v1/mcpPaste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ocrrouter": {
"url": "https://api.ocrrouter.ai/v1/mcp"
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
In chatgpt.com → Plugins → + → Add custom MCP server
https://api.ocrrouter.ai/v1/mcpPaste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.
Add with the CLI
Run in a terminal
codex mcp add ocrrouter --url https://api.ocrrouter.ai/v1/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ocrrouter]
url = "https://api.ocrrouter.ai/v1/mcp"Add to Grok Bot desktop app → Connect apps → Add a custom connector
https://api.ocrrouter.ai/v1/mcpEnter a Name (for example "OCRRouter"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.
Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ocrrouter": {
"type": "http",
"url": "https://api.ocrrouter.ai/v1/mcp"
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "ocrrouter": { "serverUrl": "https://api.ocrrouter.ai/v1/mcp" } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "ocrrouter": { "type": "streamableHttp", "url": "https://api.ocrrouter.ai/v1/mcp" } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "ocrrouter": { "url": "https://api.ocrrouter.ai/v1/mcp" } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ocrrouter": { "url": "https://api.ocrrouter.ai/v1/mcp" } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ocrrouter": { "url": "https://api.ocrrouter.ai/v1/mcp" } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About OCRRouter
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.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
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_modelsName suggests: reads
- Lists the available OCR models with their prices and availability.
What it does
- 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
Pricing
Freemium
50 free credits at sign-up; $1 per 1,000 credits pay-as-you-go; subscription plans from $0.49 per 1,000 credits.
Prices change. Check ocrrouter.ai before you buy.
OCRRouter 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.