vision-mcp
Provides image understanding capabilities by calling vision models through the OpenAI-compatible API, supporting tasks like image analysis, OCR, error screenshot diagnosis, technical diagram understanding, data visualization analysis, UI-to-code generation, and UI diff checking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vision-mcpCompare the UI differences between v1.png and v2.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vision-mcp
图像理解 MCP Server(stdio 形式),对标 z.ai vision-mcp-server,底层经 OpenAI 兼容接口调用视觉模型(支持火山方舟 ARK 等 provider,默认 doubao-seed-2.0-code)。
工具一览
共 7 个图像工具(未实现 video_analysis):
工具 | 说明 |
| 通用图像理解 |
| 截图 OCR,提取代码/终端/文档/普通文本 |
| 分析错误截图,给可操作修复建议 |
| 解读架构图/流程图/UML/ER 图等 |
| 读取图表/仪表盘,提取洞察与趋势 |
| UI 截图转代码/提示词/规格说明/描述 |
| 比较两张 UI 截图差异 |
图片输入统一支持三种形式:本地路径、HTTP(S) URL、data:image/...;base64,... URI。
URL 与本地路径都会先在本地下载/读取并转 base64,以 data URI 内联发送,规避模型后端拉取外网图片超时。
Related MCP server: Vison-MCP
配置
通过环境变量配置后端服务:
环境变量 | 说明 | 默认值 |
| OpenAI 兼容服务根地址 |
|
| Bearer 鉴权密钥 | (空) |
| 视觉模型名 |
|
变量名仍沿用
OLLAMA_*以保持向后兼容,实际已不依赖 Ollama 原生接口, 而是走标准 OpenAI/chat/completions。
安装
需 Python ≥ 3.10 与 uv。
cd 识图mcp
uv sync # 安装依赖
uv run vision-mcp --help # 验证可运行客户端配置
Claude Desktop / Cline / Roo Code
{
"mcpServers": {
"vision-mcp": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/Volumes/samsungssd/code/temp/识图mcp", "vision-mcp"],
"env": {
"OLLAMA_BASE_URL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"OLLAMA_API_KEY": "你的ARK_API_KEY",
"OLLAMA_MODEL": "doubao-seed-2.0-code"
}
}
}
}ZCode
{
"mcpServers": {
"vision-mcp": {
"command": "uv",
"args": ["run", "--directory", "/Volumes/samsungssd/code/temp/识图mcp", "vision-mcp"],
"env": {
"OLLAMA_BASE_URL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"OLLAMA_API_KEY": "你的ARK_API_KEY",
"OLLAMA_MODEL": "doubao-seed-2.0-code"
}
}
}
}提示:
--directory指向本项目的绝对路径,请按实际位置修改。也可用uvx --from /path/to/识图mcp vision-mcp。
使用示例
在客户端对话中直接提到图片路径/URL 即可,例如:
"这张图
demo.png里有什么?" → 触发image_analysis"提取这张终端报错截图的文本" → 触发
extract_text_from_screenshot"对比
v1.png和v2.png两个界面的差异" → 触发ui_diff_check
开发与测试
uv sync
# 直接以 stdio 模式运行(可用 MCP inspector / 客户端连接)
uv run vision-mcpMaintenance
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
- AlicenseAqualityCmaintenanceAn MCP server that adds image recognition to AI coding tools, enabling them to analyze images, extract text, and perform OCR via multimodal APIs and traditional OCR engines.315MIT
- AlicenseAqualityBmaintenanceMCP server for vision AI — screenshots to code, OCR, error diagnosis, and image analysis via OpenAI-compatible APIs.82MIT
- Alicense-qualityBmaintenanceAn MCP server that provides 8 vision tools for UI screenshot to code, OCR, error diagnosis, diagram understanding, data visualization analysis, UI diff, and image/video analysis, plus model list query, powered by SiliconFlow's multimodal API.GPL 3.0
- Alicense-qualityBmaintenanceAn MCP server for image recognition and OCR via OpenAI-compatible vision APIs, supporting local files, URLs, and data URLs. Enables natural language image description and text extraction.2772MIT
Related MCP Connectors
MCP server for Grok Imagine AI video generation
MCP server for Flux AI image generation
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sunqb/vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server