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(获取方式)
安装
# 方式一:使用 uvx(推荐,自动管理依赖)
uvx timeverse-seedream-mcp
# 方式二:使用 pip
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": "uvx",
"args": ["timeverse-seedream-mcp"],
"env": {
"VOLC_API_KEY": "your-api-key-here",
"VOLC_MODEL": "doubao-seedream-5-0-260128"
}
}
}
}
需要先安装 uv:
brew install uv或pip install uv
uvx会自动下载并运行,无需手动pip install。如果已通过pip install安装,也可直接配置"command": "timeverse-seedream-mcp"。
工具列表
| 工具名称 | 描述 | 适用模型 |
|---|---|---|
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/
Metadata
Release files for timeverse-seedream-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| timeverse_seedream_mcp-0.1.2.tar.gz | 15.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| timeverse_seedream_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / timeverse_seedream_mcp-0.1.2.tar.gz
| Download URL | timeverse_seedream_mcp-0.1.2.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47d2940faa06ba0eb9e07361c93a836042f59f7d3022fc050971fb4688191bd7
|
|
BLAKE2b-256 checksum How to use checksums |
c110af4e39cbbe5e6b0a86643264bd61c465d6134ae87065b22a75e0e4e70ef3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / timeverse_seedream_mcp-0.1.2-py3-none-any.whl
| Download URL | timeverse_seedream_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ea4695e4c5719508a9b43bd991087d7b79d95f1d2a987009c9a96195ab605aa
|
|
BLAKE2b-256 checksum How to use checksums |
21c4fe83d38f03f5ff6cbd92f4eb7538f7da2c74cbf5ed8c21a4c596417c8fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for timeverse-seedream-mcp 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.