ACE Music MCP Integration Guide

ACE Music MCP lets AI clients that support the Model Context Protocol call tools for song creation, reference audio upload, covers, dual-reference fusion, lyric generation, and task queries. You can first ask the assistant to write lyrics and generate a song after confirming them, or continue creating with your own reference track.

Before You Connect

The hosted service address is https://acemusic.mcp.acedata.cloud/mcp. If your client uses an API Key, sign in to the application list, open the General Application, and click the copy button to the right of API KEY. If you use a restricted key, check which ACE Music APIs it is permitted to access.

Get an Ace Data Cloud API Key

The local stdio method requires uv to be installed first. The client starts the PyPI package with uvx mcp-acemusic and reads ACEDATACLOUD_API_TOKEN from the local configuration. Select your client from the page contents and use the corresponding configuration.

Claude Desktop

Use the Hosted Connector

  1. In Claude Desktop, open Customize → Connectors and select Add → Add custom connector. For a team workspace, an administrator with the appropriate permissions must add the connector first.
  2. Enter ACE Music as the name and https://acemusic.mcp.acedata.cloud/mcp as the address. Follow the prompts to connect your Ace Data Cloud account, check the authorization scopes, and confirm. If the interface asks you to select an OAuth client registration method, you can choose Register automatically.
  3. Enable ACE Music in the tool menu in a new conversation and ask Claude to “only call acemusic_list_models to list the models.” The expected default model is acemusic-v1.1.

Official Claude connector instructions

Use uvx Locally

You can also have Claude Desktop run the Python package through stdio. With this method, you only need to configure the local service.

  1. Copy the API Key from the General Application and install uv. Run uvx --version to confirm that the installation succeeded.
  2. In Claude Desktop, open Settings → Developer → Edit Config and merge the acemusic entry below into mcpServers. The file is ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, and ~/.config/Claude/claude_desktop_config.json on Linux.
  3. Replace YOUR_API_TOKEN with your own API Key only in your personal local configuration. If the desktop application cannot find uvx, change command to the absolute path of the uvx executable.
{
  "mcpServers": {
    "acemusic": {
      "command": "uvx",
      "args": ["mcp-acemusic"],
      "env": {"ACEDATACLOUD_API_TOKEN": "YOUR_API_TOKEN"}
    }
  }
}

Quit Claude Desktop completely and reopen it, then enable ACE Music in the tool menu in a new conversation. First ask Claude to call acemusic_list_models to list the models. To preview your own songs, you can ask it to use acemusic_get_task to query an existing task ID. Task queries are free.

Claude Desktop local MCP configuration

Claude Code

Use the local stdio service and pass credentials to ACE Music through the client configuration. First install uv, then set the API Key copied from the General Application in the terminal environment variable ACEDATACLOUD_API_TOKEN.

Register a user-level MCP service in the terminal:

claude mcp add-json --scope user acemusic '{"type":"stdio","command":"uvx","args":["mcp-acemusic"],"env":{"ACEDATACLOUD_API_TOKEN":"${ACEDATACLOUD_API_TOKEN}"}}'
claude mcp get acemusic

You can use claude mcp get to check the registration information. Start Claude Code from the same terminal and enter /mcp to view the connection status of acemusic. Tell the assistant “use ACE Music’s acemusic_get_capabilities to list the supported operations” to verify tool calls without creating a song.

When you need to generate a song, first confirm the lyrics, style, and cost, then submit it once. Save the returned task_id; later, you can ask Claude to use acemusic_get_task to query the original task and candidate song links.

Claude Code MCP configuration

Codex CLI

Copy the API Key from the General Application and set it as the environment variable ACEDATACLOUD_API_TOKEN in the terminal used to start Codex. Codex reads this variable at runtime and sends a Bearer authorization header to the hosted service.

codex mcp add acemusic --url https://acemusic.mcp.acedata.cloud/mcp --bearer-token-env-var ACEDATACLOUD_API_TOKEN
codex mcp get acemusic

You can use codex mcp get to check the saved address and variable name. Start Codex from the same terminal and open /mcp in the session to check the server. Ask Codex to call acemusic_list_models to list the currently supported models. When looking for previous works, ask it to use acemusic_get_task and the original task ID; the audio_url of a completed track can be played or downloaded directly.

Codex MCP configuration

Cursor

Copy the API Key from the General Application. Set ACEDATACLOUD_API_TOKEN in the environment where you start Cursor, and merge the following into the user configuration ~/.cursor/mcp.json. A workspace can also use the same configuration through .cursor/mcp.json.

