Connecting Codex CLI to Suno MCP
📘 Complete guide: Use Ace Data Cloud MCP in Codex CLI →
Suno supports generating songs from lyrics or style descriptions. After connecting it to Codex CLI through MCP, you can write songs, create BGM, extend songs, create covers, or extract vocals in a conversation.
¶ Get an API Token
Log in to the application list, open General Application, and click the copy button to the right of API KEY. For detailed steps, see the complete guide.

¶ Configuration
Edit the configuration: ~/.codex/config.toml
[mcp_servers.suno]
url = "https://suno.mcp.acedata.cloud/mcp"
type = "http"
http_headers = { "Authorization" = "Bearer 你的Token" }
After saving, the Suno tools will load automatically when your next codex session starts.
¶ Usage Examples
Help me write a 30-second upbeat Chinese pop song about "going camping with friends on the weekend"
Use Suno to create some lofi hip hop BGM for a programming tutorial video, with no vocals
Extend this song (link xxx) from 30 seconds to 90 seconds, keeping the original melodic style
¶ Tools
| Tool | Description |
|---|---|
| generate | Generate a song from a description |
| custom | Generate a song with custom lyrics + style |
| extend | Extend an existing song |
| cover | Create a cover in a new style |
| lyrics | Generate lyrics only |
| upload_to_persona | Register a Persona using vocal audio |
| query | Query previous generation results |
