# Audio to MIDI from Claude, ChatGPT or Cursor

> The AudioToMIDI.dev MCP server lets your AI assistant list the audio you uploaded, start a piano or melody conversion with your credits, and read back the notes or the .mid link. It comes with the Session Desk plan.

Server URL (Streamable HTTP): `https://audiotomidi.dev/mcp`

## Connect your assistant

### Claude

Open Settings → Connectors in claude.ai or Claude Desktop, choose Add custom connector, call it AudioToMIDI.dev and paste the URL. Claude opens the sign-in window.

```
https://audiotomidi.dev/mcp
```

### Claude Code

Paste this into a terminal. Inside Claude Code, type /mcp and choose the server to finish signing in.

```
claude mcp add --transport http audiotomidi-dev https://audiotomidi.dev/mcp
```

### ChatGPT

Turn on developer mode under Settings → Apps & Connectors → Advanced in ChatGPT, then create a connector from the URL and sign in.

```
https://audiotomidi.dev/mcp
```

### Codex

Put the block in ~/.codex/config.toml and sign in by running codex mcp login audiotomidi-dev.

```
[mcp_servers.audiotomidi-dev]
url = "https://audiotomidi.dev/mcp"
```

### Cursor

Put the server in ~/.cursor/mcp.json, or add it under Settings → MCP → Add new server. A Login button appears next to it.

```
{
  "mcpServers": {
    "audiotomidi-dev": {
      "url": "https://audiotomidi.dev/mcp"
    }
  }
}
```

### VS Code

Save this as .vscode/mcp.json in the workspace, or use the MCP: Add Server command. The sign-in prompt shows up in the editor.

```
{
  "servers": {
    "audiotomidi-dev": {
      "type": "http",
      "url": "https://audiotomidi.dev/mcp"
    }
  }
}
```

### Windsurf

Put it in ~/.codeium/windsurf/mcp_config.json, then refresh Cascade's MCP panel.

```
{
  "mcpServers": {
    "audiotomidi-dev": {
      "serverUrl": "https://audiotomidi.dev/mcp"
    }
  }
}
```

A browser tab opens on AudioToMIDI.dev: sign in and press Allow access. The assistant never sees your password, and you can disconnect it at any time.

## How the sign-in works

1. The assistant contacts the server first and gets a 401 reply that names our OAuth metadata.
2. It then registers (through a Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in page.
3. On AudioToMIDI.dev you sign in and approve this single app on the consent screen.
4. The assistant receives a token that works for https://audiotomidi.dev/mcp alone; it refreshes by itself and you can revoke it whenever you like.

## Clients without OAuth: an API key

If your client cannot run the OAuth sign-in, create a Session Desk API key and send it as a bearer header. Keep the key secret, like a password; you can revoke it in Settings.

## What your assistant can do

- `list_prices`: What each server job costs in credits, and the limits.
- `list_audio`: The audio files you uploaded, newest first, with their ids and lengths.
- `audio_to_midi`: Start a piano (90 credits per minute) or melody (8 credits per file) conversion of one uploaded file. The only tool that spends credits.
- `get_job`: Status of one conversion; once done, the notes as text and the .mid download link.
- `list_jobs`: Your recent server jobs, newest first, with the status of each.
- `get_credits`: Your credit balance and plan, and whether the API is included.

Reading is free. audio_to_midi spends credits, and a failed job is refunded automatically. Uploaded audio and results are deleted after 7 days.

## Troubleshooting

- Stuck at 'needs authentication': delete the server and add it back, which makes the assistant redo the OAuth sign-in.
- “Not enough credits”: call get_credits, then add credits on the pricing page. You were not charged.
- “No audio uploaded yet”: upload a 16-bit WAV with the HTTP API first, then ask again.
- A tool says the API needs Session Desk: the job tools come with that plan; get_credits and list_prices work on any account.

## Audio to MIDI over MCP: common questions

### Does the MCP server cost extra?

No. It comes with the Session Desk plan. Conversions spend the same credits as on the site: 90 per minute for piano, 8 per file for melody.

### What can my assistant do?

List your uploaded audio, start a piano or melody conversion, check its status and read back the notes with pitch, start, end and velocity, plus the .mid link.

### Can it read a file from my computer?

No. Upload the audio first with the HTTP API (a 16-bit WAV); the assistant then finds it with list_audio.

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

A failed job is refunded on its own. With too few credits the tool says so and charges nothing.

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

Delete the server in your assistant and add it back; that starts a new sign-in. Clients without OAuth can send an API key instead.

### How long are results kept?

Uploaded audio and MIDI are kept for 7 days, then deleted. Your jobs are listed in Settings until then.


---

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