qwen-vision-mcp
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., "@qwen-vision-mcpAnalyze the image I just sent and describe what you see."
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.
qwen-vision-mcp
让 Claude Code 具备"看图"能力的 MCP 服务器。当主模型是纯文本模型(如 DeepSeek)时,通过本工具把图片交给 Qwen 视觉模型(默认阿里云 DashScope 的 qwen-vl-max)分析,再把结果返回给 Claude。
原理
Claude Code ──(MCP stdio)──> qwen-vision-server.py ──(base64 图片)──> DashScope API (qwen-vl-max)
▲ │
└────────────────────── 返回文字描述 ◀──────────────────────────────────┘主模型理解你的话、决定"该看图了",然后调用
analyze_image工具qwen-vision-server.py把图片文件 base64 编码,发给视觉模型,拿回文字描述真正"看懂"图片的是 qwen 视觉模型,主模型负责调度和转述
Related MCP server: glm-vision-mcp-server
前置要求
Claude Code
uv(推荐,自动装依赖、跨平台)。安装:
Windows:
winget install astral-sh.uv或pip install uvmacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
一个 DashScope(阿里云百炼)API Key,申请地址:https://bailian.console.aliyun.com
不想用 uv 也可以,见文末"不使用 uv 的备用方案"。
快速开始
# 1. 克隆仓库
git clone https://github.com/<你的用户名>/qwen-vision-mcp.git
cd qwen-vision-mcp
# 2. 设置你的 API Key —— 必须在"启动 claude 的那个终端"里设置
# Windows (PowerShell)
$env:DASHSCOPE_API_KEY = "sk-你的key"
# macOS / Linux (bash/zsh)
export DASHSCOPE_API_KEY="sk-你的key"然后用 Claude Code 打开这个目录:
首次打开会弹出信任提示"Do you trust the files in this folder?",选第一项: "Yes, proceed with MCP servers and hooks enabled"(允许项目里的 MCP 服务器)
确认 qwen-vision 已连接:在 Claude Code 里输入
/mcp,应显示 qwen-vision 为 Connected直接给 Claude 发一张图片,或说:
用 qwen 看这张图,里面有什么?自定义后端
默认走阿里云 DashScope。想用其他兼容 OpenAI 的视觉接口(比如自建 GPU 服务),改 .mcp.json 里 env 的三个变量:
变量 | 默认值 | 说明 |
| (必须填) | API Key,支持 |
|
| 接口地址 |
|
| 模型名 |
项目结构
qwen-vision-mcp/
├── qwen-vision-server.py # MCP 服务器脚本(核心,含 uv 内联依赖声明)
├── .mcp.json # MCP 配置(项目作用域,Claude Code 自动加载)
├── requirements.txt # 备用方案的 Python 依赖(python 命令时用)
├── README.md # 本文档
└── .gitignore # 防止 key 泄漏不使用 uv 的备用方案
如果你不想装 uv,改成 python 方式:
pip install -r requirements.txt然后把 .mcp.json 里的启动命令改成:
"command": "python",
"args": ["qwen-vision-server.py"]macOS/Linux 若
python不存在,改用python3,并相应改command。
常见问题
Q: analyze_image 工具没出现?
A: 先确认 /mcp 里 qwen-vision 是 Connected;不是就重启 Claude Code。若完全没加载,大概率是没通过首次信任提示,重开一次选"允许 MCP servers"。
Q: 报 401 Unauthorized?
A: API Key 不对或没设置。确认启动 claude 的终端里 DASHSCOPE_API_KEY 已 export(每次新开终端都要再设,或用 setx 持久化)。
Q: 回答是空的?
A: 若换用了推理型模型(如 Qwen3.5),答案可能放在 reasoning_content,脚本已自动兜底。仍为空就检查 key 余额、模型名。
Q: 不想每次设环境变量?
A: Windows 可 setx DASHSCOPE_API_KEY "sk-你的key" 持久化到用户环境;或改 .mcp.json 直接填 key,但千万别提交到 git(见安全提醒)。
安全提醒
不要把 API Key 写进代码或提交到 GitHub,否则别人能用你的额度替你的 key 买单
本项目
.gitignore已排除.env、*.key等文件,但.mcp.json里若手填了 key,提交前务必改回${DASHSCOPE_API_KEY}.mcp.json会让克隆者执行其中的启动命令,这是正常的(需要用户同意信任),但也请确认你只提交了自己写的脚本
This server cannot be installed
Maintenance
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
- AlicenseAqualityBmaintenanceEnables Claude Code to describe images and extract text using Kimi/Moonshot vision API. Supports local image files with customizable prompts.Last updated2MIT
- AlicenseAqualityCmaintenanceEnables Claude Code to analyze images using Zhipu AI's GLM-5V-Turbo vision model, supporting local files and URLs with customizable prompts.Last updated130MIT
- Alicense-qualityDmaintenanceEnables image analysis in Claude Code using Zhipu AI's GLM-4.6V vision model.Last updated4MIT
- AlicenseAqualityCmaintenanceEnables to analyze local images or remote URLs using Alibaba Qwen3.7-plus vision model via DashScope's Anthropic-compatible endpoint.Last updated125MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Trade Robinhood through natural language in Claude Code.
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/Biaoqiang-love/qwen-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server