Integration

Connect Claude, Cursor, or another MCP client to your AudD account

Add the AudD MCP server at mcp.audd.io to Claude Code, Claude, Cursor, VS Code, ChatGPT, or another MCP client: check usage, set up the API token, prepare plan payment links, and identify a song from a URL. Plus the local MCP server in the audd CLI for files on your computer, long recordings, and streams.

view .md auddmcpmcp servermodel context protocol

Let your AI agents work with your AudD account by using our MCP server at https://mcp.audd.io. It works with Claude, ChatGPT, Cursor, VS Code, and any other MCP client. You can ask the agent how many requests you have left this billing cycle, or what the song in a link is. It can also put your API token in a project and get a payment link ready when you want a bigger plan.

In Claude Code, add the server with one command:

claude mcp add --transport http audd https://mcp.audd.io/

Then, in Claude Code, run /mcp and follow the steps to sign in. The steps for other clients are in Connect your client.

Which server to connect

We have two MCP servers. Connect https://mcp.audd.io if you want to ask about your account, like “How many requests do I have left?” It has tools for your usage, your plan and billing, the API token, payment links, and the docs. It can also send a song to our API for you, but only by URL. An agent with no AudD account can’t use this server, but it can buy prepaid requests instead: see Agent notes: prepaid requests without an AudD account.

Connect audd mcp if you want to identify the songs in files on your computer, like “What’s the song in this file?” It’s the local server in our command-line tool, and it can also scan long recordings and manage your streams. After you sign in with audd login, it can show your usage and plans too. You can connect both servers. See The local server in the AudD CLI.

What you can ask

”How many AudD requests do I have left this cycle?”

The agent will call get_usage_stats. The results will contain the total for the current billing cycle, your allowance, the requests you have left, and the count for each day. If you want the last 30 days instead, ask for them: the agent will get the count for each of those days and can plot your usage. The tool is available with the usage:read scope.

Please note that the usage data contains only the daily totals: the agent can see how many requests you sent on a given day, but not which file or which call they were for.

”What song is playing in this clip? https://audd.tech/example.mp3”

The agent sends the URL to our API using the make_api_request tool, and our server will download the file and identify the music. If there are matches, the API returns a result that always contains artist, title, album, release_date, label, timecode, and song_link fields. If the server has successfully processed the request, but there are no matches, the result field is null. The tool uses the api:request scope, and every recognition is counted as a request on your plan, the same as when you call the API yourself.

The standard endpoint analyzes up to the first 12 seconds of audio. To find every song in a long recording, use recognize_enterprise on the local server, with a limit.

The agent will get the plans with their prices and included requests from list_plans. Once you pick one, it calls subscribe_to_plan, and you’ll receive a link to the payment page. We use Stripe for secure payments. You open the link and approve the payment in your browser: the tool never charges anything by itself. These tools are available with the billing:read and billing:pay scopes.

Connect your client

To connect, you need an AudD account. You can get one at dashboard.audd.io.

Claude Code

claude mcp add --transport http audd https://mcp.audd.io/

Then run /mcp in Claude Code and follow the steps to sign in. The command adds the server to the current project. If you want to use it in all your projects, add --scope user after the name:

claude mcp add --transport http audd --scope user https://mcp.audd.io/

Claude (web or desktop)

You can add the server in Claude (web or desktop) too. Go to Customize → Connectors → + Add → Add custom connector, enter a name and paste https://mcp.audd.io, and Claude walks you through the sign-in. On a Team or Enterprise plan, the connector has to be added in Organization settings → Connectors first, usually by an Owner.

Cursor

To use the server in every project, add it to ~/.cursor/mcp.json in your home directory. For one project, use .cursor/mcp.json in that project instead.

{
  "mcpServers": {
    "audd": {
      "url": "https://mcp.audd.io"
    }
  }
}

VS Code

Add the server to .vscode/mcp.json in your workspace:

{
  "servers": {
    "audd": {
      "type": "http",
      "url": "https://mcp.audd.io"
    }
  }
}

ChatGPT and other clients

Any MCP client that speaks Streamable HTTP with OAuth works. The server publishes standard discovery metadata and supports dynamic client registration, so there is nothing to pre-register: point the client at https://mcp.audd.io, and it takes care of the rest.

ChatGPT can connect to custom MCP servers over streaming HTTP with OAuth: see OpenAI’s guide Add custom MCP server. Workspace permissions apply to adding one.

Sign in and choose what the agent can do

The server uses OAuth 2.0 (authorization code with PKCE, refresh tokens). Each scope gives the agent the following tools:

ScopeGrantsTools
profile:readAccount email and connected sign-in methodsget_profile
account:readPlan, subscription status, paid-until date, bonus requestsget_account_status
usage:readAggregate daily request counts and allowanceget_usage_stats
billing:readPayment history, amount owed, available plansget_billing_history, get_amount_owed, list_plans
billing:payCreating Stripe payment links (never charges by itself)subscribe_to_plan, create_renewal_payment, buy_bonus_requests
api:requestCalling the AudD API as the account, on the account’s quotamake_api_request
token:readReading the account api_token (sensitive)get_api_token
token:writeRotating the api_token; the old token stops working immediatelyrotate_api_token

get_api_docs returns the official API documentation as markdown, by topic: api, streams, enterprise, and file-upload.

When a client connects, you’ll sign in through dashboard.audd.io and approve the scopes it asked for. You can untick the ones you don’t want to give: if the agent only has to tell you how many requests you have left, usage:read is enough. The token and payment scopes are only needed if you want the agent to set up your token or prepare payments.