{
  "mcpServers": {
    "acemusic": {
      "url": "https://acemusic.mcp.acedata.cloud/mcp",
      "headers": {"Authorization": "Bearer ${env:ACEDATACLOUD_API_TOKEN}"}
    }
  }
}

Quit Cursor completely, then start it from a terminal where the variable is set. Confirm that acemusic is connected in the MCP server list under Customize. In an Agent conversation, ask it to call acemusic_get_capabilities to view the supported operations. If you receive a 401, confirm that the Cursor process can read the variable and that the API Key permits access to ACE Music.

Cursor MCP configuration

Gemini CLI

This guide applies to users who still use gemini, including Gemini Code Assist Standard / Enterprise users. Google has moved the terminal entry point for the free individual tier and Google AI Pro / Ultra to Antigravity CLI (agy). Google client instructions

Set the environment variable ACEDATACLOUD_API_TOKEN in the terminal used to start Gemini CLI, using an application API Key authorized to access the service. Run the following command in a trusted working directory to register it in your personal configuration. Single quotes preserve the variable reference.

gemini mcp add --scope user --transport http acemusic https://acemusic.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
gemini mcp list

After confirming that acemusic is shown as connected, start gemini from the same terminal. First, ask the assistant to call acemusic_list_models to list the models; the default model is acemusic-v1.1.

Gemini CLI MCP Configuration

OpenCode

First, run opencode --version. Copy the API Key from the general-purpose app and set the environment variable ACEDATACLOUD_API_TOKEN in the terminal where you start OpenCode. Choose one of the following methods according to your version.

OpenCode 2.x

Run the following commands in the terminal to register it in your personal configuration. The single quotes in the command preserve the environment variable reference.

opencode mcp add acemusic --global --url https://acemusic.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}'
opencode reload

When configuring 2.x manually, place the server under mcp.servers.acemusic. Users with an existing 1.x configuration can first run opencode reload and opencode mcp list to check the connection and avoid duplicate registration.

OpenCode 1.x

Merge the following server into the user's ~/.config/opencode/opencode.json. In 1.x, the server name is placed directly under mcp.

{
  "mcp": {
    "acemusic": {
      "type": "remote",
      "url": "https://acemusic.mcp.acedata.cloud/mcp",
      "oauth": false,
      "headers": {"Authorization": "Bearer {env:ACEDATACLOUD_API_TOKEN}"}
    }
  }
}

Verify the Connection

Run opencode mcp list from the same terminal and confirm that the status of acemusic is connected. In a conversation, request: “Use ACE Music's acemusic_get_capabilities to list the creation and query tools.” When submitting a creation request later, save the task_id and query the original task to avoid paying for duplicate generation while waiting.

OpenCode 1.x MCP Configuration · OpenCode 2.x MCP Configuration

VS Code

Install ACE Music by Ace Data Cloud in VS Code. The extension registers the hosted server and uses VS Code SecretStorage to save the entered key. The extension ID is acedatacloud.mcp-acemusic. The extension requires VS Code 1.101 or later and GitHub Copilot Chat with MCP support.

  1. Copy the API Key from the general-purpose app.
  2. Open the command palette, run ACE Music by Ace Data Cloud: Set Ace Data Cloud API Key, paste the key, and confirm.
  3. Open Agent mode in Copilot Chat and enable ACE Music in the tool selector. Ask it to call acemusic_list_models to view the currently available models.

If you choose to connect directly to the hosted server, create .vscode/mcp.json in the workspace. Enter the key when starting acemusic for the first time; the configuration file saves only the input reference. Choose either the extension or manual configuration.

{
  "servers": {
    "acemusic": {
      "type": "http",
      "url": "https://acemusic.mcp.acedata.cloud/mcp",
      "headers": {"Authorization": "Bearer ${input:acemusic-api-key}"}
    }
  },
  "inputs": [
    {"type": "promptString", "id": "acemusic-api-key", "description": "ACE Music API Key", "password": true}
  ]
}

Run MCP: List Servers in the command palette, select acemusic, and start it; you can then use the same model-listing tool to verify the connection.

VS Code MCP Configuration

Initial Verification

Ask the assistant to “only call ACE Music's acemusic_list_models to list the models.” The expected result is acemusic-v1.1 (default) and acemusic-v1. You can also call acemusic_get_capabilities to view the creation methods. Neither of these tools submits a creation request.

