
rjn32s/mcp-ocr
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
rjn32s/mcp-ocr는 https://github.com/rjn32s/mcp-ocr.에서 수입된 MCP 서버 후보입니다
개요
rjn32s/mcp-ocr는 https://github.com/rjn32s/mcp-ocr.에서 수입된 MCP 서버 후보입니다
개요(AI 번역)
간단한 인터페이스를 통해 OCR 기능을 제공하는 MCP (Model Context Protocol)를 사용하여 구축 된 생산 등급 OCR 서버.
특징
- Tesseract OCR을 사용하여 이미지에서 텍스트 추출
- 다수 입력 유형을 위한 지원:
- 로컬 이미지 파일
- 이미지 URL
- 원시 이미지 바이트
- 자동 Tesseract 설치
- 여러 언어 지원
- Production-ready 오류 처리
설치
Tesseract는 지원되는 플랫폼에 자동적으로 설치될 것입니다:
- macOS (homebrew를 통해)
- 리눅스(Apt, dnf, 또는 pacman)
- Windows (수동 설치 지침 제공)
사용법
MCP 서버로
-
서버 시작:
-
데스크톱 용 Claude 구성 :
~/Library/Application Support/Claude/claude_desktop_config.json에 추가:
사용 가능한 도구
실행 ocr
이미지에서 텍스트 추출:
get supported languages에 관하여
OCR 언어 목록:
개발
-
저장소를 복제:
-
발달 환경을 설치하십시오:
-
시험 실행:
기여
- 저장소를 포크
- 기능 지점 만들기 (
git checkout -b feature/amazing-feature) - 변경 (
git commit -m 'Add amazing feature') - 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
MCP OCR Server
A production-grade OCR server built using MCP (Model Context Protocol) that provides OCR capabilities through a simple interface.
Features
- Extract text from images using Tesseract OCR
- Support for multiple input types:
- Local image files
- Image URLs
- Raw image bytes
- Automatic Tesseract installation
- Support for multiple languages
- Production-ready error handling
Installation
# Using pip
pip install mcp-ocr
# Using uv
uv pip install mcp-ocr
Tesseract will be installed automatically on supported platforms:
- macOS (via Homebrew)
- Linux (via apt, dnf, or pacman)
- Windows (manual installation instructions provided)
Usage
As an MCP Server
- Start the server:
python -m mcp_ocr
- Configure Claude for Desktop:
Add to
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"ocr": {
"command": "python",
"args": ["-m", "mcp_ocr"]
}
}
}
Available Tools
perform_ocr
Extract text from images:
# From file
perform_ocr("/path/to/image.jpg")
# From URL
perform_ocr("https://example.com/image.jpg")
# From bytes
perform_ocr(image_bytes)
get_supported_languages
List available OCR languages:
get_supported_languages()
Development
- Clone the repository:
git clone https://github.com/rjn32s/mcp-ocr.git
cd mcp-ocr
- Set up development environment:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
- Run tests:
pytest
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Security
- Never commit API tokens or sensitive credentials
- Use environment variables or secure credential storage
- Follow GitHub’s security best practices
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"ocr": {
"command": "python",
"args": ["-m", "mcp_ocr"]
}
}
}