Skip to main content
Glama
kira4094

Doubao Vision MCP Server

by kira4094

Doubao Vision MCP Server

npm version

火山方舟(Volcengine Ark)豆包系列 MCP Server:视觉理解 + Seedream 图像生成 + Seedance 视频生成,一套密钥全打通。

特性

  • 🖼️ 4 个工具:视觉理解 / 图像生成 / 视频提交 / 视频轮询

  • 🎬 Seedream 同步出图:图像几秒返回,无需轮询

  • 🎥 Seedance 两段式:异步提交 task_id → 轮询拿视频(MCP stdio 不超时)

  • 💬 自定义 prompt,支持中文/英文

  • 🔄 所有模型可用环境变量切换,代码零改动

  • ⚡ 一行 npx 部署

  • 💰 支持火山方舟赠送的免费 token

Related MCP server: Vision MCP Server

支持的模型

视觉理解

项目

说明

模型 ID

doubao-seed-2-0-mini-260428(默认,DOUBAO_MODEL 可换)

接入点

预置推理接入点(无需创建,直接填模型名)

模态

文本 + 图片 + 语音 + 视频

图像生成(Seedream)

项目

说明

模型 ID

doubao-seedream-5-0-lite-260128(默认,SEEDREAM_MODEL 可换)

图生图

doubao-seededit-3-0-i2i-250628SEEDREAM_I2I_MODEL,传 image 参数自动切换)

备选

doubao-seedream-5-0-pro-260628 / doubao-seedream-4-0-250828 / doubao-seedream-4-5-251128

视频生成(Seedance)

项目

说明

模型 ID

doubao-seedance-2-0-260128(默认,SEEDANCE_MODEL 可换)

备选

doubao-seedance-2-5-260628 / doubao-seedance-2-0-fast-260128 / doubao-seedance-2-0-mini-260615

⚠️ 注意

需在火山方舟控制台开通对应模型doubao-seedance-1-5-pro-251215 已退役(Retiring),API 不接受新任务

环境变量

变量

必填

默认值

说明

ARK_API_KEY

火山方舟 API Key。获取:控制台 → API Key 管理

DOUBAO_MODEL

doubao-seed-2-0-mini-260428

视觉模型名(预置接入点)或 ep-xxxxx

SEEDREAM_MODEL

doubao-seedream-5-0-lite-260128

Seedream 文生图模型

SEEDREAM_I2I_MODEL

doubao-seededit-3-0-i2i-250628

Seedream 图生图模型(传 image 时自动用)

SEEDANCE_MODEL

doubao-seedance-2-0-260128

Seedance 视频生成模型

DOUBAO_BASE_URL

https://ark.cn-beijing.volces.com/api/v3

API 地址,通常无需修改

开通模型(重要)

火山方舟控制台开通管理 开通需要的模型(通常有免费试用额度):

  • 图像生成:Doubao Seedream 系列

  • 视频生成:Doubao Seedance 系列(建议 2.0 / 2.5)

快速开始

npx 部署

{
  "mcpServers": {
    "doubao-vision": {
      "command": "npx",
      "args": ["-y", "doubao-vision-mcp-server"],
      "env": {
        "ARK_API_KEY": "ark-xxxxxxxxx-xxxxx"
      }
    }
  }
}

自定义模型

{
  "mcpServers": {
    "doubao-vision": {
      "command": "npx",
      "args": ["-y", "doubao-vision-mcp-server"],
      "env": {
        "ARK_API_KEY": "ark-xxxxxxxxx-xxxxx",
        "SEEDREAM_MODEL": "doubao-seedream-5-0-pro-260628",
        "SEEDANCE_MODEL": "doubao-seedance-2-5-260628"
      }
    }
  }
}

工具

doubao_vision_understand — 视觉理解

参数

必填

默认值

说明

image

本地图片路径 C:/img.png 或 URL

prompt

对图片的指令,越具体越好

detail

auto

图片精度:auto / low / high

max_tokens

4096

最大输出 token 数

temperature

1

采样温度(0~2)

doubao_seedream_generate — 图像生成(同步)

参数

必填

默认值

说明

prompt

图像描述(中英文皆可)

image

参考图(本地路径/URL),传了即图生图

size

分辨率,如 2048x20481920x1080

ratio

宽高比:1:1 / 3:4 / 4:3 / 16:9 / 9:16

n

1

生成数量

doubao_seedance_generate — 视频生成(异步提交)

参数

必填

默认值

说明

prompt

视频描述

image

参考图(图生视频)

resolution

分辨率(如 720p1080p

duration

时长(秒,模型支持范围 4~30)

返回 task_id,随后用 doubao_seedance_query 轮询。

doubao_seedance_query — 视频生成(轮询)

参数

必填

说明

task_id

doubao_seedance_generate 返回的任务 ID

返回 status(queued / running / succeeded / failed),succeeded 时给出视频下载 URL。

使用示例

分析这张 UI 截图:C:\screenshot.png,描述它的布局和配色方案

生成一张暖色调复古酒吧氛围图,两个人西装对话,电影胶片质感

用这张参考图生成一段 5 秒视频:角色转头看向镜头,微笑(会返回 task_id,再查询)

本地开发

git clone https://github.com/kira4094/doubao-vision-mcp-server.git
cd doubao-vision-mcp-server
npm install
node src/index.js

验证结果

能力

模型

结果

视觉理解

doubao-seed-2-0-mini-260428

图像生成(文生图)

doubao-seedream-5-0-lite-260128

✅ 实测出图

图像生成(图生图)

doubao-seededit-3-0-i2i-250628

✅ 模型已开通

视频生成

doubao-seedance-2-0-260128

⏳ 需控制台开通后启用

关联项目

Available Tools

1 tool
doubao_vision_understandC

Analyze an image using Doubao vision model via Volcengine Ark API. Supports both preset inference (model name) and custom inference (ep-xxxxx endpoint ID). Configure via DOUBAO_MODEL environment variable.

ParametersJSON Schema
NameRequiredDescriptionDefault
imageYesImage source: local file path (e.g. C:/path/to/screenshot.png) or URL (https://...)
promptYesWhat to ask about the image. Be specific for best results.
detailNoImage detail level. 'high' for fine-grained analysisauto
max_tokensNoMaximum output tokens
temperatureNoSampling temperature (0-2)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does not disclose authentication needs, rate limits, failure behaviors (e.g., invalid image), or the response format. Minimal behavioral information is provided beyond the basic API call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no wasted words. Information is front-loaded and efficiently communicates the core functionality and configuration option.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Missing output schema and behavioral details. The description does not explain what the tool returns or how to interpret results. For a vision analysis tool with multiple parameters, more context is needed for completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds little beyond the schema: it mentions image can be file path or URL and prompt specificity, but these are already in schema descriptions. The description does not explain how parameters interact or provide additional context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Analyze an image using Doubao vision model via Volcengine Ark API.' It mentions both preset and custom inference modes, providing good specificity. However, 'analyze' is somewhat broad, and without sibling tools, differentiation isn't needed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. It mentions configuration via environment variable as a prerequisite, but lacks context for optimal use cases or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observeddoubao_vision_understand

TDQS

B3.2/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is no ambiguity or overlap with other tools.

Naming Consistency5/5

With a single tool, naming consistency is not applicable; the name is clear and descriptive.

Tool Count3/5

One tool is on the low end of the range, but it is focused and covers the core image analysis task for a specialized vision server.

Completeness3/5

The tool covers image analysis, but the server lacks additional operations like image generation or batch processing that might be expected in a vision server.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables analysis of local images through Kimi (Moonshot AI) vision models via the MCP protocol, supporting features like OCR and long context understanding.
    37
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables image understanding and OCR through Xiaomi's MiMo vision language model, providing tools for image description, Q&A, and text recognition via MCP. Supports both image URLs and local file paths.
    -