loading…
Search for a command to run...
loading…
Integrates Volcengine's Ark API to provide image and video generation and editing capabilities. It supports both local stdio and remote HTTP transport modes for
Integrates Volcengine's Ark API to provide image and video generation and editing capabilities. It supports both local stdio and remote HTTP transport modes for flexible deployment and use.
一个基于火山方舟(Ark)API 的 MCP 服务,提供:
stdio 与远程 http 两种接入模式| 能力 | 状态 | 说明 |
|---|---|---|
| 图片生成/编辑 | 可用 | 基于 POST /api/v3/images/generations |
| 视频生成 | 可用 | 基于 POST /api/v3/contents/generations/tasks + 查询任务 |
| 本地接入 | 可用 | StdioServerTransport |
| 远程接入 | 可用 | StreamableHTTPServerTransport |
pnpm install
pnpm build
| 变量名 | 必填 | 默认值 | 说明 |
|---|---|---|---|
ARK_API_KEY |
是 | - | 火山方舟 API Key |
MCP_TRANSPORT |
否 | stdio |
传输模式:stdio 或 http |
MCP_HTTP_HOST |
否 | 0.0.0.0 |
http 模式监听地址 |
MCP_HTTP_PORT |
否 | 3000 |
http 模式监听端口 |
MCP_HTTP_PATH |
否 | /mcp |
http 模式 MCP 路径 |
可在项目根目录创建 .env:
ARK_API_KEY=your_ark_api_key
MCP_TRANSPORT=stdio
pnpm build
node build/index.js
PowerShell 示例:
$env:ARK_API_KEY="your_ark_api_key"
$env:MCP_TRANSPORT="http"
$env:MCP_HTTP_HOST="0.0.0.0"
$env:MCP_HTTP_PORT="3000"
$env:MCP_HTTP_PATH="/mcp"
node build/index.js
服务启动后地址示例:
http://127.0.0.1:3000/mcp
{
"mcpServers": {
"jimenggen": {
"command": "node",
"args": [
"/path/to/jimenggen-mcp/build/index.js"
],
"env": {
"ARK_API_KEY": "your_ark_api_key",
"MCP_TRANSPORT": "stdio"
}
}
}
}
不同客户端配置字段可能不同,核心是把 MCP 服务地址指向:
http://your-host:3000/mcp
| 工具名 | 用途 |
|---|---|
text-to-image |
文生图 |
image-to-image |
图生图 |
generate-image |
通用图片生成/编辑(支持 URL 与上传文件) |
generate-img-seedream4 |
直接调用 Seedream API 生成图片 |
generate-video |
视频生成(异步任务,内置轮询) |
generate-digital-humanaction-imitationimage-dressingdoubao-seedream-5-0-lite-260128(默认)doubao-seedream-5-0-260128doubao-seedream-4-5-251128doubao-seedream-4-0-250828doubao-seedance-1-5-pro-251215(默认)doubao-seedance-1-0-pro-250528doubao-seedance-1-0-pro-fast-251015doubao-seedance-1-0-lite-t2v-250428doubao-seedance-1-0-lite-i2v-250428generate-video 使用异步任务流程:
POST /contents/generations/tasksGET /contents/generations/tasks/{id}content.video_url任务状态:
queuedrunningsucceededfailedexpired主要参数:
| 参数 | 类型 | 说明 |
|---|---|---|
prompt |
string | 必填,视频提示词 |
model |
string | 可选,默认 doubao-seedance-1-5-pro-251215 |
duration |
5/10 |
可选,默认 5 秒 |
ratio |
enum | 可选:adaptive、16:9、4:3、1:1、3:4、9:16、21:9 |
imageUrl |
string | 可选,首帧图 URL(图生视频) |
generate_audio |
boolean | 可选,默认 true |
watermark |
boolean | 可选,默认 false |
callback_url |
string | 可选,任务状态回调地址 |
poll_interval_ms |
number | 可选,默认 10000 |
max_poll_attempts |
number | 可选,默认 60 |
兼容参数映射:
frames=121 映射为 duration=5frames=241 映射为 duration=10aspect_ratio 在值合法时映射到 ratio说明:根据官方文档,Seedance 2.0 当前仅支持控制台体验,暂不支持 API 调用。
ARK_API_KEY请确认环境变量已设置,并且启动进程能读取该变量。
http 模式返回 404请检查客户端访问路径是否与 MCP_HTTP_PATH 一致,默认是 /mcp。
可适当调大 max_poll_attempts,或增大 poll_interval_ms 后重试。
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"seedream-seedance-mcp-server": {
"command": "npx",
"args": []
}
}
}