Takes screenshots and runs OCR on them so an agent can read text on the screen, with several output formats.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add screenshot --env OCR_API_URL='<OCR_API_URL>' -- npx -y @kazuph/mcp-screenshot~/.codex/config.toml
[mcp_servers.screenshot]
command = "npx"
args = ["-y", "@kazuph/mcp-screenshot"]
env = { OCR_API_URL = "<OCR_API_URL>" }
# codex mcp add screenshot --env OCR_API_URL='<OCR_API_URL>' -- npx -y @kazuph/mcp-screenshot~/.cursor/mcp.json
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": [
"-y",
"@kazuph/mcp-screenshot"
],
"env": {
"OCR_API_URL": "<OCR_API_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"screenshot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@kazuph/mcp-screenshot"
],
"env": {
"OCR_API_URL": "<OCR_API_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": [
"-y",
"@kazuph/mcp-screenshot"
],
"env": {
"OCR_API_URL": "<OCR_API_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": [
"-y",
"@kazuph/mcp-screenshot"
],
"env": {
"OCR_API_URL": "<OCR_API_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": [
"-y",
"@kazuph/mcp-screenshot"
],
"env": {
"OCR_API_URL": "<OCR_API_URL>"
}
}
}
}需要的环境变量
OCR_API_URL
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。