ACE Music MCP Integration Guide

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

Application and Usage

Before integration, first obtain an 零壹AI API Token:

  1. Register or log in to the 零壹AI Console.
  2. Open General Applications and click Create API Key; if you already have an available API Key, simply copy it. The API Key here is the API Token used in this guide.
  3. Confirm that this credential allows access to the relevant ACE Music APIs, and that the application balance, validity period, and credential limits meet the calling requirements. Credentials from existing ACE Music applications can also be used.
  4. When you need to manage, update, or revoke credentials, go to API Credential Management. For pricing and quotas, see the ACE Music Service Page.

Replace YOUR_API_TOKEN in the examples below with the copied API Key. Do not use an account management Token in place of API calling credentials, and do not write real keys into conversations, public code, or repositories.

Integration by Client

Select the client you are using to view the configuration location, credential setup, and free verification steps.

Method 1: Run the MCP Server Locally

Local integration uses the published Python package mcp-acemusic. First install uv, make sure the client can run uvx, and then add the following stdio configuration:

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

For example, the configuration file locations for Claude Desktop are:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Merge the configuration into the existing mcpServers, save it, then restart or reconnect the client. Other clients that support stdio only need to enter the same command, arguments, and environment variables through their configuration entry points.

Method 2: Connect to the Hosted MCP Server

Clients that support Streamable HTTP can configure the following connection information:

Configuration Item Content
Server URL https://acemusic.mcp.acedata.cloud/mcp
Request Header Authorization: Bearer YOUR_API_TOKEN

For example, configure the following in VS Code's .vscode/mcp.json:

{
  "servers": {
    "acemusic": {
      "type": "http",
      "url": "https://acemusic.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

After saving, connect to this server in the client and load the tools. The HTTP configuration format may differ between clients; please use that client's MCP settings entry point. If valid credentials are not provided, the server will reject the connection; if the client supports only OAuth, connect according to its authorization flow. Specific compatibility is subject to the current support status of the client and server.

Available Tools

Tool Purpose
acemusic_generate_music Generates songs based on theme and style descriptions
acemusic_generate_custom_music Generates songs based on title, lyrics, and musical style
acemusic_upload_audio Imports one reference audio track from a public HTTPS MP3 URL, billed separately
acemusic_cover_audio Creates a cover using one of your own platform audio tracks
acemusic_mashup_audio Fuses exactly two different and compatible platform audio tracks
acemusic_generate_lyrics Generates editable titles and lyrics, billed separately
acemusic_get_task Queries the status and result of one original task
acemusic_get_tasks_batch Batch queries original tasks, 1–50 per request
acemusic_list_tasks Paginated query of your own history, up to 50 entries per page
acemusic_list_models Views available models and the default model
acemusic_get_capabilities Views supported operations and task recovery instructions

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

Currently, tools for instrumental-only control, style strength, continuation, stem separation, voice timbre, WAV, MIDI, or video export are not provided. Please use the actual parameters of the tools as the standard, and do not apply fields from other music services.

From Lyrics to Song

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 first, then generate the song.

After confirmation, say:

Generate a song using the title and lyrics just confirmed. The style is warm folk, acoustic guitar. After submitting once, save the task ID, query the same task, and once completed, give me playback and download links for two candidate songs.

The assistant should perform the following steps:

  1. Call the lyric tool to generate a draft, allowing you to confirm or modify it.
  2. Use the custom song tool to submit one creation and save the task_id.
  3. Query the original task approximately every 10 seconds, gradually extending the interval based on the waiting situation.
  4. Check the task and the status of each audio track, and return the audio_url of completed audio tracks. A complete song task contains two candidates; a reference upload task contains one audio track. If you need to cover an existing work, directly use the audio_id of the completed audio track. Only call the upload tool when you explicitly choose to import a new reference, to avoid additional reference upload fees.

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; in the case of partial failure, a playable candidate may still be retained. Song results are located in response.data of the task record.

If the status is submission_unknown, it means that 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-track set, with each set charged only once; no generation fee is charged for final failure or partial failure. Reference uploads and the lyrics assistant are charged separately per successful operation, while task queries are free but still require valid credentials and access permissions. For specific pricing, refer to the ACE Music service page and the actual application plan.

Frequently Asked Questions

  • Cannot find the uvx command: Install uv first, and ensure that the AI client's runtime environment can find the command, then reconnect MCP.
  • Connection returns 401/403: Check whether the API Token is correct, whether it has been revoked, and whether the credentials are permitted to access the relevant APIs of ACE Music.
  • Insufficient balance or quota prompt: Check the application balance and API Key quota in the console. Free queries still require task API permissions.
  • Audio is not received immediately after submission: Generation is an asynchronous task; query using the original task_id; successful acceptance does not mean the audio has been delivered.
  • Need to view 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.