Back to Browse

Soundcloud MCP Server

by Jamiew
Content & MediaLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Search SoundCloud, read your library, and manage playlists, follows, likes and reposts

About

Search SoundCloud, read your library, and manage playlists, follows, likes and reposts

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (4/4 approved); 5 highly-trusted packages.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

Client ID of your app from soundcloud.com/you/appsRequired

Environment variable: SOUNDCLOUD_CLIENT_ID

Client secret of your app from soundcloud.com/you/appsRequired

Environment variable: SOUNDCLOUD_CLIENT_SECRET

OAuth redirect URI registered on your appOptional

Environment variable: SOUNDCLOUD_REDIRECT_URI

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "soundcloud-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jamiew/soundcloud-mcp@1.2.0"
      ],
      "env": {
        "SOUNDCLOUD_CLIENT_ID": "your-soundcloud-client-id-here",
        "SOUNDCLOUD_REDIRECT_URI": "your-soundcloud-redirect-uri-here",
        "SOUNDCLOUD_CLIENT_SECRET": "your-soundcloud-client-secret-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

SoundCloud MCP Server

Search SoundCloud, discover music, manage playlists, and use your library from MCP clients like Claude Code and ChatGPT.

Here's an example:

https://github.com/user-attachments/assets/89625322-d329-46ef-9987-e25396b68c23

This integration is unofficial and not affiliated with SoundCloud.

It runs locally over stdio, or on Cloudflare Workers over Streamable HTTP so you can use it from your phone.

You have to deploy the worker yourself. We don't run a shared instance at this time.

Quick start with npx

Requires Node 22.18+ or 24.11+. Create an app at https://soundcloud.com/you/apps, register http://localhost:8888/callback as its redirect URI, then add the published package to your MCP client:

claude mcp add soundcloud \
  -e SOUNDCLOUD_CLIENT_ID=your-client-id \
  -e SOUNDCLOUD_CLIENT_SECRET=your-client-secret \
  -- npx -y @jamiew/soundcloud-mcp

Other clients use npx -y @jamiew/soundcloud-mcp with the same two variables. Log in with the connect_soundcloud tool. The package also ships soundcloud-mcp-auth for logging in from a terminal.

Local setup

To run from a checkout instead, you also need pnpm. See package.json for exact versions.

  1. Create an app at https://soundcloud.com/you/apps. Save its client ID and secret. Register http://localhost:8888/callback as the redirect URI, or set a matching custom URI below.

  2. Install and configure:

    pnpm install
    cp .env.example .env
    

    Fill in the app credentials in .env.

  3. Build and run:

    pnpm build
    pnpm start
    

For personal data and writes, run pnpm run auth. It opens a browser and saves rotating tokens to ~/.soundcloud-mcp/tokens.json with mode 600. Use pnpm run auth --no-browser to print the login URL. You can also use the connect_soundcloud and auth_status tools. Public search uses cached client-credentials tokens without user login. To sign out, run pnpm run auth --sign-out or call sign_out. Both revoke the app's access at SoundCloud and delete the token file.

Claude Code

The repo's .mcp.json registers this server as soundcloud-local. Run pnpm build, fill in .env at the repo root, then start claude in the repo and approve the project server when prompted. Its paths use ${CLAUDE_PROJECT_DIR:-.}, which falls back to . because Claude Code runs the server from the project root, so no absolute paths are needed. Login tokens still live in ~/.soundcloud-mcp/tokens.json.

Claude Desktop

Open Settings > Developer > Edit Config and add:

{
  "mcpServers": {
    "soundcloud": {
      "command": "node",
      "args": ["/absolute/path/to/soundcloud-mcp/build/index.js"],
      "env": {
        "SOUNDCLOUD_CLIENT_ID": "your-client-id",
        "SOUNDCLOUD_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Fully quit and reopen Claude Desktop. Other stdio clients use the same command and environment variables. Build before connecting; clients run JavaScript, not TypeScript. Paths must be absolute: clients do not expand ~ or shell variables. If a GUI client cannot find Node, use its absolute path from which node.

The config file is at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Local environment

pnpm start and pnpm run auth load .env through Node. Direct node build/index.js calls need environment variables supplied by the client.

VariablePurpose
SOUNDCLOUD_CLIENT_IDRequired app client ID
SOUNDCLOUD_CLIENT_SECRETRequired app secret
SOUNDCLOUD_REDIRECT_URIDefaults to http://localhost:8888/callback; must match the app
SOUNDCLOUD_TOKEN_FILEDefaults to ~/.soundcloud-mcp/tokens.json
MCP_DEBUGSet true for verbose stderr logging

Worker setup

  1. Run pnpm install. Set your worker name in wrangler.jsonc.

  2. Create a KV namespace:

    pnpm exec wrangler kv namespace create soundcloud-mcp-OAUTH_KV
    

    Put the returned ID in wrangler.jsonc under the OAUTH_KV binding. Keep the migrations block; on existing deployments it removes the old SoundCloudMCP Durable Object.

  3. Set each secret with pnpm exec wrangler secret put <NAME>:

    • SOUNDCLOUD_CLIENT_ID
    • SOUNDCLOUD_CLIENT_SECRET
    • COOKIE_ENCRYPTION_KEY: generate with openssl rand -hex 32
    • ALLOWED_USERS: comma-separated profile URL slugs (the name in soundcloud.com/name) or numeric user IDs. Display names do not match.
    • ENABLE_WRITE_TOOLS: set to true to offer the Social and Playlists tools. Unset, the worker only reads.
  4. Register https://<your-worker>.workers.dev/callback on your SoundCloud app. It must match exactly.

  5. Run pnpm worker:deploy, then connect your MCP client to https://<your-worker>.workers.dev/mcp and complete browser OAuth.

For local development, copy .dev.vars.example to .dev.vars, fill it in, and run pnpm worker:dev at http://localhost:8789. Register its /callback URL when testing local OAuth.

CI deploys pushes to main when the repository variable DEPLOY_ENABLED is true and secret CLOUDFLARE_API_TOKEN is set. If the repository variable ENABLE_WRITE_TOOLS is set, CI copies it into the worker secret of the same name before deploying. Forks must also set their account ID in .github/workflows/ci.yml. Reconnect clients after deploying new tools; clients cache the tool list.

Set ALLOWED_USERS unless you intend to offer public access. Empty or unset allows any SoundCloud account to use your API quota. Access is checked at the OAuth callback and tool registration, and the worker deletes stored tokens for accounts removed from the list. Public hosting also needs a review of SoundCloud's terms and shared rate limits; see #1. SoundCloud's terms restrict acting on users' behalf, so write tools stay off unless you set ENABLE_WRITE_TOOLS.

The worker serves an install page at /, a privacy page at /privacy, an icon at /icon.svg, and OAuth at /authorize, /callback, /token, and /register. It stores each user's SoundCloud tokens, encrypted, in KV until they call sign_out or 30 days pass. Update src/worker/privacy.ts if you change what the worker stores.

Tools

Both servers share these tools. Only the local server has connect_soundcloud and auth_status. On the hosted server, sign_out revokes the app's access at SoundCloud and deletes your stored tokens for every connected client.

GroupTools
Authconnect_soundcloud, auth_status (local only), sign_out
Searchresolve_url, search_tracks, search_playlists, search_users
Discoveryget_track, get_user, get_user_tracks, get_user_playlists, get_user_likes, get_user_reposts, get_user_web_profiles, get_related_tracks, get_related_artists
Audienceget_track_likers, get_track_reposters, get_playlist_reposters, get_user_followers, get_user_followings
Playback and browsingget_playlist, get_playlist_tracks, get_station, get_stream_url, get_comments, next_page
Library (login)get_profile, get_my_likes, get_my_reposts, get_my_playlists, get_my_tracks, get_my_followings, get_my_followers, is_following, get_feed, get_recently_played
Social (login)like_track, unlike_track, like_playlist, unlike_playlist, repost_track, unrepost_track, repost_playlist, unrepost_playlist, follow_user, unfollow_user, add_comment
Playlists (login)create_playlist, update_playlist, add_tracks_to_playlist, remove_track_from_playlist, delete_playlist
  • IDs accept numbers or URNs such as soundcloud:tracks:123; prefer URNs.
  • get_user_tracks and get_my_tracks accept sort="asc" or sort="desc".
  • The likes and reposts list tools accept kind="tracks" (default) or kind="playlists". The likes tools also accept kind="stations". get_feed accepts kind="all" to include playlist activity.
  • get_station takes a station URN from a track's or user's station_urn. like_playlist and unlike_playlist also accept station URNs.
  • Pass next_href to next_page for cursor pagination. Use SoundCloud API URLs only; authenticated requests include your token.
  • Playlist track changes replace the full tracklist. Adding or removing a track fails when SoundCloud hides some of the playlist's tracks, since the rewrite would delete them. Comments have no delete tool or public API endpoint; treat them as permanent.
  • Stream URLs expire, and blocked tracks have no stream. Full tracks stream over HLS; the only MP3 is a short preview.
  • Results list each track, user and playlist compactly: ids and URNs, title or name, uploader, duration, links, counts, access and dates. Playlists in a list show track_count without their tracks; read one with get_playlist for its tracklist. Permalinks drop utm_* tracking parameters. Pass verbose: true to get every field SoundCloud sends, such as descriptions. Resources return full objects.

Tools provide behavior annotations, structured results, and resource links. Resources include soundcloud://me/{profile,playlists,likes} and templates for soundcloud://{tracks,users,playlists}/{id}.

Development

Shared API and MCP code lives in src/{client,tools,types,server,icon}.ts. src/index.ts and src/stdio/ handle local auth and transport; src/worker.ts and src/worker/ handle Workers OAuth and HTTP.

  • pnpm check: lint, Markdown lint, both typechecks, and tests. Tests run on Node, plus a few in workerd against the bundled Worker.
  • pnpm verify: build and check the live stdio server, including read tools, resources, and a temporary playlist create/like/read/delete cycle. Requires login and writes to the connected account.
  • pnpm exec wrangler deploy --dry-run: bundle the worker without deploying. No test verifies a deployment.

See CLAUDE.md for safety and verification rules and GitHub issues for open work. Use the soundcloud-api-sync skill before adding endpoints or checking upstream changes. Issue #2 records the November 18, 2026 audit and deferred API coverage. The standalone audit is:

node .claude/skills/soundcloud-api-sync/audit.mjs --since 2026-10-28

The official spec is authoritative. Track release notes and spec edits.

Contributors

Reviews

No reviews yet

Be the first to review this server!