OpenCode MCP Overview
OpenCode itself is good at reading code, modifying files, running commands, and explaining errors; MCP enables it to continue calling external tools within the same terminal session. Ace Data Cloud provides capabilities such as music, images, videos, search, and short links as hosted remote MCP Servers, so you do not need to start services locally or maintain different accounts for each tool.
This article is the overview entry point, mainly helping you determine: what OpenCode MCP can do, which service to connect first, and where to find detailed tutorials for each service. Specific configuration syntax, Token acquisition, and the differences between the global / project locations are explained in detail in each single-service article below.
If your OpenCode still cannot call models properly, please first see the OpenCode Terminal Configuration Tutorial. If you want to connect directly to Claude Code instead of OpenCode, please see the Claude Code MCP Overview.
Run opencode --version and select the corresponding version. Version 2.x places server definitions under mcp.servers, while version 1.x places them directly under mcp. Both can use opencode mcp list to check connections. OpenCode 2.x Documentation · 1.x Documentation
¶ Why Connect MCP in OpenCode
OpenCode is a fully open-source terminal coding Agent, and its strengths are "native terminal experience + any model can be switched." After connecting MCP, it can complete the long workflow of "finish coding → add README images → create release materials → search reference materials → shorten links for sharing," which would originally require switching between browsers and tools, entirely within the terminal session.
Compared with IDE-type tools, OpenCode is more suitable for:
- SSH remote development scenarios (MCP can be fully used even without a GUI)
- Using scripts/CI to combine MCP calls into automated workflows
- Engineers who prefer keyboard-driven workflows and do not want plugins blocking their screen
¶ Which MCP Servers Does Ace Data Cloud Provide
Use an Ace Data Cloud API Key that has permission to access the corresponding service. You can connect only one, or combine multiple according to your workflow.
| MCP Server | Type | Main Capabilities | Tutorial |
|---|---|---|---|
| Suno | AI Music | Songwriting, background music, lyrics, covers, continuation, vocal separation | View Tutorial |
| Flux | AI Image Generation | Fast image generation, commercial-grade images, Kontext image editing | View Tutorial |
| Seedream | AI Image Generation | Chinese prompt image generation, product images, posters, image editing | View Tutorial |
| NanoBanana | AI Image Editing | Product background replacement, virtual try-on, consistent editing of people/objects | View Tutorial |
| Luma | AI Video | Text-to-video, image-to-video, video extension, first and last frame control | View Tutorial |
| Veo | AI Video | Google Veo video, native audio, 1080p / 4K | View Tutorial |
| Seedance | AI Video | Action videos, short videos, dubbing, vertical assets | View Tutorial |
| Google Search | Real-time Search | Google web pages, images, news, maps, and video search | View Tutorial |
| ShortURL | Productivity Tool | Long URL to short URL, bulk short URLs, sharing link organization | View Tutorial |
¶ How to Choose
If you only want to first confirm that MCP works properly, it is recommended to start with Google Search MCP or ShortURL MCP: calls are fast, results are intuitive, and costs are low. When creating content and marketing materials, you can choose one image service from Flux / Seedream / NanoBanana; connect Luma / Veo / Seedance when you need videos; connect Suno when you need music or BGM.
¶ Where to Write the Configuration
OpenCode uses the same opencode.json to describe Providers and MCP. The two locations differ only in priority:
- Global:
~/.config/opencode/opencode.json, shared by all projects, suitable for "my own machine, configure it once." - Project-level:
opencode.jsonin the current project root directory, effective only for that project. For services with the same name, the definition in the project takes priority, suitable for team sharing or single-repository customization.
The following is the mcp.<name> configuration for OpenCode 1.x. The syntax is the same in both locations. See each service guide for the registration commands for 2.x.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"shorturl": {
"type": "remote",
"url": "https://shorturl.mcp.acedata.cloud/mcp",
"enabled": true,
"oauth": false,
"headers": { "Authorization": "Bearer {env:ACEDATACLOUD_API_KEY}" }
}
}
}
Field descriptions:
| Field | Description |
|---|---|
type |
Fixed as remote, representing a remotely hosted MCP Server |
url |
The corresponding service address provided by AceData |
enabled |
Whether to enable it; change it to false when temporarily disabling an MCP |
oauth |
This example uses an existing API Key; set it to false to skip interactive OAuth login |
headers.Authorization |
Bearer <token>; it is recommended to use the {env:ACEDATACLOUD_API_KEY} placeholder to reference the environment variable |
Start OpenCode from a terminal where ACEDATACLOUD_API_KEY has been set and exported, and the client will read the key when connecting.
Configuration examples will not include complete Tokens, and will only use formats such as YOUR_ACEDATACLOUD_API_KEY for display. Please save real Tokens only in your local configuration or private environment variables.
¶ Verify the Connection
After configuration, run:
opencode mcp list
If the target service displays connected, the handshake was successful. If it fails, check whether ACEDATACLOUD_API_KEY has been exported, the hosted address, and whether Authorization includes the Bearer prefix.
The model catalog and tool schemas will continue to change; select models that support native tool calling from the current model list, and enable only the MCPs required for the task. Do not fix the number of models or tools based on historical version snapshots.
¶ Common Workflows
¶ Write a README in the terminal and generate images along the way
Let OpenCode first understand your new feature's README draft, then call Flux / Seedream / NanoBanana to generate a banner, and finally paste the image URL directly back into the README.
¶ Troubleshoot issues on a remote server + search for information
After SSHing into the server, start opencode, let it combine local logs and the Google Search MCP to find matching community posts or issues, then use the ShortURL MCP to shorten the relevant links and send them to the group.
¶ End-to-end release asset creation
Let OpenCode use Suno to write a 30-second BGM based on the CHANGELOG, use Veo to generate a preview video, and use Flux to create a key visual, without leaving the terminal throughout the entire process.
¶ Next Steps
Select a service from the table above and enter its dedicated tutorial, then first get a single service working in the project's opencode.json. After confirming that opencode mcp list shows ✓ connected, decide whether to upgrade it to the global ~/.config/opencode/opencode.json, so that all projects can call it directly.
