SeedanceMCP
SeedanceMCP
一个用于 AI 视频生成的 Model Context Protocol (MCP) 服务器,通过 AceDataCloud API 使用 字节跳动 Seedance。
直接从 Claude、VS Code 或任何兼容 MCP 的客户端生成 AI 视频。
功能特性
文生视频 (Text to Video) - 根据文本提示词创建 AI 生成的视频
图生视频 (Image to Video) - 通过首帧、尾帧和参考图像控制来为图像添加动画
多种模型 - 支持 Seedance 1.5 Pro、1.0 Pro、1.0 Pro Fast、1.0 Lite T2V/I2V
多种分辨率 - 支持 480p、720p(默认)和 1080p 输出
灵活的宽高比 - 16:9、9:16、1:1、4:3、3:4、21:9 以及自适应
音频生成 - 为视频生成同步音频 (1.5 Pro)
服务层级 - 支持默认(优先)和 Flex(高性价比)处理模式
任务追踪 - 监控生成进度并获取结果
工具参考
工具 | 描述 |
| 使用字节跳动 Seedance 根据文本提示词生成 AI 视频。 |
| 使用字节跳动 Seedance 通过参考图像生成 AI 视频。 |
| 查询视频生成任务的状态和结果。 |
| 同时查询多个视频生成任务。 |
| 列出所有可用的 Seedance 模型及其功能和定价。 |
| 列出 Seedance 所有可用的分辨率和宽高比。 |
| 列出所有可用的 Seedance API 操作及对应的工具。 |
快速开始
1. 获取 API Token
在 AceDataCloud 平台 注册
前往 API 文档页面
点击 “获取 (Acquire)” 以获取您的 API Token
复制该 Token 以供下方使用
2. 使用托管服务器(推荐)
AceDataCloud 提供托管的 MCP 服务器 — 无需本地安装。
端点: https://seedance.mcp.acedata.cloud/mcp
所有请求都需要 Bearer Token。请使用第 1 步中获取的 API Token。
Claude.ai
通过 OAuth 直接在 Claude.ai 上连接 — 无需 API Token:
前往 Claude.ai 设置 (Settings) → 集成 (Integrations) → 添加更多 (Add More)
输入服务器 URL:
https://seedance.mcp.acedata.cloud/mcp完成 OAuth 登录流程
开始在对话中使用这些工具
Claude Desktop
添加到您的配置文件(macOS 上为 ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cursor / Windsurf
添加到您的 MCP 配置文件 (.cursor/mcp.json 或 .windsurf/mcp.json):
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}VS Code (Copilot)
添加到您的 VS Code MCP 配置文件 (.vscode/mcp.json):
{
"servers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}或者为 VS Code 安装 Ace Data Cloud MCP 扩展,该扩展一键集成了所有 15 个 MCP 服务器。
JetBrains IDEs
前往 设置 (Settings) → 工具 (Tools) → AI Assistant → Model Context Protocol (MCP)
点击 添加 (Add) → HTTP
粘贴:
{
"mcpServers": {
"seedance": {
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Claude Code
Claude Code 原生支持 MCP 服务器:
claude mcp add seedance --transport http https://seedance.mcp.acedata.cloud/mcp \
-h "Authorization: Bearer YOUR_API_TOKEN"或者添加到项目的 .mcp.json 中:
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cline
添加到 Cline 的 MCP 设置 (.cline/mcp_settings.json):
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Amazon Q Developer
添加到您的 MCP 配置中:
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Roo Code
添加到 Roo Code 的 MCP 设置中:
{
"mcpServers": {
"seedance": {
"type": "streamable-http",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Continue.dev
添加到 .continue/config.yaml:
mcpServers:
- name: seedance
type: streamable-http
url: https://seedance.mcp.acedata.cloud/mcp
headers:
Authorization: "Bearer YOUR_API_TOKEN"Zed
添加到 Zed 的设置 (~/.config/zed/settings.json):
{
"language_models": {
"mcp_servers": {
"seedance": {
"url": "https://seedance.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
}cURL 测试
# Health check (no auth required)
curl https://seedance.mcp.acedata.cloud/health
# MCP initialize
curl -X POST https://seedance.mcp.acedata.cloud/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'3. 或者本地运行(替代方案)
如果您更喜欢在自己的机器上运行服务器:
# Install from PyPI
pip install mcp-seedance
# or
uvx mcp-seedance
# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"
# Run (stdio mode for Claude Desktop / local clients)
mcp-seedance
# Run (HTTP mode for remote access)
mcp-seedance --transport http --port 8000Claude Desktop (本地)
{
"mcpServers": {
"seedance": {
"command": "uvx",
"args": ["mcp-seedance"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_token_here"
}
}
}
}Docker (自托管)
docker pull ghcr.io/acedatacloud/mcp-seedance:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-seedance:latest客户端使用各自的 Bearer Token 进行连接 — 服务器会从每个请求的 Authorization 标头中提取 Token。
可用工具
视频生成
工具 | 描述 |
| 根据文本提示词生成视频 |
| 使用参考/起始/结束图像生成视频 |
任务
工具 | 描述 |
| 查询单个任务状态 |
| 同时查询多个任务 |
信息
工具 | 描述 |
| 列出可用的 Seedance 模型 |
| 列出可用的输出分辨率 |
| 列出可用的 API 操作 |
使用示例
根据提示词生成视频
User: Create a video of a cat playing with a ball of yarn
Claude: I'll generate a video for you.
[Calls seedance_generate_video with prompt="A cute cat playfully batting a ball of yarn"]为图像添加动画
User: Turn this image into a video: https://example.com/landscape.jpg
Claude: I'll create a video from your image.
[Calls seedance_generate_video_from_image with first_frame_url and appropriate prompt]生成带音频的视频
User: Create a video of rain falling with sound
Claude: I'll generate a video with synchronized audio.
[Calls seedance_generate_video with prompt="Rain falling on a quiet street" and generate_audio=True, model="doubao-seedance-1-5-pro-251215"]可用模型
模型 | 描述 | 功能 |
| 1.5 Pro | 音频生成, T2V, I2V |
| 1.0 Pro (默认) | 高质量 T2V, I2V |
| 1.0 Pro Fast | 更快的生成速度 |
| 1.0 Lite T2V | 轻量级文生视频 |
| 1.0 Lite I2V | 轻量级图生视频 |
可用宽高比
宽高比 | 描述 | 使用场景 |
| 横屏 (默认) | YouTube, 电视, 演示文稿 |
| 竖屏 | TikTok, Instagram Reels |
| 正方形 | Instagram 帖子 |
| 传统 | 经典视频格式 |
| 传统竖屏 | 竖屏内容 |
| 超宽屏 | 电影内容 |
| 自适应 | 从图像自动检测 |
配置
环境变量
变量 | 描述 | 默认值 |
| 来自 AceDataCloud 的 API Token | 必填 |
| API 基础 URL |
|
| OAuth 客户端 ID (托管模式) | — |
| 平台基础 URL |
|
| 默认模型 |
|
| 默认分辨率 |
|
| 默认宽高比 |
|
| 默认时长 (秒) |
|
| 请求超时 (秒) |
|
| 日志级别 |
|
命令行选项
mcp-seedance --help
Options:
--version Show version
--transport Transport mode: stdio (default) or http
--port Port for HTTP transport (default: 8000)开发
设置开发环境
# Clone repository
git clone https://github.com/AceDataCloud/SeedanceMCP.git
cd SeedanceMCP
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
# Install with dev dependencies
pip install -e ".[dev,test]"运行测试
# Run unit tests
pytest
# Run with coverage
pytest --cov=core --cov=tools
# Run integration tests (requires API token)
pytest tests/test_integration.py -m integration代码质量
# Format code
ruff format .
# Lint code
ruff check .
# Type check
mypy core tools构建与发布
# Install build dependencies
pip install -e ".[release]"
# Build package
python -m build
# Upload to PyPI
twine upload dist/*项目结构
SeedanceMCP/
├── core/ # Core modules
│ ├── __init__.py
│ ├── client.py # HTTP client for Seedance API
│ ├── config.py # Configuration management
│ ├── exceptions.py # Custom exceptions
│ ├── server.py # MCP server initialization
│ ├── types.py # Type definitions
│ └── utils.py # Utility functions
├── tools/ # MCP tool definitions
│ ├── __init__.py
│ ├── video_tools.py # Video generation tools
│ ├── task_tools.py # Task query tools
│ └── info_tools.py # Information tools
├── prompts/ # MCP prompts
│ └── __init__.py # Prompt templates
├── tests/ # Test suite
│ ├── conftest.py
│ ├── test_client.py
│ ├── test_config.py
│ ├── test_integration.py
│ └── test_utils.py
├── deploy/ # Deployment configs
│ └── production/
│ ├── deployment.yaml
│ ├── ingress.yaml
│ └── service.yaml
├── .env.example # Environment template
├── .gitignore
├── CHANGELOG.md
├── Dockerfile # Docker image for HTTP mode
├── docker-compose.yaml # Docker Compose config
├── LICENSE
├── main.py # Entry point
├── pyproject.toml # Project configuration
└── README.mdAPI 参考
此服务器封装了 AceDataCloud Seedance API:
Seedance 视频 API - 视频生成
Seedance 任务 API - 任务查询
贡献
欢迎贡献代码!请:
Fork 本仓库
创建功能分支 (
git checkout -b feature/amazing)提交更改 (
git commit -m 'Add amazing feature')推送到分支 (
git push origin feature/amazing)开启 Pull Request
许可证
MIT 许可证 - 详情请参阅 LICENSE。
链接
由 AceDataCloud 用心制作
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/MCPSeedance'
If you have feedback or need assistance with the MCP directory API, please join our Discord server