# Compose classical music from Claude, ChatGPT or Cursor

> The sonatai.net MCP server lets your assistant compose movements in classical forms on your account and hand you the links. Editing the form map and choosing takes stay on the website.

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

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

### Claude

In claude.ai or Claude Desktop, go to Settings → Connectors and add a custom connector called sonatai.net with the URL above. Connect, then approve the request.

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

### Codex

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

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

### Cursor

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

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

### Windsurf

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

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

A sonatai.net window opens in your browser; sign in or make a free account, then choose Allow access. The assistant never sees your password, and no key changes hands.

## Signing in once with your sonatai.net account

1. The first call to the server comes back 401, with a pointer to the OAuth metadata.
2. The assistant introduces itself, by Client ID Metadata Document or by dynamic registration, and starts a PKCE sign-in.
3. On sonatai.net you sign in and approve that single client on the consent page.
4. The assistant receives a token limited to https://sonatai.net/mcp; it renews itself, and you can revoke it whenever you want.

## Composing from code without a browser

Sign-in is OAuth only for now, with no API keys. Claude, ChatGPT, Cursor, VS Code, Codex and Windsurf all support it.

## Composer tools your assistant can call

- `list_prices`: Credit prices for each engine and the length limits.
- `compose_movement`: Compose a movement in a classical form: 126 credits on Sketch, 266 on Chamber or 116 per 10 s on Concert.
- `retake_section`: Render one section of a finished movement again as a new take: 266 credits.
- `get_movement`: The state of one movement, with its audio link once ready.
- `list_movements`: Your latest movements and retakes, newest first.
- `get_credits`: Remaining balance and plan.

Your balance only moves once a movement starts rendering; if the engine gives up, those credits come straight back. The finished movement lands in your library.

## 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 movement still “running”: renders take a few minutes. Ask the assistant to call get_movement 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

### Is composing through an assistant priced differently?

No. Linking your assistant costs nothing, and each movement it renders is charged at the same credit price as the Compose page.

### Which parts of a composition can the assistant handle?

Pick a form, ensemble, key and length, compose the movement, retake a section, check on jobs and read back the audio links. Editing the form map section by section and choosing takes happen on the website.

### What if a movement fails to render, or I run short of credits?

A job takes credits only when it starts, and a render that fails comes back as credits on its own. With too few credits the tool says so and points to the pricing page.

### Can my assistant imitate a named composer?

No. On sonatai.net, over MCP and in the studio alike, public-domain composer names become era words, and living composers, work titles and catalogue numbers are refused.

### The assistant keeps sending me back to the sign-in page. How do I fix it?

Remove sonatai.net from your assistant's server list and add it back; the next tool call starts a fresh sign-in.

### How soon is a movement ready, and where can I hear it?

Usually one to three minutes, so the assistant may check back once. Every movement is saved in your library with its form map.


---

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