Skip to main content
Glama

OCR MCP Service

中文 | 日本語

PaddleOCR を搭載した MCP ベースの OCR サービスで、テキスト認識と表認識をサポートします。

特徴

  • OCR テキスト認識: 画像内のテキストを認識し、中国語、英語、その他の言語をサポートします。

  • 表認識: 画像内の表を認識し、構造化データを返します。

  • 手書き文字認識: 画像内の手書きテキストを認識します。

  • 数式認識: 画像内の数式を認識し、LaTeX 形式で返します。

  • マルチフォーマット対応: JPG、PNG、BMP、TIFF、WebP などの画像フォーマットをサポートします。

  • URL サポート: ローカルファイルパスとネットワーク URL の両方をサポートします。

  • MCP プロトコル: 標準の MCP サービスで、MCP 互換の AI アシスタントに統合できます。

Related MCP server: mcp_ocr

インストール

pip でインストール

pip install ocr-mcp

ソースからインストール

git clone https://github.com/LinuxLinking/OCR_MCP.git
cd OCR_MCP
pip install -e .

使用方法

MCP サービスとして実行

# Run directly
ocr-mcp

# Or run via Python module
python -m ocr_mcp

Claude Desktop と統合

Claude Desktop の設定ファイルに追加します:

{
  "mcpServers": {
    "ocr": {
      "command": "ocr-mcp",
      "args": []
    }
  }
}

MCP ツールの説明

ocr_recognize

画像内のテキストを認識します。

パラメータ:

  • source (必須): 画像ソース、ローカルファイルパスまたは URL

  • language (オプション): 認識言語、デフォルトは ch (中国語)、enjapankorean などをサポートします。

  • use_angle_cls (オプション): テキスト方向分類を有効にするかどうか、デフォルトは true

出力例:

1. Hello World (confidence: 98.50%)
2. 你好世界 (confidence: 97.20%)

ocr_table

画像内の表を認識し、構造化データを返します。

パラメータ:

  • source (必須): 画像ソース、ローカルファイルパスまたは URL

  • language (オプション): 認識言語、デフォルトは ch

出力例:

+--------+-----+------+
| Name   | Age | City |
+--------+-----+------+
| Alice  | 25  | NYC  |
+--------+-----+------+
| Bob    | 30  | LA   |
+--------+-----+------+

ocr_handwrite

画像内の手書きテキストを認識します。

パラメータ:

  • source (必須): 画像ソース、ローカルファイルパスまたは URL

  • language (オプション): 認識言語、デフォルトは ch

出力例:

1. Hello World (confidence: 85.50%)
2. 你好 (confidence: 82.30%)

ocr_formula

画像内の数式を認識し、LaTeX 形式で返します。

パラメータ:

  • source (必須): 画像ソース、ローカルファイルパスまたは URL

出力例:

Formula 1:
  LaTeX: E = mc^2
Formula 2:
  LaTeX: \int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}

開発

開発依存関係のインストール

pip install -e ".[dev]"

テストの実行

pytest tests/ -v

プロジェクト構造

OCR_MCP/
├── src/ocr_mcp/
│   ├── __init__.py          # Package initialization
│   ├── __main__.py          # Module entry point
│   ├── server.py            # MCP service main entry (dispatch layer)
│   ├── ocr_engine.py        # Subprogram 1: Text recognition engine
│   ├── table_parser.py      # Subprogram 2: Table recognition engine
│   ├── formula_engine.py    # Subprogram 3: Formula recognition engine
│   └── utils.py             # Utility functions
├── tests/
│   └── test_ocr.py          # Test files
├── pyproject.toml           # Project configuration
├── LICENSE                  # MIT License
└── README.md                # Project documentation

アーキテクチャ

このプロジェクトはサブプログラム並列アーキテクチャを採用しており、4 つの認識ツールは独立しており、個別に呼び出すことができます。

┌─────────────────────────────────────────────────────────┐
│                   MCP Server (Dispatch Layer)            │
├──────────────┬──────────────┬─────────────┬─────────────┤
│ Subprogram 1 │ Subprogram 2 │ Subprogram 3│ Subprogram 4│
│ocr_recognize │  ocr_table   │ocr_handwrite│ ocr_formula │
│Text Recognition│Table Recognition│Handwriting Recognition│Formula Recognition│
└──────────────┴──────────────┴─────────────┴─────────────┘
       ↓              ↓              ↓              ↓
   OCREngine     TableParser    OCREngine    FormulaEngine

特徴:

  • 各サブプログラムは依存関係なく独立して実行されます

  • 並列呼び出しをサポートし、複数のタスクを同時に処理できます

  • 呼び出しごとに独立したインスタンスを作成し、状態の競合を回避します

  • 任意のサブプログラムを個別に拡張または置き換えることができます

依存関係

  • PaddleOCR: コア OCR 認識エンジン

  • PaddlePaddle: ディープラーニングフレームワーク

  • OpenCV: 画像処理

  • MCP: Model Context Protocol サービスフレームワーク

ライセンス

このプロジェクトは MIT ライセンス の下でオープンソース化されています。

関連リンク

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides OCR services powered by Google's Gemini API to extract text from images via file paths or base64 strings. It enables high-accuracy text recognition and CAPTCHA processing through simple MCP tools.
    7
  • A
    license
    A
    quality
    A
    maintenance
    Modular OCR MCP server supporting Apple Vision, PaddleOCR, and PaddleOCR-VL backends. Enables text, layout, table, formula, and chart extraction from images via natural language.
    14
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables image analysis via OpenAI-compatible vision APIs, supporting local files, URLs, and base64 inputs with intelligent tiling for high-resolution images. Provides a secure, configurable MCP stdio server for structured vision analysis.
    1,264
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • OCR.space MCP — wraps the OCR.space API (ocr.space) for image/PDF → text OCR.

  • ImagePay MCP: 40 x402 paid API tools (OCR, PDF, image, QR, tabular, web). Pay per call on Base.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LinuxLinking/ocr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server