OpenCode Integration with Seedance MCP
📘 Overview: OpenCode MCP Overview →
Seedance performs particularly consistently in “short videos / vertical materials / action performances,” and can generate completed videos with audio in one go, making it highly suitable for direct use as social media content. After connecting the Seedance MCP Server in OpenCode, you can go directly from a one-sentence requirement to an animated video, eliminating the intermediate steps of editing and voice-over.
Seedance MCP is suitable for “short and impactful” video scenarios such as Reels / Douyin / Xiaohongshu short videos, product demo animations, technical-sharing opening videos, and more.
¶ Obtain an API Token
Before using the Seedance MCP Server, you need to prepare an Ace Data Cloud API Token. OpenCode and Claude Code share the same set of Tokens, and the acquisition process is the same:
- Open the Ace Data Cloud Console - Application List, obtain your API Token, and keep it for later use.
- If you have not yet logged in or registered, you will be automatically redirected to the login page; after logging in or registering, you will automatically return to the current page.
- Confirm that the key is allowed to access the required APIs, and check the balance and limits in the console.

The API Key for general applications can be reused within its authorization scope. Documentation and screenshots are recommended to display only a masked format, such as YOUR_ACEDATACLOUD_API_KEY; do not paste the complete Token into public repositories, Issues, screenshots, or chat records.
Want to use Claude Desktop / the Claude.ai web version for direct one-click OAuth authorization? See the Seedance MCP Claude.ai / Desktop tutorial.
¶ Configure OpenCode
First run opencode --version. For 2.x users, after setting ACEDATACLOUD_API_KEY in the terminal, execute the following commands.
opencode mcp add seedance --global --url https://seedance.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_KEY}'
opencode reload
opencode mcp list
¶ OpenCode 1.x Configuration
OpenCode uses one opencode.json file to describe all MCP Servers. The file can be placed in two locations; choose one according to the “scope” below. The field structures in both locations are exactly the same; the only difference is priority.
It is strongly recommended to first write the Token into an environment variable:
export ACEDATACLOUD_API_KEY="replace with your real Token"
Then reference it in opencode.json using the {env:ACEDATACLOUD_API_KEY} placeholder to avoid writing the real Token into the file.
¶ Global: Shared Across All Projects
File location: ~/.config/opencode/opencode.json, suitable for “my own machine, configure it once, and use it in all projects.”
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"seedance": {
"type": "remote",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"enabled": true,
"oauth": false,
"headers": { "Authorization": "Bearer {env:ACEDATACLOUD_API_KEY}" }
}
}
}
Bearer API Key is used here.
"oauth": falsemakes OpenCode send request headers according to this configuration.
¶ Project Level: Effective Only for the Current Project
File location: opencode.json in the root directory of the current project. For services with the same name, the definition in the project takes priority. Suitable for team sharing, single-repository customization, or temporarily enabling a certain MCP only within a particular project.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"seedance": {
"type": "remote",
"url": "https://seedance.mcp.acedata.cloud/mcp",
"enabled": true,
"oauth": false,
"headers": { "Authorization": "Bearer {env:ACEDATACLOUD_API_KEY}" }
}
}
}
If the project-level opencode.json will be committed to Git, make sure to use the {env:ACEDATACLOUD_API_KEY} placeholder instead of the real Token to avoid leaks.
Please start OpenCode from a terminal where this environment variable has already been set and exported.
¶ Verify the Connection
After configuration, run:
opencode mcp list
Seeing seedance connected means the handshake was successful. If it fails, check whether ACEDATACLOUD_API_KEY has been exported, the hosting address, and whether Authorization includes the Bearer prefix. Models and tool Schemas continuously change; please select a model from the current directory that supports native tool calling.
¶ Typical Scenarios
After configuration is complete, you can directly call it using natural language in the OpenCode session, without first switching to /mcp:
Text-to-Video
Generate a vertical short video: a girl turns around under cherry blossom trees, slow motion, beautiful lighting and shadows
Image-to-Video
Use this image as the cover and generate a video with the camera slowly pushing in
Generate a Video Intro
Generate a 3-second video intro: a glowing code symbol </> becomes clear from blur, with particle effects in the background, in a technological blue color palette
¶ Tool List
The table below lists commonly used tools. For full names, see the real-time tool list of the hosted service.
| Tool | Description |
|---|---|
| seedance_generate_video | Text-to-video generation |
| seedance_generate_video_from_image | Image-to-video generation |
