RapidOCR MCP Server
Provides OpenTelemetry tracing for distributed monitoring and observability of the OCR server.
Exposes Prometheus metrics for monitoring server performance and OCR operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RapidOCR MCP Serverextract text from screenshot.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: document-reader-mcp
Quick Start
Global Installation
# Install globally with uvx (recommended)
uvx rapidocr-mcp
# Or install globally with pip
pip install rapidocr-mcpLocal Development
# Install dependencies
uv sync
# Run MCP server (stdio mode)
uv run rapidocr-mcp
# Run FastAPI server
uv run rapidocr-mcp --mode fastapi --port 8080Configuration
Set environment variables with RAPIDOCR_ prefix:
export RAPIDOCR_LANG=ch
export RAPIDOCR_LOG_LEVEL=INFO
export RAPIDOCR_API_KEY=your-keyMCP Configuration
Available Tools
Tool | Description |
| OCR for local image file by path |
| OCR for Base64 encoded image |
| OCR for image from HTTP/HTTPS URL |
| 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-mcpDocker
docker-compose -f docker/docker-compose.yml upAPI Endpoints
GET /health- Health checkPOST /ocr/path- OCR by file pathPOST /ocr/base64- OCR by base64POST /ocr/url- OCR by URLPOST /ocr/upload- OCR by file uploadGET /metrics- Prometheus metrics
Sponsoring
If you find this project helpful, consider buying me a coffee!
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bitfarer/rapidocr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server