ai-image-gen-mcp
🎨 AI 图像生成 MCP 服务器
多模型 AI 图像生成 MCP 服务器。支持 Seedream (豆包)、SDXL、FLUX.1 Schnell/Dev。由 30 张 RTX 4090 GPU 加速。
功能特性
10 个 MCP 工具:generate_image, generate_from_image, list_models, get_model_info, upscale_image, remove_background, batch_generate, get_generation_status, style_transfer, image_variation
4 种模型:Seedream 5.0 (API), SDXL (本地), FLUX.1 Schnell (本地), FLUX.1 Dev (本地)
8 种艺术风格:写实 (photorealistic), 动漫 (anime), 油画 (oil-painting), 水彩 (watercolor), 3D 渲染 (3d-render), 像素艺术 (pixel-art), 中国水墨 (chinese-ink), 赛博朋克 (cyberpunk)
GPU 加速:本地模型使用 30 张 RTX 4090,云端生成使用 Seedream API
快速开始
# Install
pip install -r requirements.txt
# Run (stdio mode - for Claude/WorkBuddy)
python server.py
# Run (HTTP mode - for remote access)
python server.py --transport http --port 8009工具
工具 | 描述 |
| 文生图生成 |
| 图生图转换 |
| 列出可用模型 |
| 获取模型详情及定价 |
| 超分辨率放大 (2x/4x) |
| 背景移除 |
| 批量生成图像 |
| 检查任务状态 |
| 应用艺术风格 |
| 生成图像变体 |
模型
模型 | 提供商 | 速度 | 质量 | 成本 |
Seedream 5.0 | 豆包 API | ~17秒 | 高 | ¥0.04/张 |
SDXL | 本地 4090 | ~5秒 | 高 | 免费 |
FLUX.1 Schnell | 本地 4090 | ~3秒 | 良好 | 免费 |
FLUX.1 Dev | 本地 4090 | ~15秒 | 最佳 | 免费 |
环境变量
SEEDREAM_API_KEY: Seedream API 密钥 (默认:内置)SEEDREAM_BASE_URL: Seedream API 基础 URLCOMFYUI_URL: 本地 ComfyUI 端点 (默认:http://localhost:8188)IMAGE_OUTPUT_DIR: 生成图像的输出目录
MCP 配置
{
"mcpServers": {
"ai-image-gen": {
"command": "python",
"args": ["server.py"],
"cwd": "/path/to/ai-image-gen-mcp"
}
}
}在线访问(推荐)
无需本地安装,直接在 MCP 客户端配置:
{
"mcpServers": {
"ai-image-gen-mcp": {
"url": "http://www.mzse.com/image-gen-mcp/"
}
}
}REST API
curl http://www.mzse.com/image-gen-mcp/部署状态
项目 | 地址 |
域名 | |
GitHub |
许可证
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/zhaohongyuziranerran/ai-image-gen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server