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-mcpPlease describe the image at /Users/me/Desktop/screenshot.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.
qwen-vision-mcp
Claude Code 视觉降级识别 —— 通过 MCP 让纯文本模型(如 DeepSeek 系列)调用千问视觉模型(DashScope 阿里云百炼)识别图片,把返回的文字描述喂回当前模型继续推理。
当你的 Claude Code 使用了一个没有视觉能力的模型(收到图片只能看到 [Unsupported Image]),本工具会在模型收到图片时自动降级:调用千问视觉模型识别图片内容,再以文字形式交回模型。
功能特性
recognize_imageMCP 工具:读本地图片 → base64 → 调千问视觉模型 → 返回文字描述配套 Skill:收到图片但模型看不了时自动触发,引导模型调用工具
模型可配置:默认模型
qwen3.5-omni-plus-2026-03-15,可通过环境变量QWEN_VISION_DEFAULT_MODEL修改,也可在单次调用时传model参数Windows 环境变量兜底:进程未继承用户级环境变量时,自动从注册表
HKCU\Environment读取友好错误提示:无 key / 文件不存在 / 图片过大 / API 调用失败均返回可读中文错误
Related MCP server: multimodal-mcp
架构
模型收到图片但自己无法查看
│ (Skill: recognize-image 触发)
▼
MCP 工具 recognize_image(path, prompt, model)
│ 读图 → base64 → data URI
▼
DashScope OpenAI 兼容端点(千问视觉模型 Qwen-VL)
│ 返回文字描述
▼
模型把返回文字当作"看"到的内容,继续回答用户环境要求
Python 3.10+
Claude Code(或任意支持 MCP 与 Skill 的客户端)
阿里云百炼(DashScope)API Key:https://bailian.console.aliyun.com/
安装
# 1. 克隆仓库
git clone <你的仓库地址> qwen-vision-mcp
cd qwen-vision-mcp
# 2. 创建虚拟环境并安装依赖
python -m venv .venv
# Windows:
.venv\Scripts\python -m pip install -r requirements.txt
# macOS / Linux:
# .venv/bin/python -m pip install -r requirements.txt
# 3. 设置 API Key(任选其一)
# 方式 A:设置到当前环境
export DASHSCOPE_API_KEY=sk-xxxx
# 方式 B:写入 ~/.claude/settings.json 的 env 段
# 方式 C(Windows):系统"环境变量"(用户级)
# 4. 注册 MCP server(用户级,所有项目可用)
claude mcp add qwen-vision --scope user -- \
<venv-python 绝对路径> <仓库绝对路径>/server.py
# 例如 Windows:
# claude mcp add qwen-vision --scope user -- \
# D:/qwen-vision-mcp/.venv/Scripts/python D:/qwen-vision-mcp/server.py
# 5. 安装配套 Skill(复制到 Claude Code 的 skills 目录)
# Windows / macOS / Linux: ~/.claude/skills/
cp -r skill/recognize-image ~/.claude/skills/安装完成后重启 Claude Code,运行 claude mcp list 应能看到 qwen-vision ✓ Connected。
使用说明
重启 Claude Code 后,直接向模型发送一张图片(粘贴路径、拖拽附件等)。
模型自己无法查看图片时,
recognize-imageSkill 会自动触发,引导模型调用recognize_image工具。工具返回的文字描述就是模型"看到"的内容,模型会基于它继续回答你。
也可以直接要求模型手动调用:
请用 recognize_image 识别 <图片路径>,我想了解 ...工具参数:
参数 | 说明 |
| 图片绝对路径(png / jpg / jpeg / webp / bmp / gif) |
| 想从图片中了解什么,默认"请详细描述这张图片的内容" |
| 千问视觉模型名,默认取 |
配置
环境变量 | 必填 | 说明 |
| 是 | 阿里云百炼 DashScope API Key |
| 否 | 默认视觉模型名(如 |
单次调用模型优先顺序:显式 model 参数 > QWEN_VISION_DEFAULT_MODEL 环境变量 > 内置默认值。
卸载
# 1. 移除 MCP 注册
claude mcp remove qwen-vision
# 2. 删除 Skill
rm -rf ~/.claude/skills/recognize-image
# 3. 删除仓库目录
rm -rf qwen-vision-mcp
# 4. (可选)移除环境变量 DASHSCOPE_API_KEY / QWEN_VISION_DEFAULT_MODEL常见问题(FAQ)
为什么 requirements.txt 固定 mcp<2?
mcp 2.0.0 移除了 mcp.server.fastmcp.FastMCP,本工具基于 FastMCP 编写,因此固定到 1.x。
Windows 下设置了用户环境变量但进程读不到?
本工具会通过注册表 HKCU\Environment 兜底读取 DASHSCOPE_API_KEY 和 QWEN_VISION_DEFAULT_MODEL,即使 Claude Code 进程早于环境变量设置而启动,也能读到。
图片大小限制?
单张图片上限 8MB(server.py 中 MAX_BYTES)。超大图片请先压缩或裁剪。
支持视频吗?
暂不支持。后续版本计划 recognize_video(ffmpeg 抽帧后逐帧识别)。
License
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
- FlicenseAqualityBmaintenanceGives any MCP client (OpenCode, Claude Code, Claude Desktop, Cursor, etc.) the ability to process images by automatically converting them to text descriptions using a vision model, so that text-only LLMs can handle image-based queries.Last updated2
- FlicenseAqualityBmaintenanceProvides image understanding capabilities to coding models without vision support by automatically invoking a vision model and returning text descriptions, enabling seamless context-aware coding with images.Last updated12
- Flicense-qualityCmaintenanceEnables text-only language models to 'see' and describe images by calling multimodal APIs (OpenAI, Anthropic) for image analysis.Last updated
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Analyze images from multiple angles to extract detailed insights or quick summaries. Describe visu…
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/LY20050921/qwen-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server