AI 图像生成服务
@chenyeju295
About AI 图像生成服务
可用于cursor 集成 mcp server
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp_generate_images": {
"command": "python3",
"args": [
"-m",
"pip",
"install",
"fastmcp",
"requests",
"volcengine-python-sdk[ark]"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
什么是AI 图像生成服务?
基于火山引擎(抖音豆包)的图像生成服务,专门设计用于与 Cursor MCP 服务集成。支持自定义图片宽高比、保存路径等功能,提供高质量图像生成能力。
如何用AI 图像生成服务?
需要安装 Python 3.10+、Nodejs 和 uv 包管理器,配置火山引擎 API 密钥(环境变量 ARK_API_KEY)。克隆项目后安装依赖,运行服务。在 Cursor 的 MCP 配置中添加 JSON 节点即可在 agent 模式下使用。
关键功能
- 支持高质量图像生成
- 多种常见宽高比(1:1、4:3、16:9、3:4、9:16)
- 使用火山引擎豆包模型(doubao-seedream-3-0-t2i-250415)
- 自动重试和详细错误处理
- 完整的路径和权限验证
- 详细的错误提示和日志
- 异步处理支持
使用场景
- 在 Cursor 中通过 Composer agent 生成图像
- 生成指定宽高比的风景、人物等图片
- 将生成的图片保存到用户指定的绝对路径
- 支持中文提示词,便于中文用户使用
- 为开发项目快速集成 AI 图像生成 MCP 服务
FAQ 来自AI 图像生成服务
如何配置 API 密钥?
通过设置环境变量 ARK_API_KEY(例如 export ARK_API_KEY=your_api_key_here),或在 ~/.bashrc / ~/.zshrc 中永久添加。
支持哪些图片宽高比?
支持 '1:1'、'4:3'、'16:9'、'3:4'、'9:16',默认为 '1:1'。
图片最大支持多大尺寸?
模型支持最大 1024x1024 的尺寸,建议使用正方形尺寸以获得最佳效果和生成速度。
遇到 API 调用频率受限怎么办?
等待几分钟后再试。如果持续遇到,检查是否超过火山引擎 API 的频率限制。
API 认证失败如何排查?
检查环境变量 ARK_API_KEY 是否正确设置且有效,确保从火山引擎方舟大模型服务获取的密钥未过期。
Frequently asked questions
如何配置 API 密钥?
通过设置环境变量 `ARK_API_KEY`(例如 `export ARK_API_KEY=your_api_key_here`),或在 `~/.bashrc` / `~/.zshrc` 中永久添加。
支持哪些图片宽高比?
支持 '1:1'、'4:3'、'16:9'、'3:4'、'9:16',默认为 '1:1'。
图片最大支持多大尺寸?
模型支持最大 1024x1024 的尺寸,建议使用正方形尺寸以获得最佳效果和生成速度。
遇到 API 调用频率受限怎么办?
等待几分钟后再试。如果持续遇到,检查是否超过火山引擎 API 的频率限制。
API 认证失败如何排查?
检查环境变量 `ARK_API_KEY` 是否正确设置且有效,确保从火山引擎方舟大模型服务获取的密钥未过期。
Basic information
More Other MCP servers
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

YOUB
Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
Comments