Ocr Server
FreeNot checkedMCP server for OCR using native Tesseract (C++), built with Node.js, delivering up to 10x faster performance than tesseract.js and integrable with ChatGPT Deskt
About
MCP server for OCR using native Tesseract (C++), built with Node.js, delivering up to 10x faster performance than tesseract.js and integrable with ChatGPT Desktop.
README
MCP server for OCR using native Tesseract (C++), built with Node.js, delivering high-performance OCR and integrable with ChatGPT Desktop.
🚧 Work in Progress 🚧
✨ Features (planned)
- High-performance OCR via native Tesseract (C++)
- Node.js MCP server wrapper for easy integration
- Compatible with ChatGPT Desktop and other MCP clients
- Benchmark vs tesseract.js
📌 Roadmap
- Step 1: C++ OCR CLI tool
- Step 2: Node.js MCP server wrapper
- Step 3: ChatGPT Desktop configuration guide
- Step 4: Benchmark results
- Step 5: Demo video
🔧 Tech Stack
- C++ (Tesseract OCR)
- Node.js + TypeScript (@modelcontextprotocol/sdk)
- JSON-RPC 2.0 (MCP standard)
🛠 Installation
1. Install Tesseract OCR
macOS
brew install tesseract
# Optional: install additional languages
brew install tesseract-lang
Linux (Ubuntu/Debian)
sudo apt update
sudo apt install tesseract-ocr libtesseract-dev libleptonica-dev
# Optional: install Vietnamese language
sudo apt install tesseract-ocr-vie
Windows
- Download installer from Tesseract OCR GitHub
- Or using Chocolatey:
choco install tesseract
- Add the installation path to your
PATHenvironment variable.
2. Clone the repository
git clone https://github.com/dangvinh/mcp-ocr-server.git
cd mcp-ocr-server/cpp
3. Build the project with CMake
You can build the C++ OCR engine using the provided npm script. Run:
npm run build-core
This command will create the cpp/build-core directory, configure the project with CMake, and build the static library and CLI tool.
What it builds:
libmcp_ocr.astatic libraryocr_cliexecutable incpp/build-core/bin(or equivalent)
Running tests
# From the build directory
ctest --verbose
- This will run all GoogleTest-based tests.
- Ensure test images or resources exist in
cpp/testsorexamples/. - The setup works cross-platform (macOS, Linux, Windows).
4. Build the Node.js addon
The Node.js addon can be built using the provided npm script. Run:
npm run build-addon
This command runs node-gyp inside the cpp/ directory and produces the compiled addon (ocr_addon.node) inside cpp/build/Release/. This addon is required for Node.js integration with the C++ core.
🗂 Setup tessdata
The OCR engine requires trained data files to work. Please follow these steps:
- Create a
tessdatafolder in the project root:
mkdir tessdata
- Download the English trained data:
wget https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata -P tessdata/
For other languages, download the corresponding
.traineddatafiles intotessdata/.Ensure your
.envor.env.examplehas:
TESSDATA_PREFIX=./tessdata
OCR_LANG=eng
4. Run OCR CLI
./ocr_cli path/to/image.png
Ensure the
tessdatafolder is accessible for language files. The project supports macOS, Linux, and Windows (cross-platform).
Installing Ocr Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/dangvinh/mcp-ocr-serverFAQ
Is Ocr Server MCP free?
Yes, Ocr Server MCP is free — one-click install via Unyly at no cost.
Does Ocr Server need an API key?
No, Ocr Server runs without API keys or environment variables.
Is Ocr Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Ocr Server in Claude Desktop, Claude Code or Cursor?
Open Ocr Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Ocr Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
