PaddleOCR-json MCP
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., "@PaddleOCR-json MCPExtract text from C:\Users\me\Desktop\receipt.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.
๐ PaddleOCR-json MCP
Local OCR for MCP clients, powered by PaddleOCR-json v1.4.1
A lightweight Model Context Protocol (MCP) wrapper that exposes local PaddleOCR-json text recognition to any compatible MCP client.
Image path ยท Base64 ยท local processing ยท reusable engine process
โจ Features
๐ผ๏ธ Recognize text from a local image path.
๐งฉ Recognize Base64 or
data:image/...;base64,...input.๐ Optionally return text boxes and confidence scores.
โก Reuse one PaddleOCR-json process across multiple requests.
๐ Restart once automatically when an OCR request fails.
๐งน Cleanly terminate the child process when the MCP server exits.
๐ช Windows and ๐ง Linux runtime layouts supported by the wrapper.
๐ OCR runs through a local PaddleOCR-json runtime; no remote OCR API is required.
๐ Client-agnostic stdio MCP server โ no dependency on a specific agent platform.
Related MCP server: Vision-OCR-MCP
๐งฐ MCP tools
Tool | Purpose |
| OCR a local image file. |
| OCR an image supplied as Base64. |
| Check engine files and current subprocess status without starting OCR. |
recognize_image and recognize_image_base64 accept include_details=true to
include bounding boxes in the normalized result.
๐๏ธ How it works
MCP client
โ JSON-RPC over stdio
โผ
FastMCP wrapper (main.py)
โ line-oriented JSON over stdin/stdout
โผ
PaddleOCR-json v1.4.1
โ
โโโ models / native runtime filesThe wrapper keeps the OCR engine alive for reuse. A single stdout reader feeds responses through a queue, requests are serialized with a lock, and shutdown uses terminate โ wait โ kill as a fallback.
๐ Quick start
1. Clone and install
git clone https://github.com/luffy666code/PaddleOCR-json-MCP.git
cd PaddleOCR-json-MCP
python -m venv .venvActivate the virtual environment, then install:
python -m pip install -U pip
python -m pip install -e .2. Add the PaddleOCR-json runtime
Download PaddleOCR-json v1.4.1 from the upstream release page:
https://github.com/hiroi-sora/PaddleOCR-json/releases/tag/v1.4.1
Place the runtime under engine/.
Windows
engine/
โโโ PaddleOCR-json.exe
โโโ models/Linux
engine/
โโโ bin/
โ โโโ PaddleOCR-json
โโโ lib/
โโโ models/See engine/README.md for the expected layout.
3. Run the MCP server
python main.pyThe server uses stdio, so in normal use it is started by your MCP client rather than run interactively.
๐ MCP client configuration
A generic source-mode configuration looks like this:
{
"mcpServers": {
"paddleocr": {
"command": "python",
"args": ["/absolute/path/to/PaddleOCR-json-MCP/main.py"]
}
}
}If you build a standalone wrapper, point command at the generated executable
instead. The exact configuration file location depends on your MCP client.
The repository intentionally avoids client-specific placeholder syntax and deployment metadata. Keep client/platform adapters outside the reusable core.
๐งช Tool examples
Local image
{
"image_path": "C:\\images\\receipt.png",
"include_details": false
}Base64 image
{
"image_base64": "iVBORw0KGgoAAAANSUhEUgAA...",
"include_details": true
}A successful normalized result has the shape:
{
"code": 100,
"text": "Hello OCR",
"count": 1,
"lines": [
{
"text": "Hello OCR",
"score": 0.99,
"box": [[10, 12], [120, 12], [120, 38], [10, 38]]
}
]
}๐ฆ Build a standalone wrapper
The engine and model files remain external so they can be updated separately from the Python wrapper.
Windows
scripts\build_windows.batOutput:
dist/paddleocr-mcp.exeLinux
./scripts/build_linux.shAfter building, keep the executable next to the engine/ directory:
runtime/
โโโ paddleocr-mcp.exe # Windows example
โโโ engine/
โโโ PaddleOCR-json.exe
โโโ models/๐ Repository layout
PaddleOCR-json-MCP/
โโโ main.py
โโโ pyproject.toml
โโโ engine/
โ โโโ README.md
โโโ scripts/
โ โโโ build_windows.bat
โ โโโ build_linux.sh
โโโ .github/
โ โโโ workflows/ci.yml
โ โโโ ISSUE_TEMPLATE/bug_report.yml
โโโ CONTRIBUTING.md
โโโ SECURITY.md
โโโ NOTICE
โโโ LICENSEGenerated build/, dist/, logs, virtual environments, PaddleOCR-json engine
binaries, and model files are intentionally excluded from Git.
๐ Privacy & security
The wrapper itself talks to a local PaddleOCR-json process and does not require a cloud OCR API. Images provided by file path stay on the MCP host as far as this wrapper is concerned. Your MCP client or host may implement its own logging, telemetry, or file handling, so review that environment separately.
Do not expose this MCP server to untrusted callers without considering local
file access: recognize_image can read any image path that the server process
has permission to access.
๐ Credits
This repository is an independent community wrapper around:
PaddleOCR-json v1.4.1 is licensed under the Apache License 2.0. This repository does not claim to be an official PaddlePaddle or PaddleOCR-json project.
๐ License
Apache License 2.0. See LICENSE and NOTICE.
If this wrapper is useful, consider starring the upstream OCR projects too. โญ
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
- FlicenseNot gradedqualityDmaintenanceEnables OCR on images and PDFs, including full-page OCR, region OCR by description or bounding box, and caching with summary capabilities.
- FlicenseNot gradedqualityBmaintenanceEnables MCP clients to perform OCR on images via multimodal models through a remote server.
- FlicenseNot gradedqualityCmaintenanceProvides OCR (Optical Character Recognition) capabilities through MCP, including text extraction and document layout parsing to Markdown. Supports multiple PaddleOCR models like PP-OCRv5, PP-OCRv6, and PP-StructureV3.
Related MCP Connectors
OCR.space MCP โ wraps the OCR.space API (ocr.space) for image/PDF โ text OCR.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
OCR for images and Korean ID documents
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/luffy666code/PaddleOCR-json-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server