# Music MCP server: run YuE from Claude, ChatGPT or Cursor

> The YueAI.net MCP server lets your assistant start YuE runs and A/B compares on your account, check on them and export the recipe. Same engines, prices, credits and refunds as the bench.

Server URL (Streamable HTTP): `https://yueai.net/mcp`

## Connect YueAI.net to Claude, ChatGPT or Cursor

### Claude

In claude.ai or Claude Desktop open Settings → Connectors → Add custom connector, name it YueAI.net and paste the URL. Press Connect and approve access.

```
https://yueai.net/mcp
```

### Claude Code

Run this in a terminal, then type /mcp inside Claude Code and pick the server to sign in.

```
claude mcp add --transport http yueai-net https://yueai.net/mcp
```

### ChatGPT

In ChatGPT open Settings → Apps & Connectors → Advanced and turn on developer mode, then Create a connector with this URL and OAuth authentication.

```
https://yueai.net/mcp
```

### Codex

Add the block to ~/.codex/config.toml, then run codex mcp login yueai-net to sign in.

```
[mcp_servers.yueai-net]
url = "https://yueai.net/mcp"
```

### Cursor

Add the server to ~/.cursor/mcp.json (or Settings → MCP → Add new server). Cursor shows a Login button for it.

```
{
  "mcpServers": {
    "yueai-net": {
      "url": "https://yueai.net/mcp"
    }
  }
}
```

### VS Code

Save as .vscode/mcp.json in your workspace (or run MCP: Add Server). VS Code asks you to sign in on the first tool call.

```
{
  "servers": {
    "yueai-net": {
      "type": "http",
      "url": "https://yueai.net/mcp"
    }
  }
}
```

### Windsurf

Add it to ~/.codeium/windsurf/mcp_config.json and refresh the MCP panel in Cascade.

```
{
  "mcpServers": {
    "yueai-net": {
      "serverUrl": "https://yueai.net/mcp"
    }
  }
}
```

Your browser opens YueAI.net: sign in (or create a free account) and press Allow access. No password or API key is shared with the assistant.

## Signing in once with your YueAI.net account

1. Your client calls the server and receives a 401 that points to our OAuth metadata.
2. It registers itself (Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in page.
3. You sign in on YueAI.net and approve that one app on the consent screen.
4. The client gets a token for https://yueai.net/mcp only, refreshed automatically and revocable at any time.

## Running YuE from code

Assistants sign in with OAuth. For scripts, use the REST API with an API key from Settings → API keys (any plan or pack).

## Tools your assistant can call

- `list_prices`: Credit prices for each run size and engine, and the setting limits.
- `run_yue`: Start a YuE run (692 credits, full run 1,232) or an ACE-Step run from your tags and lyrics. You confirm the lyrics are your own words.
- `compare_engines`: Start an A/B compare of YuE and ACE-Step on one recipe: 782 credits.
- `get_run`: The state of one run, with its audio link once ready.
- `export_recipe`: A run's recipe as JSON plus genre.txt, lyrics.txt and run.sh for your own GPU.
- `list_runs`: Your latest runs, newest first.
- `get_credits`: Remaining balance and plan.

Credits are taken when a run starts, and a run that fails is refunded automatically. Every run is saved with its recipe.

## Troubleshooting

- Client says 'needs authentication': delete the server and add it once more, which makes it sign in from scratch.
- “Not enough credits”: ask for get_credits, then buy credits on the pricing page. You weren't charged.
- A run still "running": YuE runs take several minutes. Ask the assistant to call get_run again later.
- 401 with an API key: the MCP server signs in with OAuth. Use API keys with the REST API instead.

## Questions from assistant users

### Does the MCP server cost extra?

No. Connecting is free; you only spend the credits each run costs, exactly as on the bench.

### What can my assistant do?

Start YuE or ACE-Step runs and A/B compares, check on them, read back the audio links and export recipes. Blind voting is on the bench.

### What happens if a run fails or my balance is too low?

Credits are taken when a run starts, and a run that fails comes back as credits on its own. With too few credits the tool tells you, and your balance stays as it was.

### Can my assistant ask for an artist's voice or style?

No. Naming artists or asking for their voice or style is refused, over MCP and on the bench alike.

### My client keeps asking me to sign in. What do I do?

Delete the server in your client, add it once more, and the next tool call opens a new sign-in.

### How long does a run take, and where does it go?

A YuE run takes several minutes, so the assistant checks back. Every run is saved in My runs with its recipe.


---

Source: https://yueai.net/mcp-server · Site index for AI agents: https://yueai.net/llms.txt · Full content: https://yueai.net/llms-full.txt
