# Make instrumental music from Claude, ChatGPT or Cursor

> The AIMusicGenerator.co MCP server lets your assistant generate instrumental tracks on your account and hand you the audio links. It uses the same engines, prices and refunds as the studio.

Server URL (Streamable HTTP): `https://aimusicgenerator.co/mcp`

## Connect AIMusicGenerator.co to Claude, ChatGPT or Cursor

### Claude

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

```
https://aimusicgenerator.co/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 aimusicgenerator-co https://aimusicgenerator.co/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://aimusicgenerator.co/mcp
```

### Codex

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

```
[mcp_servers.aimusicgenerator-co]
url = "https://aimusicgenerator.co/mcp"
```

### Cursor

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

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

### Windsurf

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

```
{
  "mcpServers": {
    "aimusicgenerator-co": {
      "serverUrl": "https://aimusicgenerator.co/mcp"
    }
  }
}
```

Your browser opens AIMusicGenerator.co: 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 AIMusicGenerator.co 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 AIMusicGenerator.co and approve that one app on the consent screen.
4. The client gets a token for https://aimusicgenerator.co/mcp only, refreshed automatically and revocable at any time.

## Making tracks from code without a browser

There are no API keys yet: every client signs in with OAuth, which works in Claude, ChatGPT, Cursor, VS Code, Codex and Windsurf.

## Music tools your assistant can call

- `list_prices`: Credit prices and lengths for each engine.
- `generate_music`: Make a Quick clip (37 credits), a Full track (56), a Studio track (51 per 10 s) or a Texture (123) from a brief.
- `get_track`: The state of one track, with its audio link once ready.
- `list_tracks`: Your latest tracks, newest first.
- `get_credits`: Remaining balance and plan.

Credits are taken only when a track starts, and a track that fails is refunded automatically. Every track is saved 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 track still "running": long Studio tracks take a little longer. Ask the assistant to call get_track 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 track costs, exactly as in the studio.

### What can my assistant do?

Generate instrumental tracks on any of the four engines, check on them and read back the audio links. Loops and WAV export happen in the studio.

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

A job takes credits only when it starts, and a track that fails comes back as credits on its own. With too few credits the tool tells you and nothing is charged.

### Can my assistant ask for a named artist's style?

No. Briefs naming an artist, band or song are refused on AIMusicGenerator.co, over MCP and in the studio 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 track take, and where does it go?

Most are ready within the same tool call; long Studio tracks can take a minute more. Every track is saved in your library.


---

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