
kazuph/mcp-screenshot
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPスクリーンショット機能のリポジトリ
概要
スクリーンショットをキャプチャして OCR テキスト認識を実行する MCP サーバー。 - スクリーンショットキャプチャ(左半分、右半分、フルスクリーン) - OCRテキスト認識(日本語と英語をサポートしています) - 複数の出力フォーマット(JSON、Markdown、垂直、水平) 1. yomitoku - 第一次OCRエンジン - 高精度な日本語テキスト認識 - APIサーバーとして実行 2. Tesseract.js - フォールバック OCR エンジン - yomitokuが利用できなくなったときに使用される - 日本語と英語の両方の認識をサポート 以下の設定を claude desktop config.json に追加します。 このようにClaudeを指示することで使用できます。 オプション: - 領域: スクリーンショット領域('left'/'right'/'full'、デフォルト: 'left') - フォーマット: 出力形式('json'/'markdown'/'vertical'/'horizontal'、デフォルト: 'markdown')
概要(AI 翻訳)
スクリーンショットをキャプチャして OCR テキスト認識を実行する MCP サーバー。
##特徴
- スクリーンショットキャプチャ(左半分、右半分、フルスクリーン)
- OCRテキスト認識(日本語・英語対応)
- 複数の出力フォーマット(JSON、Markdown、縦、横)
OCRエンジン
このサーバーは2つのOCRエンジンを使用します。
- ヨミトク
- 第一次OCRエンジン
- 高精度な日本語テキスト認識
- API サーバーとして実行
2。 Tesseract.js
- フォールバックOCRエンジン
- yomitokuが利用できなくなったとき使用される
- 日本語と英語の両方の認識をサポート
インストール
Claudeデスクトップの設定
[claude_desktop_config.json に次の設定を追加します。
環境変数
| 変数名 | 説明 | デフォルト値 | お問い合わせ | OCR API URL | yomitoku API ベース URL | [[[T1] |
使用例
このようにClaudeを指示することで使用できます。
ツール仕様
キャプチャ
スクリーンショットを取り、OCRを実行します。
オプション:
- [
region:スクリーンショット領域(‘left’/‘right’/‘full’、デフォルト:‘left’) - [
format:出力形式(‘json’/‘markdown’/‘vertical’/‘horizontal’、デフォルト:‘markdown’)
ライセンス
ログイン
著者
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
MCP Screenshot
An MCP server that captures screenshots and performs OCR text recognition.
Features
- Screenshot capture (left half, right half, full screen)
- OCR text recognition (supports Japanese and English)
- Multiple output formats (JSON, Markdown, vertical, horizontal)
OCR Engines
This server uses two OCR engines:
-
- Primary OCR engine
- High-accuracy Japanese text recognition
- Runs as an API server
-
- Fallback OCR engine
- Used when yomitoku is unavailable
- Supports both Japanese and English recognition
Installation
npx -y @kazuph/mcp-screenshot
Claude Desktop Configuration
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-screenshot"],
"env": {
"OCR_API_URL": "http://localhost:8000" // yomitoku API base URL
}
}
}
}
Environment Variables
| Variable Name | Description | Default Value |
|---|---|---|
| OCR_API_URL | yomitoku API base URL | http://localhost:8000 |
Usage Example
You can use it by instructing Claude like this:
Please take a screenshot of the left half of the screen and recognize the text in it.
Tool Specification
capture
Takes a screenshot and performs OCR.
Options:
region: Screenshot area (‘left’/‘right’/‘full’, default: ‘left’)format: Output format (‘json’/‘markdown’/‘vertical’/‘horizontal’, default: ‘markdown’)
License
MIT
Author
kazuph
インストール
npx -y @kazuph/mcp-screenshot設定
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-screenshot"],
"env": {
"OCR_API_URL": "http://localhost:8000" // yomitoku API base URL
}
}
}
}