Skip to main content

MCP server that wraps the Doubao generation API.

Project description

Doubao MCP Server

MCP server that exposes tools for creating and querying Doubao generation tasks via the doubao-seedance-1-0-pro-250528 model.

Prerequisites

  • Python 3.10+
  • Conda environment doubao-mcp (or any environment with the dependencies installed)
  • Doubao Ark API key exported as ARK_API_KEY

Installation

conda activate doubao-mcp
pip install -e .

Running the server

  1. Set the API key before launching:

    $env:ARK_API_KEY = "<your_api_key>"
    
  2. Start the MCP server (stdio):

    doubao-mcp-server
    

    or run the module directly:

    python -m doubao_mcp.server
    

Tool reference

create_viceo

Parameter Type Description
text str Required text prompt describing the video storyline.
ratio str? Optional ratio (for example 16:9).
resolution str? Optional resolution such as 720p or 1080p.
duration int? Optional duration in seconds.
frames_per_second int? Optional frame rate.
seed int? Optional deterministic seed.

Returns a structured payload containing the task id, the exact request JSON (only documented fields are sent), the raw Doubao response, plus formatted_request/formatted_response strings for easy viewing.

get_video_result

Parameter Type Description
task_id str Doubao task id returned by create_viceo.

Returns both the raw JSON payload from GET https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks/<task_id> and a formatted_response string.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doubao_mcp-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doubao_mcp-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file doubao_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: doubao_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for doubao_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7583fc73fb496cf28e24dfc2d91eaee6d7eb815858e06e4eea40b6008ad027e6
MD5 f47170e4ebd206954a5001fe5e1fb9b8
BLAKE2b-256 a20bb2811ef30749f78da40aa1623dbc6aea6eee74605483a68027cb00ba1ae8

See more details on using hashes here.

File details

Details for the file doubao_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: doubao_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for doubao_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce7c1599473bfa749eb9401471318cc52f9ce94a6e79b89963d692d73fcc2676
MD5 8c573d409d36499c2586aecd83e0076f
BLAKE2b-256 40e46465b23b2b6936d423ee5ba02dd2ae222b0954613cf6ea9854954362ba5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page