# Music MCP server: background music from Claude, ChatGPT or Cursor

> The Lyriai.net MCP server lets your assistant make station segments from a fader mix on your account and hand you the links. It uses the same engines, prices, credits and refunds as the station; crossfades, the timeline and long exports are on the station page.

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

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

### Claude

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

```
https://lyriai.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 lyriai-net https://lyriai.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://lyriai.net/mcp
```

### Codex

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

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

### Cursor

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

```
{
  "mcpServers": {
    "lyriai-net": {
      "url": "https://lyriai.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": {
    "lyriai-net": {
      "type": "http",
      "url": "https://lyriai.net/mcp"
    }
  }
}
```

### Windsurf

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

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

A tab opens on Lyriai.net. Log in or make a free account, then approve the assistant; it never sees your password, and there is no key to paste.

## Signing in once with your Lyriai.net account

1. The assistant calls the station's server and gets a 401 reply that points it to our OAuth metadata.
2. It registers as a client (by metadata document or dynamic registration) and opens a PKCE login tab.
3. You log in on Lyriai.net and approve just that assistant on the consent screen.
4. The assistant receives a token that works on https://lyriai.net/mcp alone; it refreshes itself and you can revoke it whenever you like.

## Making segments from code without a browser

The station has no API keys. Every assistant connects with OAuth instead, and that works in Claude, ChatGPT, Cursor, VS Code, Codex and Windsurf.

## Music tools your assistant can call

- `list_prices`: Credit prices for each engine, segment lengths and the session limits.
- `make_segment`: Make one segment from mood chips with weights, BPM, key and a session slot: 23 credits on the station engine, 153 on the studio engine or 64 per 10 s on the vocal engine.
- `get_segment`: The state of one segment, with its audio link once ready.
- `list_sessions`: Your sessions, newest first, with their kept segments.
- `get_credits`: Remaining balance and plan.

Credits are taken only when a segment is made, and a segment that fails is refunded automatically. Every segment is saved to its session.

## Troubleshooting

- The assistant keeps asking to authenticate: remove the server from its settings and add it back, so the login starts fresh.
- “Not enough credits”: call get_credits to see the balance, then top up on the pricing page. Nothing was taken for the failed call.
- A segment still “running”: segments take under a minute. Ask the assistant to call get_segment again.
- 401 with a key starting sk_: this site has no API keys. Remove the header and sign in with OAuth.

## Questions from assistant users

### Does the MCP server cost extra?

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

### What can my assistant do?

Plan a fader mix with you, make segments into a session, check on them and read back the audio links. Live playback, crossfades and the one-file export are on the station page.

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

Credits are taken only when a segment starts rendering, and a segment that fails returns its credits by itself. If the balance is too low, the tool says so and nothing is spent.

### Can my assistant ask for a song in an artist's style?

No. Segments on Lyriai.net are instrumental or wordless, over MCP and on the station alike; naming artists or copying existing songs is refused.

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

Remove the server in the assistant's settings and add it back; its next tool call starts a fresh login.

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

Usually under a minute, so the assistant may check back once. Every segment is saved to its session and shows on your Sessions page.


---

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