Metadata-Version: 2.4
Name: mcp-suno
Version: 2026.11.30.2
Summary: Suno music generation, lyrics, and covers by Ace Data Cloud via MCP
Project-URL: Homepage, https://github.com/AceDataCloud/SunoMCP
Project-URL: Documentation, https://platform.acedata.cloud/documents/suno-mcp?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen
Project-URL: Repository, https://github.com/AceDataCloud/SunoMCP
Project-URL: Issues, https://github.com/AceDataCloud/SunoMCP/issues
Project-URL: Changelog, https://github.com/AceDataCloud/SunoMCP/blob/main/CHANGELOG.md
Author-email: AceDataCloud <support@acedata.cloud>
Maintainer-email: AceDataCloud <support@acedata.cloud>
License: MIT
License-File: LICENSE
Keywords: acedata,acedatacloud,ai,audio,claude,generation,llm,lyrics,mcp,model-context-protocol,music,music-generation,suno,suno-music
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: cryptography>=42.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: loguru>=0.7.0
Requires-Dist: mcp<2,>=1.2.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: redis<7,>=5.0.0
Provides-Extra: all
Requires-Dist: build>=1.2.0; extra == 'all'
Requires-Dist: fakeredis>=2.25.0; extra == 'all'
Requires-Dist: mypy>=1.10.0; extra == 'all'
Requires-Dist: pre-commit>=3.7.0; extra == 'all'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'all'
Requires-Dist: pytest-cov>=5.0.0; extra == 'all'
Requires-Dist: pytest>=8.0.0; extra == 'all'
Requires-Dist: respx>=0.21.0; extra == 'all'
Requires-Dist: ruff>=0.4.0; extra == 'all'
Requires-Dist: twine>=5.0.0; extra == 'all'
Provides-Extra: dev
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Provides-Extra: release
Requires-Dist: build>=1.2.0; extra == 'release'
Requires-Dist: twine>=5.0.0; extra == 'release'
Provides-Extra: test
Requires-Dist: fakeredis>=2.25.0; extra == 'test'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'test'
Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
Requires-Dist: pytest>=8.0.0; extra == 'test'
Requires-Dist: respx>=0.21.0; extra == 'test'
Description-Content-Type: text/markdown

<!-- Generated by scripts/marketing_readmes.py from README.md; do not edit. -->
# Suno

[简体中文安装与首用指南](https://github.com/AceDataCloud/SunoMCP/blob/main/readme/README_zh_Hans.md)

<!-- mcp-name: io.github.AceDataCloud/mcp-suno -->

[![PyPI version](https://img.shields.io/pypi/v/mcp-suno.svg)](https://pypi.org/project/mcp-suno/)
[![PyPI downloads](https://img.shields.io/pypi/dm/mcp-suno.svg)](https://pypi.org/project/mcp-suno/)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![MCP](https://img.shields.io/badge/MCP-Compatible-green.svg)](https://modelcontextprotocol.io)

A [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server for AI music generation using [Suno](https://suno.ai) through the [AceDataCloud API](https://platform.acedata.cloud?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen).

Generate AI music, lyrics, and manage audio projects directly from Claude, VS Code, or any MCP-compatible client.

## Generate your first song

1. Add `https://suno.mcp.acedata.cloud/mcp` to an MCP client and finish browser sign-in. For API-key or local setup, follow the [connection instructions](#connect-in-minutes).
2. Confirm Suno is available to your account, then check the **Pricing** tab and your balance. Music generation uses Ace Data Cloud Credits. [Suno service and pricing](https://platform.acedata.cloud/services/f2b646d8-3cfd-46ef-969a-1ea9eebde329?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)
3. Paste this prompt into your connected client.

```text
Use suno_generate_music once with instrumental=true and the prompt
"Upbeat acoustic folk with fingerpicked guitar and soft hand percussion."
Save the returned task_id and check it with suno_get_task.
On successful completion, show the task ID and final playable audio URLs.
If the task fails, show the error and stop.
```

Open a final `audio_url` from the completed task to hear your song. While it is pending, check the original task ID again without submitting another generation. [Suno MCP guide](https://platform.acedata.cloud/documents/suno-mcp?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)

## Use in Kiro

[![Add Suno to Kiro](https://kiro.dev/images/add-to-kiro.svg)](https://kiro.dev/launch/mcp/add?name=acedatacloud-suno&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--from%22%2C%22mcp-suno%3D%3D2026.11.25.0%22%2C%22mcp-suno%22%5D%2C%22env%22%3A%7B%22ACEDATACLOUD_API_TOKEN%22%3A%22%24%7BACEDATACLOUD_API_TOKEN%7D%22%7D%2C%22disabled%22%3Afalse%2C%22autoApprove%22%3A%5B%5D%7D)

Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and make `uvx` available to Kiro. Set `ACEDATACLOUD_API_TOKEN` in the environment that launches Kiro using your own [Ace application key](https://platform.acedata.cloud/console/applications?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen). Open the install link and allow Kiro to expand that variable. Kiro asks for approval before tool calls.

Use `suno_list_models` to inspect the available music models. Generate or extend a track, then extract stems or retrieve the original task with `suno_get_task`. Generation uses Ace credits.

[Privacy policy](https://platform.acedata.cloud/privacy?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen) · [Support](https://github.com/AceDataCloud/SunoMCP/issues)

## Use Suno in Glama

Find the Ace-provided [Suno source listing](https://glama.ai/mcp/servers/AceDataCloud/SunoMCP) or [remote connector](https://glama.ai/mcp/connectors/io.github.AceDataCloud/mcp-suno). Follow the [Glama installation, API Token and first-use guide](https://github.com/AceDataCloud/SunoMCP/blob/main/readme/GLAMA.md). Public discovery and a successful personal connection are separate checks; generation uses your Ace account balance.

## Suno in goose

Use the independent **Suno** native goose plugin: [install and API Token guide](goose/README.md) · [简体中文](goose/README_zh_Hans.md). It reuses this MCP server and does not imply goose Marketplace or default-provider inclusion.

## Find the Suno integration in the official MCP Registry

Open [Suno in the official MCP Registry](https://registry.modelcontextprotocol.io/?q=io.github.AceDataCloud%2Fmcp-suno), expand the matching `io.github.AceDataCloud` entry, and use its **Packages** or **Remotes** installation information in a client that consumes MCP catalogs. This is the Suno integration provided by Ace Data Cloud; it is not an endorsement by the model vendor. The Registry is a directory, not the app that runs a tool.

Search for `mcp-suno` (or `io.github.AceDataCloud/mcp-suno`) to locate the exact entry. The official Registry search currently matches server names; spaces in a display title do not create extra search aliases. If your client does not consume the catalog, use the client-specific connection instructions below and check **Applications → General application** for your token, service permissions, balance and current price. Keep the original task ID when checking asynchronous results.


## Features

- **Music Generation** - Create AI-generated songs from text prompts
- **Custom Lyrics & Style** - Full control over lyrics, title, and music style
- **Song Extension** - Continue existing songs from any timestamp
- **Cover/Remix** - Create cover versions with different styles
- **Lyrics Generation** - Generate structured lyrics from descriptions
- **Persona Management** - Save and reuse voice styles
- **Custom Music Models** - Create and reuse app-owned custom music models
- **Task Tracking** - Monitor generation progress and retrieve results

## Tool Reference

| Tool | Description |
|------|-------------|
| `suno_generate_music` | Generate AI music from a text prompt using Suno's Inspiration Mode. |
| `suno_generate_custom_music` | Generate AI music with full control over lyrics, title, and style (Custom Mode). |
| `suno_extend_music` | Extend an existing song from a specific timestamp with new lyrics. |
| `suno_cover_music` | Create a cover or remix version of an existing song in a different style. |
| `suno_concat_music` | Concatenate extended song segments into a single complete audio file. |
| `suno_generate_with_persona` | Generate music using a saved artist persona for consistent vocal style. |
| `suno_remaster_music` | Remaster an existing song; v5/v5.5 require a variation category. |
| `suno_stems_music` | Separate a song into individual stems (vocals and instruments). |
| `suno_replace_section` | Replace a specific time range in a song with new generated content. |
| `suno_upload_extend` | Extend an uploaded audio (your own music) with new AI-generated content. |
| `suno_upload_cover` | Create an AI cover of an uploaded audio (your own music). |
| `suno_mashup_music` | Blend exactly two songs using a required creative-direction prompt. |
| `suno_all_stems_music` | Return two distinct 12-stem candidate sets, labeled `stem_set` 1 and 2 in task results. |
| `suno_generate_lyrics` | Generate song lyrics from a text prompt. |
| `suno_get_mp4` | Get an MP4 video version of a generated song. |
| `suno_get_timing` | Get timing and subtitle data for a generated song. |
| `suno_check_audio_availability` | Check exactly one audio or persona UUID synchronously. An offline private cloned persona can return false; unknown availability is an error. |
| `suno_extract_vocals` | Extract a required vocal interval shorter than 30 seconds. |
| `suno_get_wav` | Get the lossless WAV format of a generated song. |
| `suno_get_mp3` | Get the compressed MP3 format of a generated song. |
| `suno_get_midi` | Get MIDI data extracted from a generated song. |
| `suno_create_persona` | Create a new artist persona from an existing audio's vocal style; API pricing applies. |
| `suno_list_personas` | List saved personas for a user without a usage charge. |
| `suno_delete_persona` | Permanently delete a saved persona without a usage charge. |
| `suno_create_custom_model` | Create a reusable custom music model from 6 to 24 authorized audio URLs. |
| `suno_get_custom_model` | Retrieve one custom music model by ID. |
| `suno_list_custom_models` | List custom music models for the current Suno application. |
| `suno_generate_with_custom_model` | Generate a song using a ready custom music model. |
| `suno_archive_custom_model` | Archive a custom music model so it can no longer be used. |
| `suno_optimize_style` | Optimize a music style description for better generation results. |
| `suno_mashup_lyrics` | Generate mashup lyrics by combining two sets of lyrics. |
| `suno_upload_audio` | Upload external audio in standard or enhanced mode for subsequent operations. |
| `suno_add_stem` | Add an instrument or vocal stem to an existing audio. |
| `suno_adjust_speed` | Change audio playback speed and optionally preserve pitch. |
| `suno_create_voice` | Create a custom voice persona from authorized audio. |
| `suno_extract_stem` | Extract a selected stem and its complementary track. |
| `suno_generate_inspo` | Generate music inspired by one to four reference clips. |
| `suno_generate_sound` | Generate a one-shot or looping sound effect. |
| `suno_generate_with_persona_vox` | Generate music using the vocals of a saved artist persona. |
| `suno_manage_project` | Create and manage music projects, edit their tracks, and render the result. |
| `suno_overpainting` | Add generated vocals to an instrumental recording. |
| `suno_samples_music` | Add generated samples to an uploaded recording. |
| `suno_underpainting` | Add instrumental accompaniment to an uploaded recording. |
| `suno_get_task` | Query the status and result of a music generation task. |
| `suno_get_tasks_batch` | Query multiple music generation tasks at once. |
| `suno_list_models` | List all available Suno models and their capabilities. |
| `suno_list_actions` | List all available Suno API actions and corresponding tools. |
| `suno_get_lyric_format_guide` | Get guidance on formatting lyrics for Suno music generation. |

## Verify the connection before generating

First discover the server's tools, then call `suno_list_models` with no arguments. This returns local reference information without generating music; it does not validate the application key. Your client's Chat model may still be billed separately.

For an application-backed read-only check, enable only `suno_list_custom_models` and call it with `limit=1`. This uses the existing custom-model **retrieve_batch** operation; it does not create music or train a model. A successful `items` response, including an empty list for a new application, is the success criterion. The key must permit the custom-model lookup API. This confirms only that lookup's access, not permission to generate music or sufficient balance for a generation.

If the tool is missing, reconnect and refresh the tool list. For 401/403, check the copied key, application/service permissions, Allowed APIs, expiration and usage limits before creating another credential. For other errors retain the task/trace ID, never the key. Do not retry generation to test authentication.

## Connect in minutes

The hosted server is `https://suno.mcp.acedata.cloud/mcp`. Choose **one** authentication route before following a client example:

| Route | Use it when | What you provide |
|---|---|---|
| Browser sign-in (OAuth) | Your MCP client supports remote OAuth; use DCR if the client requires automatic registration | The server URL; sign in to AceDataCloud and approve access in the browser. No key needs to be pasted into the MCP config. |
| API token | Your client cannot complete the remote OAuth flow, or you need an explicit credential for an integration | An AceDataCloud API token in the client's Bearer header. Keep it in a user-level secret store or environment variable. |
| Local stdio | You want the MCP process to run on your machine | Install `mcp-suno` and pass `ACEDATACLOUD_API_TOKEN` to that process. |

The hosted server always receives a Bearer token: with OAuth, the client obtains and sends it after sign-in; with API-token setup, you supply it. **DCR is client registration, not a separate AceDataCloud API key.** After consent, the hosted service currently reuses or creates an API credential for your account; it may fail if the account cannot obtain one. Some clients offer a published client identity or manual client ID; those are client-specific alternatives, not a second API-token requirement. Browser sign-in does not remove the need for an AceDataCloud account.

### Browser sign-in: hosted server

Use this path for clients with remote MCP OAuth support. Add **only the URL** first; do not also set an `Authorization` header. If a client cannot complete discovery or registration, use the API-token route below.

#### Claude and Claude Desktop chat

Use Claude's **remote custom connector** in `Customize → Connectors → Add custom connector` (or your organization's connector settings). Enter the hosted URL, choose sign-in, and select **Register automatically** for the OAuth client if Claude asks. Complete the AceDataCloud login and consent flow, then enable the connector in your conversation. Claude Desktop's `claude_desktop_config.json` is for **local** MCP processes; it is not where Claude's remote custom connectors are installed. [Claude's connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).

#### Claude Code

```bash
claude mcp add --transport http --scope user suno https://suno.mcp.acedata.cloud/mcp
claude mcp login suno
```

In Claude Code, `/mcp` shows the connection and available tools. For project scope, merge `{"mcpServers":{"suno":{"type":"http","url":"https://suno.mcp.acedata.cloud/mcp"}}}` into `<project>/.mcp.json`; keep existing entries when merging. Claude Code and Claude Desktop chat have separate MCP configuration. [Claude Code MCP guide](https://code.claude.com/docs/en/mcp).

#### Cursor

In Cursor's MCP settings, add a remote server with the hosted URL and complete the OAuth prompt. For project scope, merge this into `<project>/.cursor/mcp.json`; for your own machines, use `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "suno": {
      "url": "https://suno.mcp.acedata.cloud/mcp"
    }
  }
}
```

The URL-only project config contains no token. Do not commit a project config if you later add a real token. [Cursor MCP guide](https://cursor.com/docs/mcp).

#### VS Code with GitHub Copilot

Run **MCP: Add Server**, choose HTTP, and enter the hosted URL. Save to the user profile for personal use or to a workspace config for a team; approve the server and complete sign-in when prompted. New workspace configs use `<project>/.mcp.json`; VS Code also reads its `.vscode/mcp.json` format. This is the VS Code format for a local workspace:

```json
{
  "servers": {
    "suno": {
      "type": "http",
      "url": "https://suno.mcp.acedata.cloud/mcp"
    }
  }
}
```

Run **MCP: List Servers** to check connection and tool loading. [VS Code MCP setup](https://code.visualstudio.com/docs/agent-customization/mcp-servers) and [configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).

#### Codex CLI or Codex app

```bash
codex mcp add suno --url https://suno.mcp.acedata.cloud/mcp
codex mcp login suno
```

Codex keeps user MCP settings in `~/.codex/config.toml` and can show the server in `/mcp`. [Official Codex MCP guide](https://developers.openai.com/codex/mcp/).

### API token: hosted server

<!-- BEGIN TOKEN ONBOARDING -->
1. Open [Ace Data Cloud → Applications](https://platform.acedata.cloud/console/applications?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen). Sign in, or register an account first.
2. Find **General application**. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and [current pricing](https://platform.acedata.cloud/models?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen).
3. Copy the **API Key** from the General application card, or open **Keys / Manage Keys** to copy an existing key. Paste only the raw token into the client's API Key / API Token field or environment variable, without quotation marks, spaces, or `Bearer `. Only a manually configured HTTP `Authorization` header needs the `Bearer ` prefix. A `platform-...` account-management token cannot replace a generation API key.

![Copy an application API key or open Manage Keys](https://raw.githubusercontent.com/AceDataCloud/NanoBananaDify/2522b2f57210597af2db866445319334a1677a23/_assets/tutorial/get-api-key-en.png)

Confirm the application's balance can cover your first request; any trial allowance is whatever your account currently displays. Task lookup does not grant permission to submit a generation. Never put the key in a prompt, shared workflow, screenshot, or Git commit. If authentication fails, check the full copied value, application/service access, expiration, usage limit, and balance.

**Optional — separate integration key:** After setup, use **Keys / Manage Keys → Create** if you need an independently revocable key. Review **Expiration Time**, **Set Usage Limitation**, and **Allowed APIs**, then copy the new token from the key list. See the [detailed credential guide](https://platform.acedata.cloud/documents/platform-credential-create?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen).
<!-- END TOKEN ONBOARDING -->

Use this route when you need a fixed credential or your client does not complete OAuth. An invalid fixed header does not automatically fall back to browser sign-in.

For **Claude Code**, set the variable in the environment that starts Claude Code, then add the server. The shell expands the token when you add the server, so treat the saved user-level MCP config as a secret; use browser sign-in above if you do not want a key in client config:

```bash
export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN'
claude mcp add --transport http --scope user suno https://suno.mcp.acedata.cloud/mcp \
  --header "Authorization: Bearer $ACEDATACLOUD_API_TOKEN"
```

For a shared project config, put only the variable reference in `<project>/.mcp.json` and keep the token in each user's environment. Unlike the CLI example above, Claude Code expands `${ACEDATACLOUD_API_TOKEN}` when it reads `.mcp.json`. Merge this entry with existing servers:

```json
{
  "mcpServers": {
    "suno": {
      "type": "http",
      "url": "https://suno.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer ${ACEDATACLOUD_API_TOKEN}"
      }
    }
  }
}
```

For **Cursor**, use its `${env:ACEDATACLOUD_API_TOKEN}` syntax in a user-level `~/.cursor/mcp.json` (or an uncommitted project config):

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

For **VS Code**, prefer a user-profile MCP config and a masked input instead of putting the token in the JSON. Merge these fields into the file opened by **MCP: Open User Configuration**:

```json
{
  "inputs": [
    {"id": "acedata-suno-token", "type": "promptString", "description": "AceDataCloud API token", "password": true}
  ],
  "servers": {
    "suno": {
      "type": "http",
      "url": "https://suno.mcp.acedata.cloud/mcp",
      "headers": {"Authorization": "Bearer ${input:acedata-suno-token}"}
    }
  }
}
```

This interactive input is specific to VS Code's user/workspace format; do not copy it into `.mcp.json` for Agent Host. VS Code prompts once and stores the value securely for later use. [VS Code configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration).

Other clients use different schemas. For **Cline**, open **MCP Servers → Configure → Configure MCP Servers** (Cline CLI: `~/.cline/data/settings/cline_mcp_settings.json`) and use `type: "streamableHttp"` under `mcpServers`; [Cline's guide](https://docs.cline.bot/mcp/mcp-overview) has the full shape. For **JetBrains AI Assistant**, go to **Settings → Tools → AI Assistant → Model Context Protocol (MCP)** and add a remote server using the hosted URL; check its connection status and use the API-token route if your version does not complete OAuth. [JetBrains' guide](https://www.jetbrains.com/help/ai-assistant/mcp.html). For **Zed**, use `context_servers` with the hosted URL in its settings; omitting `Authorization` starts its OAuth flow. [Zed's guide](https://zed.dev/docs/ai/mcp).

### Local stdio server

Local mode needs an API token. Use it when your client only supports local processes or you want the MCP process on your machine; it still calls the AceDataCloud API and does not run Suno locally.

```bash
# Install once, then run the local stdio server
python -m pip install mcp-suno
export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN'
mcp-suno
```

For Claude Desktop's **local** MCP configuration, merge this into the file opened by its developer settings (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS). This is a local `uvx` process; it is separate from the remote custom connector above:

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

Keep this user-level file private. On Windows, set `$env:ACEDATACLOUD_API_TOKEN = 'YOUR_API_TOKEN'` in the shell that starts local clients. `uvx` requires [uv](https://docs.astral.sh/uv/) on `PATH`; `mcp-suno` requires the package installed in the environment from which the client launches it.

For self-hosted HTTP, run `mcp-suno --transport http --port 8000` or build this repository's Dockerfile and run the resulting image. Clients must send their own Bearer tokens; expose the service only with suitable network and TLS controls.

### Check the connection before generating

1. `https://suno.mcp.acedata.cloud/health` returning `{"status":"ok"}` checks reachability only, not authentication.
2. Use the client's MCP server list to confirm Suno tools appear. `suno_list_models` and `suno_list_actions` return static reference data; they confirm tool loading, **not** that your downstream API credential or balance works.
3. For an application-backed check, use the [read-only lookup](#verify-the-connection-before-generating). When you are ready for a paid request, [generate your first song](#generate-your-first-song).

If you see **401**, check whether the client completed OAuth or sent a valid token, and do not configure both paths at once. If OAuth redirects but fails, retry from the same client session; if the account cannot create or retrieve a credential, resolve that in AceDataCloud Platform. A tool list can load while an API call fails for balance, permissions, or service availability, so check the returned error rather than assuming the connection failed.

## Use the tools

Tool names in the client include the `suno_` prefix. Start with `suno_list_models` or `suno_list_actions` to confirm the connection. For generation, use `suno_generate_music` for a prompt or `suno_generate_custom_music` for your own lyrics and style. Advanced operations, media conversion, personas, and custom models are listed in the [tool reference](#tool-reference) and exposed by the MCP server.

Generation and edits return a **task ID**, not a finished song. Query `suno_get_task` (or `suno_get_tasks_batch` for multiple IDs) until the task reports success and final media URLs. An intermediate audio URL may be only a preview; a failed task should stop polling. Do not repeat the generation call to check progress, because it may submit and bill another task.

For custom lyrics:

> Use `suno_generate_custom_music` with title “Storm”, style “energetic rock”, and these lyrics: `[Verse] Thunder in the night [Chorus] We are the storm`. Then follow the returned task ID to completion.

`negative_tags` excludes styles or genres in custom generation (`custom=true`) and in `suno_replace_section`. The API currently sets no fixed character limit for this field, but overly long content may still fail; keep the description concise.

Extensions (`suno_extend_music`, `suno_upload_extend`) require a positive `continue_at` in seconds; fractional boundaries such as `30.792` are preserved. Lyrics affect only new content after that boundary, not the original portion. Replacement requires `0 <= replace_section_start < replace_section_end`. `suno_samples_music` selects an interval from one source audio: `samples_start` defaults to 0, and `samples_end` is required and must be greater than start. Interval ends must not exceed the source duration. `duration` (an integer from 10–360) is a target used only for generation; actual length depends on the model.

For `suno_generate_inspo`, supply 1–4 public reference audio URLs. Use `instrumental=true` for a no-lyrics request, or `custom=true` with `lyric_prompt` and empty `lyric` for automatic lyrics. The optional `persona_id` is a voice ID, not an audio ID; voice support with Inspo depends on the service channel. Extensions do not use an additional persona ID.

For `suno_all_stems_music`, wait for successful terminal completion of the full task. Playable URLs during processing do not mean every stem is complete.

For covers, extensions and stem separation, use the returned audio `id` as `audio_id`. A downloadable audio file does **not** guarantee that its ID remains available for further processing.

### Replace a song section

1. Listen to the complete source song and use `suno_get_timing` to select full musical phrases. Supply its audio `id`, not its `task_id`, and keep `0 <= replace_section_start < replace_section_end <= source duration`.
2. Pass **local new lyrics only** in `lyric`; for a lyric edit, set `prompt` to the same local text. `prompt` is not an inspiration or style description here. Match the selected phrase's line count, syllables and rhythm; neither field guarantees word-for-word singing.
3. Keep `replace_section_result_mode: "full_song"` (default) to receive two complete songs without another `suno_concat_music` call. Poll the original task with `suno_get_task`, then select a song from `response.data`. Use `"candidates"` only to choose an unmerged clip and pass that candidate's `id` to `suno_concat_music`.
4. Listen to both results and check new words, transitions and `duration`. A successful task does not prove the lyrics were sung correctly. Returned `lyric` is metadata, not a transcript; full-song lyrics may be empty when source timing is unavailable. Full songs can be longer than the source and later sections may shift; the generation-only `duration` parameter cannot lock replacement length.
5. For another edit, use the selected **complete result's audio ID**, recheck its timing, and supply fresh local lyrics—not the entire returned `lyric`. If the results still sing old words, miss words or grow unexpectedly, retain the task ID, source ID, request fields and result audio for support. More polling cannot change completed audio.

Example MCP arguments (substitute your completed song's ID and actual interval):

```json
{
  "audio_id": "YOUR_COMPLETED_AUDIO_ID",
  "replace_section_start": 30.0,
  "replace_section_end": 50.0,
  "lyric": "New words for this phrase",
  "prompt": "New words for this phrase",
  "replace_section_result_mode": "full_song"
}
```

### Suno request pricing

| Tool / action | Standard cost per successful request |
|---|---|
| `suno_generate_lyrics` | 0.08 Credits, even with multiple lyric candidates |
| `suno_create_voice` | 0.15 Credits |
| `suno_stems_music` (`stems`) | 0.56 Credits for vocals and accompaniment together |

Applicable discounts follow the actual bill; failed requests are not charged. `all_stems`, `extract_stem` and other actions have their own prices. Confirm current pricing and spending approval before submitting; these costs are not verified account billing records.

### Manage saved personas

Call `suno_list_personas` with `user_id` to find an existing voice before creating another one; use optional `limit` (default 50) and `offset` (default 0) for pagination. Listing uses `GET /suno/persona` and is free. After confirming the exact persona to remove, call `suno_delete_persona` with `persona_id` and optional `user_id` for ownership verification. Deletion uses `DELETE /suno/persona` and is also free, but permanent; do not use it to test the connection.

Neither listing nor deletion needs an extra billing-exemption header. Normal API authentication and permissions still apply. `suno_create_persona` uses `POST /suno/persona` and remains subject to the API's pricing rules; check current pricing and spending approval before creation. The free list/delete policy does not make voice creation or music generation free.

### Cover with a specified voice

Both `suno_cover_music` and `suno_upload_cover` accept `persona_id` for a specified-voice cover. A private voice created by `suno_create_voice` requires this sequence:

1. Keep the returned `persona_id` from voice creation.
2. Call `suno_upload_audio` with the original song's public `audio_url`, `mode: "standard"` and that `persona_id` to associate the source with the voice. `persona_id` cannot be used with `mode: "enhanced"`.
3. Call `suno_upload_cover` with the upload's returned `data.audio_id` and the same `persona_id`, then follow its task ID to completion.

Do not reuse an older audio ID that was not uploaded with that private voice. Voice creation, upload and cover must use the same service channel. No extra `vocal_gender` is needed; a gender preference is not a substitute for a voice ID.

### Check audio or persona availability before processing

Before a cover or extension, you can call `suno_check_audio_availability` with the audio UUID from a completed song's `id`, **not** the generation `task_id`:

```json
{"audio_id":"33333333-3333-4333-8333-333333333333"}
```

Pass these arguments to `suno_check_audio_availability`. It calls `POST /suno/availability` synchronously with an API token and currently costs no Credits. Do not poll its returned `task_id` as though it were a generation job.

To check a saved voice, pass `persona_id` instead of `audio_id`, using the original application, caller and creation channel. Send exactly one valid UUID; the MCP tool rejects missing, malformed or double IDs before making an API request. Persona checks require a channel that supports them.

A successful response has `data.id` and boolean `data.available`. `true` means positive evidence of availability at check time, not a guarantee of later processing. A private cloned voice can return `false` when its owning account is confirmed offline; recheck later. Audio checks still return only confirmed `true` or an error. HTTP 503 `availability_unknown` means uncertainty, not `false`; preserve support identifiers and do not submit a paid operation to resolve it.

### Processing errors

The audio API documents these HTTP 500 errors:

| Code | Meaning |
| --- | --- |
| `api_error` with message `the account may have been offline` | The audio API reports that the account may have been offline. |
| `suno_processing_unavailable` | Music processing is unavailable. |
| `suno_model_unavailable` | The selected model is unavailable for this operation. |
| `suno_processing_failed` | Music processing returned no audio. |

Preserve the optional `error.retryable` value: `true` permits a later retry with the same parameters; `false` means do not retry unchanged. If absent, do not infer retry permission from the status code or error text. The MCP client preserves this flag and never automatically resubmits. For accepted or uncertain requests, query the original task first. Stop polling on terminal failure, retain `task_id` and `trace_id` for support, and do not silently switch models or treat a download URL as proof that processing is available.

## Available Models

| Model             | Version | Max Duration | Features             |
| ----------------- | ------- | ------------ | -------------------- |
| `chirp-v6`        | V6      | API-defined  | Current v6 model     |
| `chirp-v6-wild`   | V6 Wild | API-defined  | v6 Wild model        |
| `chirp-v6-mini`   | V6 Mini | API-defined  | v6 Mini model        |
| `chirp-v5-5`      | V5.5    | 8 minutes    | Previous model name  |
| `chirp-v5`        | V5      | 8 minutes    | High quality         |
| `chirp-v4-5-plus` | V4.5+   | 8 minutes    | Enhanced quality     |
| `chirp-v4-5`      | V4.5    | 4 minutes    | Vocal gender control |
| `chirp-v4`        | V4      | 150 seconds  | Stable               |
| `chirp-v3-5`      | V3.5    | 120 seconds  | Fast                 |
| `chirp-v3-0`      | V3      | 120 seconds  | Legacy               |

**Vocal Gender Control** (v4.5+ only):

- `f` - Female vocals
- `m` - Male vocals

## Configuration

### Environment Variables

| Variable                    | Description                  | Default                     |
| --------------------------- | ---------------------------- | --------------------------- |
| `ACEDATACLOUD_API_TOKEN`    | Local stdio token; hosted requests provide it via OAuth or Bearer header | Required for local stdio |
| `ACEDATACLOUD_API_BASE_URL` | API base URL                 | `https://api.acedata.cloud` |
| `ACEDATACLOUD_OAUTH_CLIENT_ID`  | OAuth client ID (hosted mode) | —                           |
| `ACEDATACLOUD_PLATFORM_BASE_URL` | Platform base URL            | `https://platform.acedata.cloud` |
| `SUNO_DEFAULT_MODEL`        | Default model for generation | `chirp-v5-5`                |
| `SUNO_REQUEST_TIMEOUT`      | Request timeout in seconds   | `1800`                      |
| `LOG_LEVEL`                 | Logging level                | `INFO`                      |

### Command Line Options

```bash
mcp-suno --help

Options:
  --version          Show version
  --transport        Transport mode: stdio (default) or http
  --port             Port for HTTP transport (default: 8000)
```

## Development

### Setup Development Environment

```bash
# Clone repository
git clone https://github.com/AceDataCloud/SunoMCP.git
cd SunoMCP

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # or `.venv\Scripts\activate` on Windows

# Install with dev dependencies
pip install -e ".[dev,test]"
```

### Run Tests

```bash
# Run unit tests
pytest

# Run with coverage
pytest --cov=core --cov=tools

# Run integration tests (requires API token)
pytest tests/test_integration.py -m integration
```

### Code Quality

```bash
# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools
```

### Build & Publish

```bash
# Install build dependencies
pip install -e ".[release]"

# Build package
python -m build

# Upload to PyPI
twine upload dist/*
```

## Project Structure

```
SunoMCP/
├── core/                   # Core modules
│   ├── __init__.py
│   ├── client.py          # HTTP client for Suno API
│   ├── config.py          # Configuration management
│   ├── exceptions.py      # Custom exceptions
│   ├── server.py          # MCP server initialization
│   └── utils.py           # Utility functions
├── tools/                  # MCP tool definitions
│   ├── __init__.py
│   ├── audio_tools.py     # Audio generation tools
│   ├── info_tools.py      # Information tools
│   ├── lyrics_tools.py    # Lyrics generation tools
│   ├── media_tools.py     # Media conversion tools
│   ├── persona_tools.py   # Persona management tools
│   ├── custom_model_tools.py # Custom music model tools
│   └── task_tools.py      # Task query tools
├── tests/                  # Test suite
│   ├── conftest.py
│   ├── test_client.py
│   ├── test_config.py
│   ├── test_integration.py
│   └── test_utils.py
├── deploy/                 # Deployment configs
│   └── production/
│       ├── deployment.yaml
│       ├── ingress.yaml
│       └── service.yaml
├── .env.example           # Environment template
├── .gitignore
├── CHANGELOG.md
├── Dockerfile             # Docker image for HTTP mode
├── docker-compose.yaml    # Docker Compose config
├── LICENSE
├── main.py                # Entry point
├── pyproject.toml         # Project configuration
└── README.md
```

## API Reference

This server wraps the [AceDataCloud Suno API](https://platform.acedata.cloud/documents/suno-audios?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen):

- [Suno Audios API](https://platform.acedata.cloud/documents/suno-audios?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen) - Music generation
- [Suno Lyrics API](https://platform.acedata.cloud/documents/suno-lyrics?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen) - Lyrics generation
- [Suno Tasks API](https://platform.acedata.cloud/documents/suno-tasks?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen) - Task queries
- [Suno Persona API](https://platform.acedata.cloud/documents/suno-persona?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen) - Persona management

## Contributing

Contributions are welcome! Please:

1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing`)
5. Open a Pull Request

## Documentation

<!-- canonical-documentation -->
[Documentation](https://platform.acedata.cloud/documents/suno-mcp?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)

## License

MIT License - see [LICENSE](LICENSE) for details.

## Links

- [AceDataCloud Platform](https://platform.acedata.cloud?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)
- [Suno Official](https://suno.ai)
- [Model Context Protocol](https://modelcontextprotocol.io)
- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)

---

Made with love by [AceDataCloud](https://platform.acedata.cloud?utm_source=pypi&utm_medium=referral&utm_campaign=evergreen)

## Cline setup / Cline 图文接入

[Suno — English guide](https://github.com/AceDataCloud/MCPs/blob/4a2fb4e17d322bc22c5742ab3a5bd48b24ec5bdc/suno/docs/cline.md) · [完整中文图文步骤](https://github.com/AceDataCloud/MCPs/blob/4a2fb4e17d322bc22c5742ab3a5bd48b24ec5bdc/suno/docs/cline.md#中文步骤). The Cline marketplace submission is pending review as of 2026-10-18; the guide labels the manual fallback separately. / Cline 官方目录投稿仍待审核，手动接入不等于已上架。

## Additional audio operations and controls

- `suno_add_stem`: generate a selected voice/instrument stem with optional style,
  influence controls, `variety`, and explicitly opted-in `max_mode`.
- `suno_extract_stem`: extract a selected stem and complementary remainder.
- `suno_generate_sound`: create `one-shot` or `loop` sound effects with optional
  BPM, musical key, and MP3 output selection.
- `suno_adjust_speed`: change playback speed from 0.25 to 4, optionally preserving pitch.

Prompt generation accepts `variety`; custom generation also accepts `max_mode`
and `audio_weight`. Enhanced `max_mode` has a higher API price and remains off
unless explicitly requested. Existing model defaults are unchanged.

`suno_generate_with_custom_model` accepts instrumental generation or `lyric_prompt`
in place of supplied lyrics, plus `negative_tags`, `vocal_gender`, `weirdness`,
`style_influence`, `duration`, and `callback_url`. Title and style are optional.

## Studio projects (Beta)

`suno_manage_project(request=..., idempotency_key=...)` covers `create`, `retrieve`,
`save`, `upload`, `add_track`, `generate_track`, `replace_section`,
`commit_candidate`, `remove_track`, and `render`. Its action-specific schema
requires only the fields applicable to that operation.

1. Create a project, then retrieve and retain its complete state and latest `version_id`.
2. Save complete state, upload material, or add tracks using the current version.
3. For generation, supply a source audio ID and a completed project render audio ID.
   Source ranges use seconds; project timeline ranges use beats.
4. Poll accepted task IDs with `suno_get_task` until `finished_at` is set and
   inspect `response.success`. Generating candidates does not modify the project.
5. Choose a candidate and explicitly commit it to a track, then render with the
   latest version. Candidate playback alone does not prove a project is renderable.

Every write requires a caller-selected `idempotency_key`. Retry an uncertain
submission with the same key and identical request, or poll its original task ID;
never automatically generate a new key and resubmit a billable operation. On a
version conflict, retrieve the current project and re-plan the change.

`suno_get_tasks_batch` returns full JSON task records with polling guidance,
preserving model objects, project state/candidates, and media fields such as MIDI.
