mcp_ocr

mcp_ocr

Modular OCR MCP server supporting Apple Vision, PaddleOCR, and PaddleOCR-VL backends. Enables text, layout, table, formula, and chart extraction from images via natural language.

Category
Visit Server

README

mcp_ocr

Modular OCR MCP server with pluggable backends: Apple Vision, PaddleOCR, and PaddleOCR-VL.

Requires pi-mcp-bridge to connect to pi.

Installation

pip install git+https://github.com/timaliev/mcp_ocr.git#egg=mcp-ocr[vision,paddleocr-vl]

Or via uv:

uv tool install git+https://github.com/timaliev/mcp_ocr.git

Optional dependency groups

Group Backend Requirements
vision Apple Vision macOS 10.15+
paddle PaddleOCR Cross-platform, CPU
paddleocr-vl PaddleOCR-VL macOS 14+, Apple Silicon, paddleocr-vl CLI
all Everything All of the above

Configuration

With pi-mcp-bridge

In ~/.pi/agent/settings.json:

{
  "mcpBridge": {
    "servers": [
      {
        "name": "ocr",
        "command": "mcp-ocr",
        "args": []
      }
    ]
  }
}

Standalone MCP client

In ~/.mcp.json:

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

Backends

Quick comparison

Vision Paddle PaddleOCR-VL
Speed ⚡ Instant 🐢 30–90s 🐢 2–7s (base) / 150s (dynamic)
Accuracy ★★★★ ★★★ ★★ (Cyrillic: ★)
Languages CJK + major European 80+ languages Claims 109, poor Cyrillic
Platform macOS 10.15+ Cross-platform macOS 14+, Apple Silicon
RAM usage ~50 MB ~2.5 GB ~100 MB (CLI) / 2.5 GB (Python lib)
GPU ANE/GPU CPU only Apple Silicon GPU
Install pip install mcp-ocr[vision] pip install mcp-ocr[paddle] brew install paddleocr-vl
First run Zero Downloads models (1–2 GB) Downloads models (1.8 GB)
Text ⚠️ Fast but inaccurate for non-CJK
Layout ⚠️ Same as text
Table ⚠️ Experimental
Formula ❌ (upstream hang)
Chart ❌ (upstream hang)

Recommendation: Use Vision for everyday OCR. It's instant, accurate for European languages, and has zero dependencies on macOS. Use PaddleOCR-VL only for CJK text where Vision falls short. Avoid Paddle (Python) backend — it loads 2.5 GB of C++ libraries for comparable results.

Vision (ocr_text_vision, ocr_layout_vision, ocr_table_vision)

  • macOS 10.15+, zero install
  • GPU/ANE accelerated
  • Best for: CJK + major European languages, fast extraction

Paddle (ocr_text_paddle, ocr_layout_paddle, ocr_table_paddle)

  • Cross-platform CPU
  • Mature PaddleOCR models
  • Best for: wide language coverage, when not on macOS

PaddleOCR-VL (ocr_text_paddleocr_vl, ocr_layout_paddleocr_vl, ocr_table_paddleocr_vl)

  • macOS 14+, Apple Silicon (M1/M2/M3/M4)
  • 0.9B vision-language model, 109 languages (Cyrillic quality is poor)
  • Default mode is base (fast, ~2–7s). dynamic mode is 20× slower and produces garbled output
  • Formula and chart tasks disabled — the CLI hangs on these (upstream bug)
  • Model downloads 1.8 GB on first run; subsequent runs use cache
  • Best for: CJK text, when Vision is not available

Development

Environment Variables

Variable Default Description
PADDLEOCR_VL_BIN paddleocr-vl Path to paddleocr-vl CLI binary
PADDLEOCR_VL_TIMEOUT 120 Timeout in seconds for PaddleOCR-VL

Development

git clone https://github.com/timaliev/mcp_ocr.git
cd mcp_ocr
pip install -e .[all]
pytest

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured