Seedance / Seedream MCP

Seedance / Seedream MCP

MCP server for BytePlus generative media: Seedream image generation, Seedance video generation, media staging (TOS), and private portrait asset management.

Category
访问服务器

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_set
  • creative_resolve_video_preset

Media and reference state:

  • media_start_upload_session
  • media_finalize_upload_session
  • media_get_upload_session
  • media_import_generated_asset

Generation and portrait preparation:

  • seedream_generate_image
  • seedance_generate_video
  • seedance_prepare_portrait_asset
  • seedance_get_portrait_asset_status

Task control and diagnostics:

  • generation_get_task
  • generation_list_tasks
  • generation_cancel_task
  • system_get_runtime_config
  • system_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

  1. Optionally stage reference images and finalize the upload session.
  2. Call seedream_generate_image.
  3. Reuse the returned reference_session_id directly with Seedance. Outputs generated by ModelArk are trusted and do not need private-asset conversion.

Normal media to Seedance

  1. Create an upload session with workflow_type=normal.
  2. Upload to the returned TOS PUT URLs.
  3. Finalize the session.
  4. Pass its reference_session_id to seedance_generate_video.

User-uploaded portrait to Seedance

  1. Create an upload session with workflow_type=portrait.
  2. Upload and finalize.
  3. Call seedance_prepare_portrait_asset.
  4. When the asset is Active, pass the returned asset://... as an image_url content item to seedance_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:

  1. Create a 2K JPEG product hero image with Seedream.
  2. Open the upload flow for a normal image, then animate it with Seedance.
  3. 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

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选