# Lyrics API and songwriting agent for your AI agents

> The AISongAgent.com MCP server gives your assistant the same songwriting sessions as the studio: start a session, send messages, read the draft and its versions, pin lines, check meter and rhymes, and render the song. It spends your own credits at the studio's prices.

Server URL (Streamable HTTP): `https://aisongagent.com/mcp`

## Connect AISongAgent.com to Claude, ChatGPT or Cursor

### Claude

In claude.ai or Claude Desktop go to Settings → Connectors, choose to add a custom connector, call it AISongAgent.com and paste the server URL. Press Connect and approve access.

```
https://aisongagent.com/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 aisongagent-com https://aisongagent.com/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://aisongagent.com/mcp
```

### Codex

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

```
[mcp_servers.aisongagent-com]
url = "https://aisongagent.com/mcp"
```

### Cursor

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

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

### Windsurf

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

```
{
  "mcpServers": {
    "aisongagent-com": {
      "serverUrl": "https://aisongagent.com/mcp"
    }
  }
}
```

A browser tab opens on AISongAgent.com: log in, or make a free account, then allow access. The assistant never sees your password.

## Signing in once with your AISongAgent.com account

1. The first call gets a 401 from the server, with a pointer to the OAuth metadata.
2. The client registers (via a Client ID Metadata Document or dynamic registration) and starts a PKCE sign-in.
3. You log in to AISongAgent.com and grant access to that single client on the consent screen.
4. The token it receives works for https://aisongagent.com/mcp alone; it refreshes on its own and you can revoke it whenever you like.

## From code: the REST API

Create an API key in Settings → API keys and call any tool as POST /api/v1/tools/<name> with a JSON body; GET /api/v1/tools lists them. The answers match the MCP tools. Co-Write and Staff Writer plans get the full hourly limit; other accounts can send a few turns an hour.

## Tools your assistant can call

- `start_session`: Start a session (free), optionally from the user's own draft and with a style sheet.
- `send_message`: One agent turn, Quick (24 credits) or Deep (74). Returns the reply, the new version and a line diff.
- `get_draft`: The current lyrics, pins, style sheet and a link to open the session in the studio.
- `list_versions`: Every version of a session with its note.
- `list_sessions`: The user's sessions, newest first.
- `pin_lines`: Pin up to 12 lines the agent must keep word for word.
- `check_meter`: Syllables and stress per line from the pronouncing dictionary. Free.
- `find_rhymes`: Perfect, slant and multi-syllable rhymes for a word or phrase. Free.
- `render_song`: Sing the current version: demo 134 credits, or studio 114 per 10 s. On the top plan, pass genres (up to 4) to sing the draft once per genre.
- `get_render`: The state of a render, with its audio link once ready.
- `list_prices`: Credit prices for every action and the limits.
- `get_credits`: Remaining balance and plan.

Credits are taken only by send_message and render_song, at the studio's prices, and a turn or render that fails is refunded. Everything is saved to 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 render still “running”: renders take a minute or two. Ask the assistant to call get_render again.
- “Too many turns this hour” on the API: the hourly limit depends on your plan. Wait, or upgrade for the full limit.

## Questions from assistant users

### Does the MCP server cost extra?

No. Connecting is free; agent replies and renders cost the same credits as in the studio, and meter and rhyme checks are free.

### What can my assistant do?

Start a session, talk to the songwriting agent, read the draft and every version, pin lines, check meter and rhymes, and render the song. You can open the same session in the studio at any time.

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

A failed turn or render is refunded on its own. With too few credits the tool says so before charging anything.

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

No. On AISongAgent.com, naming artists, asking for sound-alikes and reusing published lyrics are refused over MCP, the API and in the studio alike.

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

Remove the server from your client and add it again; the next tool call starts a fresh sign-in.

### Can I use the API without an MCP client?

Yes. Create a key under Settings → API keys and call POST /api/v1/tools/TOOL_NAME with a JSON body.


---

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