Connect OpenCode to MusicGPT
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in MusicGPT
A preset of real MusicGPT operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect MusicGPT
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
MusicGPT
16 toolsCheck a submitted conversion and obtain its status and result URLs.
List available MusicGPT voice models and IDs.
Search for voice models by name.
Generate original lyrics from a description.
Queue a song generation using a prompt or custom lyrics and style.
Queue a song generation with a selectable MusicGPT model.
Queue speech synthesis with an optional voice model or reference audio.
Queue sound generation from a text description.
Queue audio stem separation using a preset or a list of stems.
Queue a remix of existing audio using a prompt and optional lyrics.
Queue detection of musical key, tempo, and key changes.
Queue removal of background noise.
Queue removal of echo from audio.
Queue removal of reverberation from audio.
Queue speech transcription with optional English translation.
Queue conversion to a different audio file format.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use MusicGPT with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with MusicGPT wired in as tools. Connect your account and run.