Skip to main content
Glama

🎨 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

工具

工具

描述

generate_image

文生图生成

generate_from_image

图生图转换

list_models

列出可用模型

get_model_info

获取模型详情及定价

upscale_image

超分辨率放大 (2x/4x)

remove_background

背景移除

batch_generate

批量生成图像

get_generation_status

检查任务状态

style_transfer

应用艺术风格

image_variation

生成图像变体

模型

模型

提供商

速度

质量

成本

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 基础 URL

  • COMFYUI_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/

部署状态

许可证

MIT

F
license - not found
-
quality - not tested
C
maintenance

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