Seedance / Seedream MCP
MCP server for BytePlus generative media: Seedream image generation, Seedance video generation, media staging (TOS), and private portrait asset management.
README
Seedance / Seedream MCP
Python MCP server for BytePlus Seedream 5.0 Pro, Seedance 2.0, TOS media staging, and the private portrait asset library. It is designed for local verification first and deployment as a Native Python 3.11 Web Application on BytePlus veFaaS.
Runtime shape
- Streamable HTTP MCP endpoint:
POST /mcp - Health endpoint:
GET /health - Upload widget:
GET /widget/ - Upload API:
POST /api/uploads - Redis-backed short-lived sessions
- Shared TOS bucket and shared BytePlus credentials for v1
Setup
Create a virtual environment, install dependencies, and copy the environment template:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
cp .env.example .env
On PowerShell:
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements-dev.txt
Copy-Item .env.example .env
Fill every required value in .env. Startup fails immediately when any
required value is missing.
Run locally
bash run.sh
or:
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000
Verify:
curl http://127.0.0.1:8000/health
python scripts/smoke_mcp.py http://127.0.0.1:8000/mcp
Tools
Planning tools never call generation APIs:
creative_plan_launch_setcreative_resolve_video_preset
Media and reference state:
media_start_upload_sessionmedia_finalize_upload_sessionmedia_get_upload_sessionmedia_import_generated_asset
Generation and portrait preparation:
seedream_generate_imageseedance_generate_videoseedance_prepare_portrait_assetseedance_get_portrait_asset_status
Task control and diagnostics:
generation_get_taskgeneration_list_tasksgeneration_cancel_tasksystem_get_runtime_configsystem_validate_byteplus_connectivity
system_get_runtime_config masks ARK_API_KEY, BYTEPLUS_AK,
BYTEPLUS_SK, and the optional BYTEPLUS_SESSION_TOKEN.
Main workflows
Seedream image
- Optionally stage reference images and finalize the upload session.
- Call
seedream_generate_image. - Reuse the returned
reference_session_iddirectly with Seedance. Outputs generated by ModelArk are trusted and do not need private-asset conversion.
Normal media to Seedance
- Create an upload session with
workflow_type=normal. - Upload to the returned TOS PUT URLs.
- Finalize the session.
- Pass its
reference_session_idtoseedance_generate_video.
User-uploaded portrait to Seedance
- Create an upload session with
workflow_type=portrait. - Upload and finalize.
- Call
seedance_prepare_portrait_asset. - When the asset is
Active, pass the returnedasset://...as animage_urlcontent item toseedance_generate_video.
The user is responsible for having the legal rights and authorization required to use uploaded real-person media.
Tests
python -m pytest -q
The default suite uses mocks and requires no production credentials. Tests cover config validation, secret masking, schemas, planning helpers, upload state, provider adapters, MCP tool discovery, and MCP initialize.
Live integration calls are intentionally not part of the default suite because they consume provider quota and require configured BytePlus resources.
Claude Desktop local verification
Claude Desktop can reach the Streamable HTTP server through a local bridge:
{
"mcpServers": {
"seedance-seedream": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://127.0.0.1:8000/mcp"
]
}
}
}
Restart Claude Desktop, confirm tool discovery, then try:
Create a 2K JPEG product hero image with Seedream.Open the upload flow for a normal image, then animate it with Seedance.Open the portrait upload flow, prepare the private asset, wait until it is Active, then create a five-second 9:16 video.
Expected results are structured tool outputs containing reference session IDs, provider task IDs, asset URIs when active, and suggested next actions.
See DEPLOY.md for veFaaS and API Gateway deployment.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。