Qwen Image MCP Server
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 Image MCP ServerGenerate a watercolor painting of a mountain lake at sunset"
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 Image 3.0 MCP Server
基于阿里云百炼 DashScope API 的千问图像生成与编辑 MCP 服务,提供文生图(T2I)和图生图/图像编辑(I2I)能力。
功能
工具 | 功能 | 说明 |
| 文生图(T2I) | 根据文本提示词直接生成图像 |
| 图生图/图像编辑(I2I) | 基于 1-3 张参考图结合编辑指令进行精确编辑 |
模型选择
模型 | 特点 |
| 高质量,适合精细创作 |
| 兼顾质量与速度,适合快速生成 |
Related MCP server: Seedream 4.0 MCP Server
前提条件
安装
uvx(无需安装,直接运行)
uvx qwen-image-mcppip
pip install qwen-image-mcp本地开发
git clone https://github.com/wchiway/qwen-image-mcp
cd qwen-image-mcp
uv sync配置
通过环境变量配置 API Key:
export DASHSCOPE_API_KEY="sk-xxxxxxxxxxxx"或创建 .env 文件:
# 必填:阿里云百炼 API Key
DASHSCOPE_API_KEY=sk-xxxxxxxxxxxx
# 可选:业务空间 ID(推荐,性能更优)
WORKSPACE_ID=
# 可选:地域(默认 cn-beijing)
REGION=cn-beijing使用方式
MCP 客户端配置(推荐)
在 Claude Code 的 settings.json 中添加:
{
"mcpServers": {
"qwen-image": {
"command": "uvx",
"args": ["qwen-image-mcp"],
"env": {
"DASHSCOPE_API_KEY": "sk-你的key",
"WORKSPACE_ID": "",
"REGION": "cn-beijing"
}
}
}
}uvx 直接运行
uvx qwen-image-mcp本地安装运行
qwen-image-mcp工具参考
generate_image — 文生图
参数 | 类型 | 必填 | 默认值 | 说明 |
| string | ✅ | — | 正向提示词,描述图像内容、风格和构图,支持中英文 |
| string | — |
| 模型名称 |
| string | — | 自动推荐 | 输出分辨率,格式 |
| integer | — | 1 | 生成数量(1-6) |
| boolean | — | true | 提示词智能改写 |
| string | — | direct | 改写方式: |
| string | — | — | 反向提示词 |
| integer | — | — | 随机种子(0-2147483647) |
| boolean | — | false | 是否添加水印 |
edit_image — 图生图/图像编辑
参数 | 类型 | 必填 | 默认值 | 说明 |
| string | ✅ | — | 编辑指令,描述期望的编辑效果,支持中英文 |
| string[] | ✅ | — | 参考图像列表(1-3 张),URL 或 Base64 |
| string | — |
| 模型名称 |
| string | — | 自动推荐 | 输出分辨率,格式 |
| integer | — | 1 | 生成数量(1-6) |
| boolean | — | true | 提示词智能改写 |
| string | — | direct | 仅支持 |
| string | — | — | 反向提示词 |
| integer | — | — | 随机种子(0-2147483647) |
| boolean | — | false | 是否添加水印 |
图像输入格式
公网 URL:
https://example.com/image.pngBase64 编码:
data:image/png;base64,iVBORw0KGgo...支持格式:JPG、JPEG、PNG、BMP、TIFF、WEBP、GIF
单张不超过 10MB,分辨率建议 384-2048 像素
环境变量
变量 | 必填 | 默认值 | 说明 |
| ✅ | — | 阿里云百炼 API Key |
| — | — | 业务空间 ID,不设则使用旧域名 |
| — |
| 地域: |
| — |
| API 请求超时(秒) |
| — |
| 日志级别: |
示例
文生图 — 生成一张风景照
prompt: "一幅秋日山间晨雾的风景摄影,暖金色阳光穿透薄雾,远山层叠,前景有金黄色的落叶松林"图生图 — 人物换装
images: ["https://example.com/portrait.jpg"]
prompt: "保留人物面部特征,将服装换为深蓝色商务西装,背景改为现代办公室"图生图 — 风格转换
images: ["https://example.com/photo.jpg"]
prompt: "将这张照片转换为宫崎骏动画风格,保持构图不变"响应格式
成功返回的图像 URL 有效期为 24 小时,请及时下载保存。
✅ 文生图完成
**图像 1**
- URL(24h 有效): https://dashscope-result-sz.oss-cn-shenzhen.aliyuncs.com/xxx.png
分辨率: 1024×1024
生成数量: 1
输入图片数: 0
request_id: 571ae02f-5c9d-436c-83c2-f221e6df0xxx技术栈
Python 3.10+
MCP Python SDK 2.0+
uv — 包管理与构建
许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables users to generate high-quality images using ModelScope's Qwen-Image model through natural language prompts. Supports async task processing with both image URL and base64 encoded data output options.Last updated12MIT
- Alicense-qualityDmaintenanceEnables AI image generation using Volcano Engine's Seedream 4.0 API with text-to-image, image-to-image, multi-image fusion capabilities, built-in prompt templates, and automatic cloud storage integration.Last updated19MIT
- AlicenseAqualityCmaintenanceEnables AI image generation using Doubao Seedream models and video generation using Doubao Seedance models through Volcano Engine's API, supporting text-to-image, image-to-image, text-to-video, and task status queries.Last updated3223MIT
- AlicenseBqualityDmaintenanceEnables text-to-image generation through the ModelScope platform using the Qwen/Qwen-Image model. It supports customizable parameters such as negative prompts, resolution, and sampling steps within MCP-compatible clients.Last updated1121MIT
Related MCP Connectors
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Image, video, audio, face-swap, talking avatars and chat across 300+ AI models, one balance.
Generate images, video, and audio with Glif's media-generation agent
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/wchiway/qwen-image-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server