ocr-mcp
OCR MCP Service
MCP-basierter OCR-Dienst mit PaddleOCR, der Texterkennung und Tabellenerkennung unterstützt.
Funktionen
OCR-Texterkennung: Erkennt Textinhalte in Bildern und unterstützt Chinesisch, Englisch und andere Sprachen
Tabellenerkennung: Erkennt Tabellen in Bildern und gibt strukturierte Daten zurück
Handschrifterkennung: Erkennt handschriftlichen Text in Bildern
Formelerkennung: Erkennt mathematische Formeln in Bildern und gibt LaTeX-Format zurück
Multi-Format-Unterstützung: Unterstützt JPG, PNG, BMP, TIFF, WebP und andere Bildformate
URL-Unterstützung: Unterstützt sowohl lokale Dateipfade als auch Netzwerk-URLs
MCP-Protokoll: Standard-MCP-Dienst, der in MCP-kompatible KI-Assistenten integriert werden kann
Related MCP server: mcp_ocr
Installation
Installation über pip
pip install ocr-mcpInstallation aus dem Quellcode
git clone https://github.com/LinuxLinking/OCR_MCP.git
cd OCR_MCP
pip install -e .Verwendung
Als MCP-Dienst ausführen
# Run directly
ocr-mcp
# Or run via Python module
python -m ocr_mcpIntegration mit Claude Desktop
Fügen Sie zur Konfigurationsdatei von Claude Desktop hinzu:
{
"mcpServers": {
"ocr": {
"command": "ocr-mcp",
"args": []
}
}
}MCP-Tool-Beschreibung
ocr_recognize
Erkennt Textinhalte in Bildern.
Parameter:
source(erforderlich): Bildquelle, lokaler Dateipfad oder URLlanguage(optional): Erkennungssprache, Standardch(Chinesisch), unterstützten,japan,koreanusw.use_angle_cls(optional): Ob die Klassifizierung der Textrichtung aktiviert werden soll, Standardtrue
Beispielausgabe:
1. Hello World (confidence: 98.50%)
2. 你好世界 (confidence: 97.20%)ocr_table
Erkennt Tabelleninhalte in Bildern und gibt strukturierte Daten zurück.
Parameter:
source(erforderlich): Bildquelle, lokaler Dateipfad oder URLlanguage(optional): Erkennungssprache, Standardch
Beispielausgabe:
+--------+-----+------+
| Name | Age | City |
+--------+-----+------+
| Alice | 25 | NYC |
+--------+-----+------+
| Bob | 30 | LA |
+--------+-----+------+ocr_handwrite
Erkennt handschriftlichen Text in Bildern.
Parameter:
source(erforderlich): Bildquelle, lokaler Dateipfad oder URLlanguage(optional): Erkennungssprache, Standardch
Beispielausgabe:
1. Hello World (confidence: 85.50%)
2. 你好 (confidence: 82.30%)ocr_formula
Erkennt mathematische Formeln in Bildern und gibt LaTeX-Format zurück.
Parameter:
source(erforderlich): Bildquelle, lokaler Dateipfad oder URL
Beispielausgabe:
Formula 1:
LaTeX: E = mc^2
Formula 2:
LaTeX: \int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}Entwicklung
Entwicklungabhängigkeiten installieren
pip install -e ".[dev]"Tests ausführen
pytest tests/ -vProjektstruktur
OCR_MCP/
├── src/ocr_mcp/
│ ├── __init__.py # Package initialization
│ ├── __main__.py # Module entry point
│ ├── server.py # MCP service main entry (dispatch layer)
│ ├── ocr_engine.py # Subprogram 1: Text recognition engine
│ ├── table_parser.py # Subprogram 2: Table recognition engine
│ ├── formula_engine.py # Subprogram 3: Formula recognition engine
│ └── utils.py # Utility functions
├── tests/
│ └── test_ocr.py # Test files
├── pyproject.toml # Project configuration
├── LICENSE # MIT License
└── README.md # Project documentationArchitektur
Dieses Projekt verwendet eine Subprogramm-Parallelarchitektur mit 4 Erkennungswerkzeugen, die unabhängig sind und separat aufgerufen werden können:
┌─────────────────────────────────────────────────────────┐
│ MCP Server (Dispatch Layer) │
├──────────────┬──────────────┬─────────────┬─────────────┤
│ Subprogram 1 │ Subprogram 2 │ Subprogram 3│ Subprogram 4│
│ocr_recognize │ ocr_table │ocr_handwrite│ ocr_formula │
│Text Recognition│Table Recognition│Handwriting Recognition│Formula Recognition│
└──────────────┴──────────────┴─────────────┴─────────────┘
↓ ↓ ↓ ↓
OCREngine TableParser OCREngine FormulaEngineFunktionen:
Jedes Unterprogramm läuft unabhängig ohne Abhängigkeiten.
Unterstützt parallele Aufrufe und kann mehrere Aufgaben gleichzeitig verarbeiten.
Erstellt für jeden Aufruf unabhängige Instanzen, um Zustandskonflikte zu vermeiden.
Kann jedes Unterprogramm einzeln erweitern oder ersetzen.
Abhängigkeiten
PaddleOCR: Kern-OCR-Erkennungs-Engine
PaddlePaddle: Deep-Learning-Framework
OpenCV: Bildverarbeitung
MCP: Model Context Protocol-Dienstframework
Lizenz
Dieses Projekt ist unter der MIT-Lizenz als Open Source lizenziert.
Verwandte Links
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.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides OCR services powered by Google's Gemini API to extract text from images via file paths or base64 strings. It enables high-accuracy text recognition and CAPTCHA processing through simple MCP tools.7
- AlicenseAqualityAmaintenanceModular OCR MCP server supporting Apple Vision, PaddleOCR, and PaddleOCR-VL backends. Enables text, layout, table, formula, and chart extraction from images via natural language.14MIT
- AlicenseNot gradedqualityBmaintenanceEnables image analysis via OpenAI-compatible vision APIs, supporting local files, URLs, and base64 inputs with intelligent tiling for high-resolution images. Provides a secure, configurable MCP stdio server for structured vision analysis.1,2641MIT
- AlicenseAqualityAmaintenanceEnables non-vision LLMs to understand images, extract text via OCR, and parse documents through a unified MCP interface, with local-first processing and optional OpenAI-compatible channels.3MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
OCR.space MCP — wraps the OCR.space API (ocr.space) for image/PDF → text OCR.
ImagePay MCP: 40 x402 paid API tools (OCR, PDF, image, QR, tabular, web). Pay per call on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/LinuxLinking/ocr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server