anime-image-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., "@anime-image-mcpGenerate an anime girl with blue hair in cyberpunk style"
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.
二次元美图生成器
基于火山方舟 ARK doubao-seedream 与 Agnes Image 2.1 Flash 的二次元/CG 高质量图片生成工具,支持文生图、图生图、多图生图、组图生成(仅 ARK),内置 16 种风格预设,支持风格一致性管理,同时提供 Web UI 和 MCP 服务器两种使用方式。
特性
双引擎支持 - 火山方舟 ARK (doubao-seedream) + Agnes Image 2.1 Flash
文生图 - 文本提示词 -> 单张高质量二次元美图
图生图 - 单张参考图 + 文本 -> 单张图片(保持姿势/构图,改变风格/内容)
多图生图 - 2-14 张参考图 + 文本 -> 单张图片
组图生成(ARK) - 生成一组内容关联的图片(sequential_image_generation: auto)
宽高比控制(Agnes) - 1:1 / 3:4 / 4:3 / 16:9 / 9:16 / 2:3 / 3:2 / 21:9
16 种风格预设 - CG厚涂、唯美水彩、赛博朋克、新海诚光影、古风国潮、暗黑哥特、概念艺术等
风格一致性 - 通过风格配置文件确保多张图片风格统一
智能提示词引擎 - 自动组合用户提示词 + 风格后缀 + 构图 + 光线 + 质量增强词
Web UI - 暗色主题,支持拖拽上传参考图、引擎切换、模式切换、组图展示
MCP 服务器 - 14 个工具,供 AI 智能体调用全部生成能力
REST API - 完整的 RESTful API
Related MCP server: jimeng_visual_generation
快速开始
1. 安装依赖
cd D:\projects\image_MCP
pip install -r requirements.txt2. 配置 API Key
copy .env.example .env编辑 .env 文件:
# Agent Plan API(文生图 + 图生图 + 组图,doubao-seedream-5.0-lite 全部支持)
AGENT_API_KEY=your_agent_api_key_here
# 标准 API(可选,图生图/组图时使用更强的 pro 模型)
ARK_API_KEY=your_standard_api_key_here
# Agnes Image(可选,文生图/图生图,支持宽高比)
AGNES_API_KEY=your_agnes_api_key_hereAgent Plan API Key: https://console.volcengine.com/ark/region:cn-beijing/openManagement?LLM=%7B%7D&OpenModelVisible=false&advancedActiveKey=agentPlan
标准 API Key(可选): https://console.volcengine.com/ark/region:cn-beijing/apikey
Agnes API Key: https://apihub.agnes-ai.com/
只需
AGENT_API_KEY即可使用全部 ARK 功能:文生图、图生图、多图生图、组图生成(doubao-seedream-5.0-lite全部支持)。配置ARK_API_KEY后,图生图/组图会自动切换到更强的doubao-seedream-5-0-pro-260628模型。Agnes 为可选的第二引擎。
3. 启动 Web 服务
python main.py4. 启动 MCP 服务器
python mcp_server.pyMCP 配置
opencode
{
"mcp": {
"anime-image-mcp": {
"type": "local",
"command": ["python", "D:/projects/image_MCP/mcp_server.py"]
}
}
}Claude Code
{
"mcpServers": {
"anime-image-mcp": {
"command": "python",
"args": ["D:/projects/image_MCP/mcp_server.py"]
}
}
}MCP 工具列表
工具名 | 描述 |
| 生成单张图片(文生图/图生图/多图生图,支持 ark/agnes) |
| 生成一组内容关联的组图(仅 ARK) |
| 批量生成多张独立图片 |
| 使用风格配置文件生成(保持风格一致性) |
| 列出所有风格预设 |
| 获取风格预设详情 |
| 列出构图预设 |
| 列出光线预设 |
| 列出可用生成引擎(ark/agnes) |
| 列出宽高比预设(Agnes) |
| 创建风格配置文件 |
| 预览完整提示词 |
| 获取生成历史 |
| 获取指定图片信息 |
生成引擎说明
引擎 | 模型 | 支持功能 | 尺寸 | 宽高比 |
ARK | doubao-seedream-5.0-lite / 5.0-pro | 文生图、图生图、多图生图、组图生成、水印、格式选择 | 1K / 2K / 4K | 无 |
Agnes | agnes-image-2.1-flash | 文生图、图生图、高信息密度优化 | 1K / 2K / 3K / 4K | 1:1 / 3:4 / 4:3 / 16:9 / 9:16 / 2:3 / 3:2 / 21:9 |
生成模式说明
模式 | 参考图 | sequential_image_generation | 输出 | 说明 |
文生图 | 无 | disabled | 单张 | 文本 -> 图片 |
单图生图 | 1张 | disabled | 单张 | 参考图+文本 -> 图片 |
多图生图 | 2-14张 | disabled | 单张 | 多参考图+文本 -> 图片 |
文生组图 | 无 | auto | 多张(≤15) | 文本 -> 一组关联图片 |
单图生组图 | 1张 | auto | 多张(≤14) | 参考图+文本 -> 一组关联图片 |
多图生组图 | 2-14张 | auto | 多张(≤15-参考图数) | 多参考图+文本 -> 一组关联图片 |
风格预设
ID | 名称 | 分类 |
| CG厚涂 | CG数字绘画 |
| 唯美水彩 | 艺术质感 |
| 赛博朋克 | 场景氛围 |
| 幻想史诗CG | CG数字绘画 |
| 日系清新 | 动漫风格 |
| 暗黑哥特 | 特殊风格 |
| 古典油画 | 艺术质感 |
| 新海诚光影 | 动漫风格 |
| 概念艺术 | CG数字绘画 |
| 古风国潮 | 特殊风格 |
| 赛璐璐动画 | 动漫风格 |
| 粉彩柔光 | 艺术质感 |
| 暗黑幻想 | CG数字绘画 |
| Q版萌系 | 动漫风格 |
| 浮世绘现代 | 艺术质感 |
| 影棚肖像 | CG数字绘画 |
REST API
方法 | 路径 | 说明 |
GET |
| 获取风格预设列表 |
GET |
| 获取风格详情 |
GET |
| 获取构图预设 |
GET |
| 获取光线预设 |
POST |
| 生成单张图片(支持参考图) |
POST |
| 生成组图 |
POST |
| 批量生成 |
POST |
| 使用风格配置文件生成 |
POST |
| 创建风格配置文件 |
POST |
| 预览完整提示词 |
POST |
| 上传参考图片 |
GET |
| 获取历史记录 |
GET |
| 获取指定记录 |
DELETE |
| 删除指定记录 |
DELETE |
| 清空历史 |
GET |
| 获取图片文件 |
GET |
| 获取上传的参考图 |
API 文档:http://127.0.0.1:8765/docs
项目结构
image_MCP/
├── main.py # FastAPI Web 服务入口
├── mcp_server.py # MCP 服务器入口
├── config.py # 配置管理(双 API 支持)
├── prompt_styles.py # 提示词引擎(16种风格预设)
├── image_generator.py # 核心生成器(文生图/图生图/组图)
├── requirements.txt
├── .env.example
├── static/ # Web UI
│ ├── index.html
│ ├── style.css
│ └── app.js
├── output/ # 生成图片存储
│ └── uploads/ # 上传的参考图
└── data/
└── history.json使用示例
Python - 图生图
from image_generator import get_generator
gen = get_generator()
result = gen.generate(
user_prompt="保持姿势不变,将服装材质改为透明清水",
style_id="cg_thick_paint",
reference_images="https://example.com/ref.png",
)
print(f"图片已保存: {result.local_path}")Python - 组图生成
from image_generator import get_generator
gen = get_generator()
results = gen.generate_sequence(
user_prompt="生成3张女孩在游乐园的图片,涵盖早晨、中午、晚上",
style_id="anime_fresh",
max_images=3,
reference_images=["https://example.com/ref1.png", "https://example.com/ref2.png"],
)
for r in results:
print(f"图片 {r.sequence_index + 1}/{r.sequence_total}: {r.local_path}")Python - Agnes 引擎
from image_generator import get_generator
from prompt_styles import PROVIDER_AGNES
gen = get_generator()
# 文生图(16:9 宽屏)
result = gen.generate(
user_prompt="日出时分薄雾峡谷上方的发光浮空城市,电影级写实风格,广角构图",
provider=PROVIDER_AGNES,
size="2K",
ratio="16:9",
)
print(f"图片已保存: {result.local_path}")
# 图生图(构图保留)
result = gen.generate(
user_prompt="将场景改为赛博朋克夜景,保留原始构图",
provider=PROVIDER_AGNES,
reference_images="https://example.com/input.png",
size="2K",
ratio="3:4",
)
print(f"图片已保存: {result.local_path}")cURL - 组图生成
curl -X POST http://127.0.0.1:8765/api/generate/sequence \
-H "Content-Type: application/json" \
-d '{"user_prompt": "生成3张猫咪在不同场景的图片", "max_images": 3, "style_id": "pastel_soft"}'技术栈
后端: Python + FastAPI + Uvicorn
AI 模型: 火山方舟 ARK doubao-seedream + Agnes Image 2.1 Flash
MCP: 纯 Python 实现 JSON-RPC 2.0 (无需 mcp 包)
前端: 原生 HTML/CSS/JS
环境要求
Python 3.10+
至少配置以下 API Key 之一:
火山方舟 ARK (Agent Plan 或标准 API)
Agnes Image API Key (https://apihub.agnes-ai.com/)
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
- FlicenseAqualityDmaintenanceAn MCP server that enables AI image generation, editing, and analysis using Google's Gemini 3.0 models. It supports high-resolution outputs up to 4K, style transfers, and multi-image mixing through specialized tools.Last updated3
- AlicenseAqualityCmaintenanceMCP server for generating images and videos using Volcengine's Jimeng APIs, supporting text-to-image, image-to-image, multi-image fusion, text-to-video, and image-to-video.Last updated31MIT
- Alicense-qualityDmaintenanceMCP server for AI-powered media generation: images, videos, audio, and upscaling using 99 AI models.Last updatedMIT
- Flicense-qualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.Last updated
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
MCP server for Hailuo (MiniMax) AI video generation
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/BaiWoww/Image-generation-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server