codex-vision-mcp
Exposes a tool for understanding images via Codex app-server, enabling analysis of screenshots, OCR, and visual comparisons.
README
codex-vision-mcp
Expose Codex app-server image understanding to MCP clients as one tool:
understand_image
The tool accepts one or more local image paths or HTTP(S) image URLs and a free-form question. It is intended for screenshots, OCR, error screenshots, UI review, diagrams, charts, and visual comparison.
Install
git clone https://github.com/lyd123qw2008/codex-vision-mcp.git
cd codex-vision-mcp
npm run smoke
Tool arguments:
{
"images": ["D:\\tmp\\demo.png"],
"question": "这张图展示了什么?",
"detail": "high"
}
Authentication
This server does not need a separate vision API key. It starts the local codex app-server and reuses the Codex CLI authentication/configuration on this machine.
On a new machine, authenticate Codex first:
codex login
Advanced overrides:
CODEX_JS: full path to@openai/codex/bin/codex.jsCODEX_BIN: command or executable to start CodexCODEX_VISION_MODEL: model for Codex app-server, defaultgpt-5.4CODEX_VISION_WORKDIR: base directory for relative image pathsCODEX_VISION_TIMEOUT_MS: request timeout, default180000CODEX_VISION_MAX_IMAGES: max images per call, default5CODEX_VISION_MAX_IMAGE_MB: max local image size, default20
Claude Code configuration
Add this MCP server from the repository directory:
$server = (Resolve-Path .\src\server.js).Path
claude mcp add -s user codex-vision-mcp -- node $server
If relative image paths should resolve from a specific directory:
$server = (Resolve-Path .\src\server.js).Path
$workspace = "C:\path\to\workspace"
claude mcp add -s user codex-vision-mcp --env CODEX_VISION_WORKDIR=$workspace -- node $server
Equivalent user-level configuration shape:
{
"codex-vision-mcp": {
"type": "stdio",
"command": "node",
"args": ["C:\\path\\to\\codex-vision-mcp\\src\\server.js"],
"env": {
"CODEX_VISION_WORKDIR": "C:\\path\\to\\workspace",
"CODEX_VISION_MODEL": "gpt-5.4"
}
}
}
Example prompt:
请调用 understand_image 分析 D:\tmp\error.png,告诉我这个报错原因和下一步怎么排查。
Verify Claude Code can see the tool:
claude mcp list
claude --print "请使用 understand_image 工具分析本地图片 D:\tmp\demo.png,问题是:这张图展示了什么?" --allowedTools "mcp__codex-vision-mcp__understand_image"
If an already-open Claude Code session does not show the tool, restart that session after changing MCP configuration.
When using a routed text model such as GLM through Claude Code, the MCP tool result may appear first in the terminal under the tool output line. Claude Code still needs one more model turn to convert that tool result into the final assistant reply, so the final reply can lag behind the tool result.
Local smoke test
npm run smoke
This only validates MCP initialize and tools/list. Real image understanding is exercised from an MCP client such as Claude Code.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。