RM

rjn32s/mcp-ocr

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

40 stars 10 forks 품질 76 트렌드 16MIT

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 서버로

  1. 서버 시작:

  2. 데스크톱 용 Claude 구성 : ~/Library/Application Support/Claude/claude_desktop_config.json에 추가:

사용 가능한 도구

실행 ocr

이미지에서 텍스트 추출:

get supported languages에 관하여

OCR 언어 목록:

개발

  1. 저장소를 복제:

  2. 발달 환경을 설치하십시오:

  3. 시험 실행:

기여

  1. 저장소를 포크
  2. 기능 지점 만들기 (git checkout -b feature/amazing-feature)
  3. 변경 (git commit -m 'Add amazing feature')
  4. 명세.

이 페이지는 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

  1. Start the server:
python -m mcp_ocr
  1. 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

  1. Clone the repository:
git clone https://github.com/rjn32s/mcp-ocr.git
cd mcp-ocr
  1. Set up development environment:
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv pip install -e .
  1. Run tests:
pytest

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

GitHub에서 전체 README 보기

설치

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"] } } }