Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

High-performance OCR MCP server supporting multiple input modes (path, base64, URL, upload), batch processing, and output formats like plain, JSON, and Markdown.

README.md

RapidOCR MCP Server

High-performance OCR MCP Server.

Features

  • Multi-mode: MCP stdio, FastAPI HTTP, streamable-http
  • Multi-input: Path, Base64, URL, File upload
  • Batch OCR: Process multiple images in one request
  • Output formats: Plain, JSON, Markdown, Structured
  • Image preprocessing: Auto-enhance, rotate, binarize
  • Security: Path whitelist, API key, CORS, audit logging
  • Monitoring: Prometheus metrics, OpenTelemetry tracing
  • Production-ready: Docker, CI/CD, tests

Quick Start

Global Installation

# Install globally with uvx (recommended)
uvx rapidocr-mcp

# Or install globally with pip
pip install rapidocr-mcp

Local Development

# Install dependencies
uv sync

# Run MCP server (stdio mode)
uv run rapidocr-mcp

# Run FastAPI server
uv run rapidocr-mcp --mode fastapi --port 8080

Configuration

Set environment variables with RAPIDOCR_ prefix:

export RAPIDOCR_LANG=ch
export RAPIDOCR_LOG_LEVEL=INFO
export RAPIDOCR_API_KEY=your-key

MCP Configuration

Available Tools

| Tool | Description | |------|-------------| | ocr_by_path | OCR for local image file by path | | ocr_by_content | OCR for Base64 encoded image | | ocr_by_url | OCR for image from HTTP/HTTPS URL | | ocr_batch | Batch OCR for multiple images |

Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "rapidocr": {
      "command": "uvx",
      "args": ["rapidocr-mcp"]
    }
  }
}

Or with local installation:

{
  "mcpServers": {
    "rapidocr": {
      "command": "uv",
      "args": ["--directory", "/path/to/rapidocr-mcp", "run", "rapidocr-mcp"]
    }
  }
}

Other MCP Clients

For other MCP clients that support stdio mode, configure the command as:

uvx rapidocr-mcp
# or
rapidocr-mcp

Docker

docker-compose -f docker/docker-compose.yml up

API Endpoints

  • GET /health - Health check
  • POST /ocr/path - OCR by file path
  • POST /ocr/base64 - OCR by base64
  • POST /ocr/url - OCR by URL
  • POST /ocr/upload - OCR by file upload
  • GET /metrics - Prometheus metrics

Sponsoring

If you find this project helpful, consider buying me a coffee!

<a href="https://ko-fi.com/bitfarer" target="_blank"> <img src="https://img.shields.io/badge/Ko--fi-Buy%20me%20a%20coffee-FF5E5B?logo=ko-fi&logoColor=white&style=for-the-badge" alt="Ko-fi" /> </a>

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.