> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Producer MCP integration guide

> producer MCP server integration

Producer MCP can generate music from a creative description, create songs using your own lyrics, extend existing songs, make covers, or split audio into tracks. Generated audio can be exported as WAV or used to create a music video.

## Connect to the Hosted Service

In your client, select remote MCP (Streamable HTTP) and enter `https://producer.mcp.acedata.cloud/mcp` as the server address. Select OAuth, then follow the browser prompts to sign in to Ace Data Cloud and authorize access.

| Client | How to connect |
| - | - |
| Claude / Claude Desktop | Under “Customize → Connectors”, add a custom connector, paste the server address, and sign in. |
| Claude Code | Run `claude mcp add --transport http --scope user producer https://producer.mcp.acedata.cloud/mcp`, then open `/mcp` in the session, select the server, and complete authorization. |
| Codex CLI | Run `codex mcp add producer --url https://producer.mcp.acedata.cloud/mcp`, then run `codex mcp login producer`. |
| Cursor | Create a new HTTP server in the MCP settings, enter the address, and follow the prompts to sign in when connecting. |
| VS Code | Run `MCP: Add Server` from the command palette, select HTTP and enter the address, then use `MCP: List Servers` to check the status. |

If using an application API key, select the application used for Producer on the application management page. Check that its allowed APIs cover the creation, media, and task query endpoints you plan to use, and confirm the balance. In the client's private credential settings, set the request header to `Authorization: Bearer &lt;应用 API Key>`. [Applications and API Keys](https://platform.acedata.cloud/console/applications)

### Using an Application Key with Gemini CLI and OpenCode

First, set the environment variable `ACEDATACLOUD_API_TOKEN` to the application API key in the terminal where you launch the client. The following commands use macOS or Linux shell quoting and save a reference to the variable.

| Client | How to connect |
| - | - |
| Gemini CLI | Run `gemini mcp add --scope user --transport http producer https://producer.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'`, then use `gemini mcp list` to check. |
| OpenCode 2.x | Run `opencode mcp add producer --global --url https://producer.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}'`, then run `opencode reload` and `opencode mcp list`. |

For OpenCode 1.x, add a service named `producer` to the `mcp` object in your personal `opencode.json`. Set `type` to `remote`, `url` to the address above, `oauth` to `false`, and `headers.Authorization` to `Bearer {env:ACEDATACLOUD_API_TOKEN}`. [OpenCode 1.x configuration](https://opencode.ai/v1/docs/mcp-servers/)

## Connect locally via stdio

Install uv, open the local MCP configuration in Claude Desktop's developer settings, and merge the following entry into your user configuration. Replace the placeholder with your application's API key, save, and restart the client. Other clients that support stdio can also run the `uvx mcp-producer` command and pass the key to the process as an environment variable.

```json theme={null}
{
  "mcpServers": {
    "producer": {
      "command": "uvx",
      "args": [
        "mcp-producer"
      ],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
      }
    }
  }
}
```

The local process still calls the Ace Data Cloud API. Store your key in your personal client configuration or a credential manager. [mcp-producer package](https://pypi.org/project/mcp-producer/)

## Verify the connection and available tools

Open the client's tool list, find Producer, and first ask the assistant to call `producer_list_models` to list the supported music models. This query checks whether the client has loaded the tools without submitting a production request.

| Purpose | Tools | Usage |
| - | - | - |
| Create songs and lyrics | `producer_generate_music`, `producer_generate_custom_music`, `producer_generate_lyrics` | Generate a song from a description, or provide lyrics in sections to customize it. For instrumental music, specify `instrumental=true`. |
| Extend, cover, and create variations | `producer_extend_music`, `producer_cover_music`, `producer_variation_music` | Use the `audio_id` of a completed piece. To extend it, also specify a positive number of seconds for `continue_at`. If it has vocals, provide lyrics for the extension. |
| Replace and separate tracks | `producer_replace_section`, `producer_swap_vocals`, `producer_swap_instrumentals`, `producer_stems_music` | Modify a specified time range, replace vocals or accompaniment, or separate audio tracks. |
| Import and export | `producer_upload_audio`, `producer_generate_wav`, `producer_generate_video` | Upload reference audio using an accessible URL, or export a WAV file or generate a video from an existing piece. |
| Query tasks | `producer_get_task`, `producer_get_tasks_batch` | Query one or more tasks by task ID. |
| View usage information | `producer_list_models`, `producer_list_actions`, `producer_get_lyric_format_guide` | View models, operations, and lyric section formats. |

## Example request

Ask the assistant: "Call Producer to generate an upbeat acoustic guitar instrumental for a podcast intro, setting `instrumental=true`. If a task ID is returned, check until it is complete, then give me the audio URL and the piece ID."

To check progress, use the `task_id` returned by the generation request. For subsequent continuations, covers, or WAV exports, use the `id` of the specific audio in the successful result as `audio_id`. If a generation contains multiple tracks, first select the one you want to process.

Before making a call, check the service pages for current pricing and availability. [Producer Service](https://platform.acedata.cloud/services/producer) · [Song Generation API](https://platform.acedata.cloud/documents/producer-audios) · [Lyrics Generation API](https://platform.acedata.cloud/documents/producer-lyrics) · [Task Query API](https://platform.acedata.cloud/documents/producer-tasks)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.