Skip to main content

volcengine-ark-mcp

火山方舟的 MCP server。

PyPI Python License

简体中文 · English

调用火山方舟(Volcengine Ark)的 MCP server:Seedream 5.0 生成和编辑图片、Seedance 视频、对话与多模态理解、联网搜索和向量化,产物直接存到本地。

原名 seedream-mcp(PyPI 上该名已被他人占用),0.4 起改名,不保留旧命令和 SEEDREAM_* 环境变量。

0.6.2 修复 Responses 多轮 assistant 历史的消息类型;新增 Seedream lite 下线提示,并在官方截止时间后拒绝新生成。已有任务仍可恢复,不会自动替换成能力不同的模型。

0.6.0 去掉 query_video:视频进度统一用 get_job(job_id=...) 或 get_job(task_id=...) 查询,完成时自动下载;generate_image 新增 parameters。这是不兼容变更。

Seedream 图片生成

模型 参数 独有能力
Seedream 5.0 pro(默认) model="pro" → doubao-seedream-5-0-pro-260628 图层拆分、交互编辑、透明背景、fast 模式
Seedream 5.0 flash model="flash" → doubao-seedream-5-0-flash-260915 图层拆分、交互编辑、透明背景;不支持 fast 提示词优化
Seedream 5.0 lite model="lite" → doubao-seedream-5-0-260128 组图、联网搜索、3K / 4K

三个模型都支持文生图和单图 / 多图参考生图。模型不支持的参数组合会在本地直接报错,不发请求。

lite 下线与迁移

根据官方下线公告,doubao-seedream-5-0-260128 / doubao-seedream-5-0-lite-260128 将于 2026-11-24 14:00(UTC+8)关停,不会自动迁移。

model="lite" 保留原型号与能力;期限前生成结果和任务记录返回 model_lifecycle(下线时间、替代型号和能力差异),list_capabilities 也列出此信息。从该时刻起,别名及两个完整 ID 的新生成在本地返回 error_code="model_retired",不发请求、不创建任务。已有结果仍可用 get_job / recover_job 补交付。无法识别的 Endpoint ID 由服务端判断其真实型号。

普通生图可显式改用 pro(公告推荐型号)或 flash,将参考图减少到最多 10 张,尺寸改为 1K / 1.5K / 2K 或对应合法像素范围。组图、联网搜索、3K / 4K 暂无已核实的等价替代;pro/flash 不支持这些选项,不能通过更改别名保持原功能。

安装

uv tool install volcengine-ark-mcp

命令装在 ~/.local/bin/volcengine-ark-mcp。各客户端的配置方法见 仓库 README。

环境变量

变量 说明
ARK_API_KEY 必需,方舟控制台 › API Key 管理
ARK_OUT_DIR 输出目录,默认 ~/Downloads/volcengine-ark
ARK_RESOURCE_MODE 交付方式:local(默认)下载到本地,url 只返回 24 小时内有效的链接
ARK_JOB_DIR 任务记录目录,默认 ~/.local/share/volcengine-ark-mcp/jobs
ARK_BASE_URL 默认 https://ark.cn-beijing.volces.com/api/v3

参数说明见工具描述(src/volcengine_ark_mcp/server.py),接口细节以图片生成 API 文档为准。

0.3 方舟扩展(待云端验证)

保留原有生图工具,同时接入方舟其他能力,无需新建 MCP 配置。

工具 能力 官方来源
generate_video Seedance 文生、首帧、首尾帧、多模态参考视频 创建任务、查询任务
chat 语言、图片 / 视频理解、深度思考、结构化输出 Chat、Responses
chat(web_search=true) 联网搜索,保留来源和完整响应 Web Search
embed 文本与多模态向量化 向量化、多模态 API
list_capabilities 静态能力目录和边界 不联网,不代表账号权限
list_jobs / get_job / recover_job 查任务进度(视频生成中会查询方舟并在完成时下载)、补交付 图片和视频留档,跨进程重启恢复

Seedance 视频

模型别名:seedance → doubao-seedance-2-5-260628;seedance-2 / seedance-fast / seedance-mini → 相应 2.0 系列。也可直接指定完整模型 ID 或 Endpoint ID。不同模型的素材数量、时长、分辨率限制以官方接口为准。

默认 wait=0,提交后返回 task_id、job_id。get_job(job_id=..., wait=30) 查询进度,完成后下载到原目录;别处提交的任务可传 get_job(task_id=...),首次查询会新建本地记录。下载失败或链接过期用 recover_job(job_id=...)。都不会提交新生成。

图片支持本地路径 / data URL / 公网 URL;视频和音频参考使用公网 URL 或 asset:// ID。本轮没有自动上传本地视频 / 音频。

2.5 首帧 / 首尾帧任务 ratio=adaptive;输出时长为 4–30 秒,2.0 系列为 4–15 秒,均可用 duration=-1。首尾帧与全模态参考不能混用;2.0 系列不能仅传音频。

2.0 标准版支持 4k,fast / mini 仅 480p / 720p。视频编辑通过 prompt 明确意图,duration=-1、ratio=adaptive;可用 parameters.omni_reference_task_type="edit" 提前校验任务类型,省略 duration 采用官方默认值。

parameters 可传官方顶层选项,如 draft、return_last_frame、output_format;不能覆盖模型和输入素材。

draft=true 只支持 resolution="480p",Draft 任务 ID 自 created_at 起有效:2026-10-28 10:00(UTC+8)及之后创建的为 14 天,此前创建的仍为 7 天;其他视频任务 ID 为 7 天。本工具可创建和查询 Draft,尚不支持通过 content.draft_task 转正式视频;该流程不能仅通过 parameters 接入。

