Are you the author? Sign in to claim
基于 PaddleOCR 的 MCP 服务器,完全免费,为 AI Agent 提供本地图片文字识别能力。无需 API Key,支持中英文,完全离线运行。Free PaddleOCR-based MCP Server: Offline Chi
基于 PaddleOCR 的 模型上下文协议 (MCP) 服务器,为 AI Agent 提供本地图片文字识别能力。
| 特性 | PaddleOCR MCP | 云端 OCR API |
|---|---|---|
| 费用 | 💰 免费,零成本 | 按次收费 |
| 隐私 | 🔒 100% 本地,数据不出设备 | 数据上传云端 |
| 网络 | 📡 离线可用,无需联网 | 依赖网络 |
| 延迟 | ⚡ ~1-3 秒 | ~0.5-3 秒 + 网络耗时 |
| 语言 | 🌍 支持 109 种语言 | 视服务商而定 |
| 模型 | 🤖 支持 DeepSeek-v4 等任意大模型搭配 | 厂商锁定 |
| 开源 | 📂 完全开源,可自由修改 | 闭源黑盒 |
| 部署 | 🖥️ 低成本 CPU 即可运行 | 需高成本服务器 |
💡 搭配 DeepSeek-v4 的低成本方案:PaddleOCR 负责提取图片文字,DeepSeek-v4 等大模型负责理解分析——本地运行,无需 GPU,开发成本趋近于零。
即使你的模型不支持看图(纯文本模型),AI Agent 也能自动调用
ocr_imageMCP 工具识别图片文字后返回结果。
举个例子:
ocr_image 工具提取图片中的文字这意味着:
ocr_image(image_path) 一键提取图片中全部文字# 安装 PaddleOCR 和 PaddlePaddle
pip install paddlepaddle==3.2.0 paddleocr
# 克隆本仓库
git clone https://github.com/YuanJinke/paddleocr_mcp.git
cd paddleocr_mcp
⚠️ Windows 用户注意:PaddlePaddle 3.3.1 有 oneDNN 兼容性问题,请务必安装 3.2.0 版本。
claude mcp add -s user paddleocr -- python /路径/paddleocr_mcp.py
或添加到 ~/.claude.json:
{
"mcpServers": {
"paddleocr": {
"type": "stdio",
"command": "python",
"args": ["/路径/paddleocr_mcp.py"]
}
}
}
添加到 ~/.hermes/config.yaml:
mcp_servers:
paddleocr:
command: python
args: ["/路径/paddleocr_mcp.py"]
timeout: 120
connect_timeout: 120
然后重启 Hermes。
{
"mcpServers": {
"paddleocr": {
"type": "stdio",
"command": "python",
"args": ["/路径/paddleocr_mcp.py"]
}
}
}
向你的 AI Agent 发送:
调用
ocr_image识别/图片路径/screenshot.png,然后告诉我图片里写了什么。
返回结果示例:
{"text": "Hello World\n你好世界", "lines": ["Hello World", "你好世界"]}
# 启动服务
python paddleocr_mcp.py
# 另开终端发送测试请求
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"ocr_image","arguments":{"image_path":"/路径/test.png"}},"id":1}' | python paddleocr_mcp.py
.opencode.json 配置好 MCP 后,Agent 仍可通过上下文中的图片路径调用 OCR。FLAGS_use_onednn=0MIT — 随意使用,随意修改。
A Model Context Protocol (MCP) server providing local OCR capabilities via PaddleOCR. Works with any MCP-compatible AI agent.
| Feature | PaddleOCR MCP | Cloud OCR APIs |
|---|---|---|
| Cost | 💰 Free | Pay per request |
| Privacy | 🔒 100% local, data never leaves | Data sent to cloud |
| Network | 📡 Offline, no internet needed | Internet required |
| Latency | ⚡ ~1-3s | ~0.5-3s + network |
| Languages | 🌍 109 languages supported | Varies |
| Model | 🤖 Works with DeepSeek-v4, any LLM | Vendor locked |
| Open Source | 📂 Fully open source | Closed source |
| Deployment | 🖥️ Runs on CPU, low cost | Requires servers |
💡 Low-cost solution with DeepSeek-v4: PaddleOCR extracts text from images, then pairs with any LLM (DeepSeek-v4, GPT, Claude, GLM, etc.) for understanding — all running locally, zero GPU required, near-zero development cost.
Even if your model doesn't support images (text-only model), the AI Agent will automatically call the
ocr_imageMCP tool to read the image and return the text content.
How it works:
ocr_image to extract text from the imageThis means:
ocr_image(image_path) extracts all text from images# Install PaddleOCR and PaddlePaddle
pip install paddlepaddle==3.2.0 paddleocr
# Clone this repo
git clone https://github.com/YuanJinke/paddleocr_mcp.git
cd paddleocr_mcp
⚠️ Windows users: PaddlePaddle 3.3.1 has a known oneDNN bug. Pin to 3.2.0 as shown above.
claude mcp add -s user paddleocr -- python /path/to/paddleocr_mcp.py
Or add to ~/.claude.json:
{
"mcpServers": {
"paddleocr": {
"type": "stdio",
"command": "python",
"args": ["/path/to/paddleocr_mcp.py"]
}
}
}
Add to ~/.hermes/config.yaml:
mcp_servers:
paddleocr:
command: python
args: ["/path/to/paddleocr_mcp.py"]
timeout: 120
connect_timeout: 120
Then restart Hermes.
{
"mcpServers": {
"paddleocr": {
"type": "stdio",
"command": "python",
"args": ["/path/to/paddleocr_mcp.py"]
}
}
}
Send to your AI agent:
Call
ocr_imageon `/path/to/screenshot.png" and tell me what it says.
Example result:
{"text": "Hello World\n你好世界", "lines": ["Hello World", "你好世界"]}
# Start server
python paddleocr_mcp.py
# Send test request
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"ocr_image","arguments":{"image_path":"/path/to/test.png"}},"id":1}' | python paddleocr_mcp.py
ocr_image to extract text. For Trae, once MCP is configured in .opencode.json, the agent can OCR images referenced by path in the context.FLAGS_use_onednn=0.MIT — free to use, modify, and distribute.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows