SoundCloud MCP Server
An MCP server that gives an assistant access to the SoundCloud API — search and discovery, your library, playlist management, social actions, and messaging.
README
SoundCloud MCP Server
An MCP server that gives an assistant access to the SoundCloud API — search and discovery, your library, playlist management, social actions, and messaging.
Runs locally over stdio. Public search works with app credentials alone; personal data and writes require a one-time browser login that persists and auto-refreshes its token.
Setup
-
Install dependencies:
npm install -
Create a SoundCloud app at https://soundcloud.com/you/apps and note the Client ID and Client Secret. Set the app's Redirect URI to match your
.env(defaulthttp://localhost:8888/callback). -
Copy the example env and fill it in:
cp .env.example .env -
Build:
npm run build
Authenticate (one time, for personal data)
npm run auth
This opens your browser, captures the OAuth callback automatically, and saves
tokens to ~/.soundcloud-mcp/tokens.json (mode 600). The token auto-refreshes,
so you normally only do this once. Use npm run auth -- --no-browser to print the
URL instead of opening it.
You can also log in from within a client by calling the connect_soundcloud
tool, and check state with auth_status.
Run
Standalone (uses the local .env):
npm start
Claude Desktop
-
npm run buildfirst — Claude Desktop runs the compiledbuild/index.js. -
Open the config file (or Settings → Developer → Edit Config):
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the server, using absolute paths and your app credentials in
env:{ "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 (closing the window isn't enough).
Gotchas:
- Paths must be absolute —
~and shell variables are not expanded. - Claude Desktop launches from the GUI, so it may not find a version-managed
node(nvm/nodenv/asdf). If the server won't start, set"command"to the absolute node path fromwhich node(e.g.nodenv which node), such as/Users/you/.nodenv/versions/22.22.0/bin/node. - Run
npm run authonce in a terminal so personal-data tools and writes work; public search works without it. Tokens persist to~/.soundcloud-mcp/tokens.jsonindependent of Claude Desktop, so you don't re-auth per client. - Only set
SOUNDCLOUD_REDIRECT_URIif you changed it from the default; it must match your SoundCloud app exactly.
Other MCP clients work the same way: run node build/index.js with the two
credential env vars set. The npm scripts additionally load a local .env
natively via Node's --env-file-if-exists (no dotenv dependency; needs Node 22+).
Tools
- Auth:
connect_soundcloud,auth_status,sign_out - Discovery:
search_tracks,search_playlists,search_users,get_track,get_user,get_playlist,get_related_tracks,get_stream_url,get_comments - Library (login):
get_profile,get_likes,get_playlists,get_recommended_tracks - Social (login):
like_track,unlike_track,follow_user,unfollow_user,add_comment - Playlists (login):
create_playlist,update_playlist,add_tracks_to_playlist,remove_track_from_playlist,delete_playlist - Messaging (login):
get_conversations,get_conversation,get_messages,send_message,start_conversation,mark_conversation_read
Environment variables
| Variable | Required | Description |
|---|---|---|
SOUNDCLOUD_CLIENT_ID |
yes | App client ID |
SOUNDCLOUD_CLIENT_SECRET |
yes | App client secret |
SOUNDCLOUD_REDIRECT_URI |
yes | Must match the app's redirect URI exactly (default http://localhost:8888/callback) |
SOUNDCLOUD_TOKEN_FILE |
no | Token storage path (default ~/.soundcloud-mcp/tokens.json) |
MCP_DEBUG |
no | Set true for verbose request logging to stderr |
Architecture
config.ts— env + constantstokenStore.ts— persists/refreshes user tokens on diskoauth.ts— OAuth flows (PKCE auth-code, client-credentials, refresh) + browser loginapi.ts— SoundCloud API client, fed an async token providertools.ts—registerAll(server, api): all tools/prompts/resources, transport-agnosticindex.ts— stdio entrypointauth.ts— one-time login CLI
Tool registration is decoupled from the stdio transport, so a future remote
(Streamable HTTP) entrypoint can reuse registerAll without changes.
MCP conventions
Built against the MCP 2025-06-18 spec: tools carry title + behavior
annotations (readOnlyHint/destructiveHint/idempotentHint/openWorldHint),
read tools return structuredContent alongside text, and track/playlist tools
emit resource_link blocks (permalink, artwork, audio stream) so clients can render them.
OAuth is handled locally per the spec's guidance that stdio servers take
credentials from the environment rather than the transport-level OAuth flow
(which is reserved for the future remote HTTP mode).
Notes
Unofficial integration, not affiliated with SoundCloud. Use within the
SoundCloud API Terms of Use.
The legacy /charts endpoint is no longer served by the public API and has been removed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。