The tool list itself is scoped: tools whose scope you didn’t grant don’t appear to the client at all. Access to rotate_api_token isn’t available by default: clients that register themselves (dynamic client registration) get a default grant without token:write. If a client asks for scopes beyond its registration, the sign-in fails with invalid_scope, and the server doesn’t silently grant less.

The access tokens are short-lived: the client refreshes them with a refresh token. You can revoke the access at any time using the standard OAuth revocation endpoint, or remove the server from your client, and it will stop making calls.

What the server won’t do

The payment tools never charge anything by themselves. They create a link to a Stripe payment page, and the payment only happens if you open the link and approve it in your browser. The server also can’t take a file from your computer, since make_api_request accepts audio by URL only, and the usage data contains only the daily totals.

The rotate_api_token tool replaces the token with a new one, and the old token stops working at once: everything that uses it has to get the new one. Please ensure that your client asks you before it runs this tool or a payment tool.

make_api_request spends real requests, and it can change your streams too. The callbacks from all the streams are sent to the same URL, so if the agent calls setCallbackUrl, the new URL replaces the old one for every stream. If the agent works on its own, keep the confirmation on for this tool as well.

Please be careful when the same agent can also read untrusted content, such as web pages or uploaded files. Text in them can ask the agent to call these tools (this is called prompt injection).

You can ask the agent to set up the token for a project: “Set up this project’s AUDD_API_TOKEN from my account.” It will call get_api_token once, and the token will be saved in the project, so your code can use it to call the API or one of our SDKs. If you send many requests, it’s more efficient and more reliable than sending each of them through the MCP server.

The local server in the AudD CLI

Our command-line tool also works as an MCP server. When your client starts audd mcp, the agent can recognize files from your computer and URLs, scan long recordings, manage your streams, and add songs to your custom catalog. There are also tools for your usage, account, plans, payment links, and the docs. The server uses the same token, profile, results cache, and stream store as the CLI.

  1. Install the CLI, for example with npm install -g @audd/cli or brew install auddmusic/tap/audd. The other ways are in Identify music from the command line.

  2. Sign in once in a terminal:

    audd login

    audd login will direct you to your browser to approve the sign-in, after which it saves your API token. The usage, account, plans, and payment tools only work after this sign-in. If you just want to recognize music, you can store your token with audd config set token your-api-token instead. Get your token at dashboard.audd.io.

  3. Add the server to your client. In Claude Code:

    claude mcp add audd -- audd mcp --max-requests 200

    In Cursor, the client runs the command audd with the argument mcp:

    {
      "mcpServers": {
        "audd": {
          "command": "audd",
          "args": ["mcp", "--max-requests", "200"]
        }
      }
    }

    In VS Code, .vscode/mcp.json:

    {
      "servers": {
        "audd": {
          "type": "stdio",
          "command": "audd",
          "args": ["mcp", "--max-requests", "200"]
        }
      }
    }

    For any other client, the command is audd mcp, with no arguments. To connect both servers, give each one its own name, like audd and audd-local.

The --max-requests 200 flag sets a limit for the whole session. The agent can’t spend more than 200 requests: when less is left than a scan’s limit, the limit sent is lowered to what is left, and a call that would go over the limit is refused. A recognition or a catalog upload is counted as 1 request, and an enterprise scan as its limit. If you don’t pass the flag, the default from audd config set max_requests N is used, if you’ve set one.

You can give recognize a file from your computer or a URL. When you send a long recording to recognize_enterprise, our servers think of it as a bunch of 12-second audio chunks, and every chunk counts as a request, so the tool needs a limit. With dry_run, it only shows how many requests the scan would use.

catalog_add fingerprints a song into your custom catalog, and the songs uploaded this way will be available for recognition only to you. Custom catalog access is enabled per account. An upload isn’t counted as a request, and it is never retried automatically.

token_rotate doesn’t rotate the token: it returns the command for you to run, audd token rotate. Each tool takes one file, not a folder. The parameters of every tool are in the AudD CLI guide for AI agents.

Troubleshooting

The agent says it doesn’t have a tool for it

If the agent doesn’t have a tool, you didn’t grant its scope: the tool list only shows the tools you have access to. To add a scope, sign out and sign in again. In Claude Code, you can do it with these commands:

claude mcp logout audd
claude mcp login audd

rotate_api_token isn’t in the list

Clients that register themselves get a default grant without token:write. To rotate the token, run audd token rotate in a terminal after audd login, or rotate it in the dashboard.

The agent can’t send a file from my computer

make_api_request accepts audio by URL only. If the file is not available by a URL (for example, if it’s recorded locally or isn’t on a server), connect the local server and ask again.

The result is null

If the server has successfully processed the request, but there are no matches, the result field is null. The standard endpoint analyzes up to the first 12 seconds of audio, so the song might start later in the file. Ask the local server to send a clip from another moment with at, or to scan the whole file with recognize_enterprise and a limit.

Something stopped working after the token was rotated

Rotation is immediate: the old token stops working at once. Put the new token everywhere the old one was used. For the CLI, audd token refresh-local fetches the current token again.

A local tool fails with login_required

The tool needs a sign-in. Run audd login in a terminal, and then ask the agent again.

The tool can’t make payment links until you approve payment access. To do it, run the command from the error in a terminal, then approve it in your browser.


Related

Reading this as an AI agent? The raw Markdown is at integrations/mcp-server.md, and the full index is /resources/llms.txt.