vision-mcp
基于阿里云百炼DashScope(Qwen-VL)的视觉MCP Server,通过MCP协议为Claude Code、Trae等客户端提供图片理解(通用图片分析和UI截图分析)能力。
README
vision-mcp
基于 阿里云百炼 DashScope(Qwen-VL) 的视觉 MCP Server。通过 MCP 协议为 Claude Code、Trae、CodeBuddy 等客户端提供图片理解能力。
功能
analyze_image— 通用图片分析(支持本地文件路径 / 公网 URL / data URL)screenshot_analyze— UI / 界面截图分析
支持的模型
| 模型 | 说明 |
|---|---|
qwen-vl-max |
效果最佳,适合复杂图片理解 |
qwen-vl-plus |
效果与速度均衡(默认) |
qwen2.5-vl-72b-instruct |
72B 指令跟随 |
qwen2.5-vl-7b-instruct |
7B 轻量快速 |
快速开始
1. 安装依赖
python -m venv .venv
# Windows
.venv\Scripts\pip install -r requirements.txt
# Linux / macOS
.venv/bin/pip install -r requirements.txt
2. 配置 API Key
在项目根目录创建 .env 文件(MCP Server 启动时自动读取):
DASHSCOPE_API_KEY=sk-你的密钥
申请地址:阿里云百炼控制台
3. 启动
# Windows
.venv\Scripts\python vision_mcp_server.py
# Linux / macOS
.venv/bin/python vision_mcp_server.py
列出支持的模型:
python vision_mcp_server.py --list
接入 MCP 客户端
在客户端的 MCP 配置(如 mcp.json 或 .mcp.json)中添加:
{
"mcpServers": {
"vision": {
"command": "/path/to/vision-mcp/.venv/bin/python",
"args": ["/path/to/vision-mcp/vision_mcp_server.py"],
"env": {}
}
}
}
测试
# 协议冒烟测试(无需 API Key)
.venv/bin/python smoke_test.py
# 真实调用测试(需配置 API Key,使用本地测试图)
.venv/bin/python live_test.py
注意
- DashScope 服务端下载海外公网图片 URL 可能超时,建议使用本地文件路径或国内可达的 URL
- API Key 通过
.env文件提供,不会写入配置文件
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.