The local server can return the model and capability lists directly. To further verify the key's task-query permissions, you can ask the assistant to use acemusic_get_task to query an existing task ID of your own. Task queries are free. See the explanation below for the costs of song generation, reference uploads, and lyrics generation.

Available Tools

Tool Purpose
acemusic_generate_music Generate a song from a theme and style description
acemusic_generate_custom_music Generate a song from a title, lyrics, and musical style
acemusic_upload_audio Import a reference track from a public HTTPS MP3 URL, charged separately
acemusic_upload_asset Import MIDI, image, or video reference assets of enabled types, charged separately
acemusic_get_asset Read your own asset by asset ID for free
acemusic_list_assets List your own assets by page for free, with filtering by type
acemusic_cover_audio Create a cover using one of your own platform tracks
acemusic_mashup_audio Combine exactly two distinct and compatible platform tracks
acemusic_generate_lyrics Generate an editable title and lyrics, charged separately
acemusic_get_task Query the status and result of an original task
acemusic_get_tasks_batch Query original tasks in batches, 1–50 at a time
acemusic_list_tasks Query your own history by page, up to 50 entries per page
acemusic_list_models View available models and the default model
acemusic_get_capabilities View supported operations and task recovery instructions

Basic song generation supports acemusic-v1.1 (default) and acemusic-v1. Covers and mashups use acemusic-v1.1 and require lyrics and style; the title is optional. The audio_influence range is 1–100, with a default of 60. The audio_id of a reference track comes from the track's id in a completed task and is different from the task_id.

Instrumental-only controls, style intensity, continuation, stem separation, timbre, and WAV, MIDI, or video export tools are not currently available. Refer to the tools' actual parameters and do not apply fields from other music services.

Using Reference Assets

When the relevant types are enabled for your account and supported by the client tools, you can import MIDI, image, or video assets separately, read your own assets, and provide the asset_id and asset_type of the same item to v1.1 for inspiration-based creation. Asset metadata queries are free. Save the original task IDs for the paid import and song generation separately to avoid repeating them. See the Reference Assets Guide.

From Lyrics to Songs

After connecting successfully, you can say to the assistant:

First, help me write Chinese folk song lyrics about my hometown and provide a title. Let me confirm the lyrics before generating the song.

After confirming, say:

Generate a song using the title and lyrics just confirmed, in a warm folk style with acoustic guitar. After submitting once, save the task ID and query the same task. When it is complete, give me playback and download links for the two candidates.

The assistant should perform the following steps:

  1. Call the lyrics tool to generate a draft for you to confirm or modify.
  2. Use the custom song tool to submit the creation once, and save the task_id.
  3. Query the original task approximately every 10 seconds, gradually increasing the interval depending on how long it takes.
  4. Check the task and individual track statuses, and return the audio_url of completed tracks. A complete song task contains two candidates; a reference upload task contains one track.

If you want to cover an existing work, use the audio_id of a completed track directly. Only call the upload tool when you explicitly choose to import a new reference, to avoid additional reference upload charges.

Task Status and Fees

created, submitting, processing, and storing indicate that the task is still being processed. succeeded indicates complete success, while partial_failed and failed are terminal states; a partially failed task may still retain one playable candidate. Song results are located in response.data in the task record.

If the status is submission_unknown, the submission result requires further verification. Retain the original task ID, Trace ID, and request information, and do not automatically regenerate. After a client timeout, disconnection, or restart, you should likewise query the original task first.

Generation, covers, and fusion are charged per complete two-song set, with only one charge per set; no generation fee is charged for final failure or partial failure. Reference uploads and the lyrics assistant are charged separately per successful operation. Task queries are free but still require valid credentials and access permissions. For specific pricing, refer to the ACE Music service page and your actual application plan.

Frequently Asked Questions

  • The uvx command cannot be found: First install uv, and confirm that the AI client's runtime environment can find the command, then reconnect MCP.
  • The connection returns 401/403: Check whether the API Token is correct, whether it has been revoked, and whether the credentials permit access to the relevant ACE Music APIs.
  • An insufficient balance or quota message appears: If the balance is insufficient, click the “Recharge” button. If an API Key limit has been reached, check the key settings. Free queries still require task API permissions.
  • No audio is received immediately after submission: Generation is an asynchronous task; use the original task_id to query it. Successful acceptance does not mean the audio has been delivered.
  • You need to view the underlying API parameters: Refer to the Song and Reference Audio Integration Guide, Lyrics Generation Integration Guide, and Task Query Integration Guide. For MCP installation and version information, see the project repository.