ddddocr

v1.0.0Search & Data Extractionstable

ddddocr rust 版本,ocr_api_server rust 版本,二进制版本,验证码识别,不依赖 opencv 库,跨平台运行,AI MCP 支持,a simple OCR API server, very easy to deploy。

aiddddocrmcpneural-networkocr
Share:
317
Stars
0
Downloads
0
Weekly
0/5

What is ddddocr?

ddddocr is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ddddocr rust 版本,ocr_api_server rust 版本,二进制版本,验证码识别,不依赖 opencv 库,跨平台运行,ai mcp 支持,a simple ocr api server, very easy to deploy。

ddddocr rust 版本,ocr_api_server rust 版本,二进制版本,验证码识别,不依赖 opencv 库,跨平台运行,AI MCP 支持,a simple OCR API server, very easy to deploy。

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • ddddocr rust 版本,ocr_api_server rust 版本,二进制版本,验证码识别,不依赖 openc

Use Cases

OCR and verification code recognition
Cross-platform AI OCR
Neural network-based text extraction
86maid

Maintainer

LicenseMIT
Languagerust
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx ddddocr

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use ddddocr

ddddocr is a Rust-based OCR and captcha recognition server that exposes text recognition, object detection, and slider-captcha matching as MCP tools. It is a rewrite of the popular Python ddddocr library in Rust, meaning it runs as a self-contained binary without requiring OpenCV or Python dependencies. Developers use it to automate captcha solving, extract text from images, and integrate OCR capabilities directly into AI agent workflows via the Model Context Protocol.

Prerequisites

  • A prebuilt ddddocr binary for your platform (Windows, macOS, or Linux) downloaded from the GitHub releases page at https://github.com/86maid/ddddocr
  • An MCP-compatible client such as Claude Desktop or Cursor
  • No additional runtime dependencies — the binary is fully self-contained
  • Base64-encoded images for OCR input, or image file paths accessible to the server
1

Download the binary

Go to https://github.com/86maid/ddddocr/releases and download the prebuilt binary for your operating system. On Windows this will be ddddocr.exe; on Linux/macOS it is a plain executable. Make it executable if needed.

chmod +x ./ddddocr
2

Start the server with MCP mode enabled

Launch the server with the --mcp flag alongside the capabilities you want to expose. The --ocr flag enables text recognition, --det enables object detection, and --slide enables slider-captcha matching. The server will listen on the specified address.

./ddddocr --address 0.0.0.0:8000 --ocr --det --slide --mcp
3

Verify the server is running

Send an initialize request to the MCP endpoint to confirm the server is responding. The server supports MCP protocol version 2025-11-25.

curl -X POST http://localhost:8000/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}'
4

Configure your MCP client

Add the ddddocr server to your MCP client configuration. Since the server runs as an HTTP service, you connect to it via its HTTP endpoint rather than spawning it as a subprocess.

{
  "mcpServers": {
    "ddddocr": {
      "url": "http://localhost:8000/mcp"
    }
  }
}
5

Test OCR by sending an image

Call the ocr tool with a base64-encoded image. The optional color_filter parameter narrows recognition to specific colored text (e.g., 'green', 'red'), which helps with colored captchas.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ocr",
    "arguments": {
      "image": "<base64_encoded_image_string>",
      "color_filter": "green"
    }
  }
}

ddddocr Examples

Client configuration

Connect Claude Desktop to a locally running ddddocr server over HTTP.

{
  "mcpServers": {
    "ddddocr": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

Prompts to try

Example prompts for OCR and captcha recognition tasks once the server is connected.

- "Extract the text from this captcha image: [attach image]"
- "Use OCR to read the verification code in this screenshot"
- "Detect objects in this image using the det tool"
- "Match the slider position in this captcha to find where the puzzle piece fits"

Troubleshooting ddddocr

Server fails to start and reports a missing ONNX runtime library

Set the ORT_LIB_LOCATION environment variable to the path of your onnxruntime build directory before starting the server. Alternatively, use a prebuilt release binary which bundles the runtime statically.

OCR returns empty or garbled text

Ensure the image is properly base64-encoded without line breaks. If the captcha uses colored text on a similar background, try specifying color_filter with the dominant text color (e.g., 'red', 'blue', 'green') to improve accuracy.

MCP client cannot connect to the server

Confirm the server is listening on the correct address and port by running 'curl http://localhost:8000/mcp'. If you changed --address from 0.0.0.0:8000, update the URL in your MCP client config to match.

Frequently Asked Questions about ddddocr

What is ddddocr?

ddddocr is a Model Context Protocol (MCP) server that ddddocr rust 版本,ocr_api_server rust 版本,二进制版本,验证码识别,不依赖 opencv 库,跨平台运行,ai mcp 支持,a simple ocr api server, very easy to deploy。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install ddddocr?

Follow the installation instructions on the ddddocr GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with ddddocr?

ddddocr works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is ddddocr free to use?

Yes, ddddocr is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "ddddocr": { "command": "npx", "args": ["-y", "ddddocr"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use ddddocr?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides