Mac截图OCR
为 macOS 提供截图和 OCR 功能。
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
capture 2 个参数
Captures a screenshot of the specified region and performs OCR. Options: - region: 'left'/'right'/'full' (default: 'left') - format: 'json'/'markdown'/'vertical'/'horizontal' (default: 'markdown') The screenshot is saved to a dated directory in Downloads.
该工具无需必填参数,直接调用即可
服务介绍
MCP Screenshot
一个可以捕获屏幕截图并执行OCR文本识别的MCP服务器。
功能
- 屏幕截图捕捉(左半部分、右半部分、全屏)
- OCR文字识别(支持日语和英语)
- 多种输出格式(JSON、Markdown、垂直、水平)
OCR引擎
该服务器使用两个OCR引擎:
-
- 主要OCR引擎
- 高精度的日语文本识别
- 作为API服务器运行
-
- 备用OCR引擎
- 当yomitoku不可用时使用
- 支持日语和英语识别
安装
npx -y @kazuph/mcp-screenshot
Claude桌面配置
在你的claude_desktop_config.json中添加以下配置:
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-screenshot"],
"env": {
"OCR_API_URL": "http://localhost:8000" // yomitoku API base URL
}
}
}
}
环境变量
| 变量名 | 描述 | 默认值 |
|---|---|---|
| OCR_API_URL | yomitoku API的基本URL | http://localhost:8000 |
使用示例
你可以通过这样指示Claude来使用它:
Please take a screenshot of the left half of the screen and recognize the text in it.
工具规范
capture
进行屏幕截图并执行OCR。
选项:
region: 截图区域('left'/'right'/'full',默认:'left')format: 输出格式('json'/'markdown'/'vertical'/'horizontal',默认:'markdown')
许可证
MIT
作者
kazuph