Connect ACE Music in Gemini CLI

Install uv, obtain an application API Key with access to ACE Music from API Credential Management. Set the environment variable ACEDATACLOUD_API_TOKEN in the terminal where you launch Gemini CLI, and merge the following entry into mcpServers in ~/.gemini/settings.json. env passes the terminal variable to the local server.

{
  "mcpServers": {
    "acemusic": {
      "command": "uvx",
      "args": ["mcp-acemusic"],
      "env": {"ACEDATACLOUD_API_TOKEN": "${ACEDATACLOUD_API_TOKEN}"}
    }
  }
}

Run gemini from the same terminal, and enter /mcp list to view the server and tools. Ask Gemini to call acemusic_list_models to confirm the connection. If you need to retrieve a work, provide it with the original task ID and call acemusic_get_task; querying does not require submitting the song again.

Gemini CLI MCP Configuration · ACE Music MCP Tools and Billing