Seedream 图片生成 MCP Server - 基于火山引擎 Seedream 模型的图像生成工具
Project description
Seedream MCP Server
基于火山引擎 Seedream 模型的图片生成 MCP 服务器。
通过 MCP (Model Context Protocol) 协议,让 AI 助手能够调用 Seedream 模型生成高质量图片。
功能特性
- ✨ 文生图 (Text-to-Image):根据文本描述生成图片
- ✨ 文生组图 (Text-to-Multi-Image):根据文本描述生成多张图片(4.5/5.0 版本)
- 🖼️ 图生图 (Image-to-Image):基于参考图片生成新图片(4.5/5.0 版本)
- 🖼️ 多图融合 (Multi-Image Fusion):融合多张图片生成新图片(4.5/5.0 版本)
- 🔗 联网搜索 (Web Search - 5.0):结合联网搜索结果生成图片
- ⚡ 流式输出 (Streaming):支持流式返回生成的图片
- 🔄 所有输出为 Markdown 格式,方便 AI 直接展示
快速开始
前提条件
- Python 3.10+
- 火山引擎 API Key(获取方式)
安装
pip install timeverse-seedream-mcp
配置环境变量
export VOLC_API_KEY="your-api-key-here"
# 可选,默认为 doubao-seedream-5-0-260128
export VOLC_MODEL="doubao-seedream-5-0-260128"
运行
timeverse-seedream-mcp
MCP 配置
将以下配置添加到你的 MCP 客户端配置文件中:
{
"mcpServers": {
"seedream": {
"command": "timeverse-seedream-mcp",
"env": {
"VOLC_API_KEY": "your-api-key-here",
"VOLC_MODEL": "doubao-seedream-5-0-260128"
}
}
}
}
工具列表
| 工具名称 | 描述 | 适用模型 |
|---|---|---|
seedream_generate |
文生图 - 根据文本描述生成图片 | 所有版本 |
seedream_generate_multi |
文生组图 - 根据文本生成多张不同图片 | 4.5/5.0 |
seedream_image_to_image |
图生图 - 基于参考图片生成新图片 | 4.5/5.0 |
seedream_merge_images |
多图融合 - 融合多张图片生成新图片 | 4.5/5.0 |
API 参考
Base URL
https://ark.cn-beijing.volces.com/api/v3
兼容性
本 API 完全兼容 OpenAI Images API 格式,可以使用 OpenAI SDK 直接调用。
模型版本
| 模型 | 版本 | 支持功能 |
|---|---|---|
doubao-seedream-5-0-260128 |
5.0 | 文生图、文生组图、图生图、多图融合、联网搜索、流式 |
doubao-seedream-4-5-251128 |
4.5 | 文生图、文生组图、图生图、多图融合、流式 |
doubao-seedream-4-0-250828 |
4.0 | 文生图、流式 |
开发
# 克隆仓库
git clone https://github.com/your-org/timeverse-seedream-mcp.git
cd timeverse-seedream-mcp
# 安装开发依赖
pip install -e ".[dev]"
# 运行测试
pytest
# 运行 Lint
ruff check src/
mypy src/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timeverse_seedream_mcp-0.1.0.tar.gz.
File metadata
- Download URL: timeverse_seedream_mcp-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba50b5125c759f9c3657ebe0e24334f4409f2091afbe0953fdc5d2b3ccee027
|
|
| MD5 |
cfa9880782dc6de6c09a6e1913657e21
|
|
| BLAKE2b-256 |
6f37c893bb7ba7ae40fed0b56f3ce37c5b708dc49719dc1229c9645f234d9b8f
|
File details
Details for the file timeverse_seedream_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: timeverse_seedream_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72f1f158db35a197f84924a3578a5d8a02be90daf89ce38556d7180c178bf636
|
|
| MD5 |
1d218b6ec41ec41e6a5c5412a456ec22
|
|
| BLAKE2b-256 |
37ce9b37ab66bc0f9e74e1cfa4b4a8e800cdb3cf773e19ab63c29c9492a9f345
|