对话与检索

chat 默认 pro 为 doubao-seed-2-1-pro-260628,也可显式指定模型;与生图工具中的 pro 别名含义不同。

images 支持本地图片,videos 须公开 URL。不开搜索时使用 Chat API;开启 web_search 或提供 previous_response_id 时使用 Responses API。

多轮历史采用 Chat 消息结构;Responses 在副本中转换内容,assistant 的 output_text 消息显式携带 type="message",不会修改调用者的 history。保留 response_id、来源注解;完整响应用 include_response=true 按需获取。thinking=true/false 对应 enabled/disabled,2026-10-22 的 Chat/Responses API 已不再列出 thinking.type="auto"。parameters 透传模型支持的高级选项,不执行模型返回的工具调用。联网搜索前须开通相应搜索组件。

可显式传入目录新增的 deepseek-v4-1-flash-261017、deepseek-v4-1-flash-economy-261017;默认 pro 保持不变。这仅表示请求支持完整模型 ID,不代表账号权限或云端结果已验证。kimi-k3-1-pro-261024(Chat / Responses / Messages API)同样传完整模型 ID 即可;官方限制 temperature 只能为 1.0、top_p 只能为 0.95、frequency_penalty / presence_penalty 只能为 0.0、停止词最多 5 个,传入其他值会报错。chat 默认不注入这些参数,需要时用 temperature / parameters 显式传入合法值。Chat API 新增的 web_search_options 本工具未使用,web_search=true 仍走 Responses API。目录新增的 System One API(beta)决策评估是独立接口,本工具尚未接入。

向量工具须显式指定模型:texts 为文本列表;contents 为官方类型化数组,例如:

[{"type":"text","text":"猫"},{"type":"image_url","image_url":{"url":"/absolute/cat.png"}}]

返回 data、usage,完整响应用 include_response=true 按需获取;不自动建索引或知识库。

本地恢复

ARK_JOB_DIR 默认 ~/.local/share/volcengine-ark-mcp/jobs。生成前创建记录,响应收到后保留完整响应,内联图片先缓存再交付。

组图逐项记录错误,下载失败可单独补交付;图层记录和 layers.json 随恢复更新。部分生成失败会返回 partial,不会重新生成失败项。

视频保存原 task_id,通过云端查询刷新 URL。临时 URL 或云端任务过期可能无法恢复。

返回 job_id、job_state、request_id 和 artifacts。ok 表示本次调用成功;已提交、运行中返回 ok=true, completed=false,全部交付返回 completed=true,执行错误通过 MCP isError=true 返回。

get_job.ok 是记录读取成功;调用超时没拿到 ID 时可用 list_jobs 按时间查找。保留原有 files、layers、usage、errors 字段。

每项产物记录字节数和 SHA-256;下载采用临时文件和原子替换。质量、像素尺寸和媒体播放仍需后续验证。

url 模式也留存任务元数据;任务目录保存签名 URL、响应与图片缓存,不保存 API Key。缓存用于恢复,不自动清理。恢复锁使用 POSIX flock,面向 macOS / Linux。产物默认目录增加随机后缀,避免同秒调用碰撞。

原始接入范围见 接入记录。当前运行时和任务恢复已通过离线故障测试及真实 stdio 检查;尚未验证云端生成、账号权限和媒体质量。

产物的 media_info 读取 PNG 头中的实际宽高;若系统已有 ffprobe,可读取其他媒体的实际尺寸、时长和音轨信息。不可读取时显式返回 available=false,不把请求参数当作实际输出规格。无需新增 Python 依赖。

运行时与稳定性

共享连接池、总超时、工具分组、错误语义和迁移说明见 MCP 构建与稳定性。完整工具说明可调用 get_tool_help(tool="工具名")。

官方接口核实

逐工具映射、模型版本、参数差异和可程序化获取的官方文档来源见 火山方舟接口审计。2026-10-23 重抓 17/17 官方来源,完成 Responses 历史、lite 下线边界与恢复的离线回归;账号权限及实际云端生成仍未验证。

许可证

MIT © 2026 hoobnn。可自由使用、修改和分发,需保留版权声明。

Metadata

Release files for volcengine-ark-mcp 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for volcengine-ark-mcp 0.6.3
File Size Uploaded Provenance Actions
volcengine_ark_mcp-0.6.3.tar.gz 40.5 kB With provenance Details for volcengine_ark_mcp-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for volcengine-ark-mcp 0.6.3
File Interpreter ABI Platform Actions
volcengine_ark_mcp-0.6.3-py3-none-any.whl Python 3 none any Details for volcengine_ark_mcp-0.6.3-py3-none-any.whl

Total release size: 80.3 kB

Release files / volcengine_ark_mcp-0.6.3.tar.gz

Download URL volcengine_ark_mcp-0.6.3.tar.gz
Size 40.5 kB
Tags Source
SHA-256 checksum
How to use checksums
37b80a3fffa0c710556b6fc3473388b6244876b14ac2a7cdbb775010f724053a
BLAKE2b-256 checksum
How to use checksums
e979b8fd0f0ea1db2e67c4451314f28a40345f3c515db34c07849827a43fa8af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / volcengine_ark_mcp-0.6.3-py3-none-any.whl

Download URL volcengine_ark_mcp-0.6.3-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53e6069838272d54272ce19bd7a4fc7810c3b5d654c1c69b43114c0ac87e1f2e
BLAKE2b-256 checksum
How to use checksums
f313fc68df19b172e0b524a2210612015f19997576d9f75284658a510167f80f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for volcengine-ark-mcp 0.6.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for volcengine_ark_mcp-0.6.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page