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.1.tar.gz (5.4 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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for doubao_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac6b1dc71807a5779dcd48928d2d8ba508972f12784ef6c0d3c38c55b601dad3
MD5 05f5b5e16909c503fc3f284a1a806ede
BLAKE2b-256 df191a40b53077744917a26d03ca055bdc50a967422512719ca1d7229faedb20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: doubao_mcp-0.1.1-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.14.0

File hashes

Hashes for doubao_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e8fe6851e83c24b90b305a163e70ad47415741a31452e8bb25f51322b4d91a
MD5 80226149c77299cb56dd18d62a3fe0de
BLAKE2b-256 868cc1eeed12697c147c169f642b7384ec6eb650be55efd38425c9e876c7a91b

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