soundcloud-mcp-server
An MCP server that gives Claude access to your SoundCloud library, allowing you to manage playlists and tracks through natural language.
README
SoundCloud MCP Server
An MCP (Model Context Protocol) server that gives Claude access to your SoundCloud library. Connect it to Claude Web and manage your playlists and tracks through natural language.
Features
| Tool | Description |
|---|---|
get_my_playlists |
List all your playlists |
get_playlist |
Get a playlist with its full tracklist |
create_playlist |
Create a new playlist |
update_playlist |
Rename, redescribe, or reorder a playlist |
add_tracks_to_playlist |
Append tracks to an existing playlist |
remove_track_from_playlist |
Remove a track from a playlist |
delete_playlist |
Delete a playlist permanently |
search_tracks |
Search SoundCloud tracks by keyword and genre |
get_track |
Get details for a specific track |
get_stream_url |
Get a direct MP3 stream URL for a track (personal/authorized listening only — see Usage notes) |
Prerequisites
- A SoundCloud developer app — register at soundcloud.com/you/apps
- A publicly reachable server with HTTPS (required by Claude Web)
Setup
1. Clone and install
git clone https://github.com/marcellkehmstedt/soundcloud-mcp-server
cd soundcloud-mcp-server
npm install
npm run build
2. Configure environment variables
cp .env.example .env
| Variable | Required | Description |
|---|---|---|
PUBLIC_URL |
Yes | Public HTTPS URL of your server, e.g. https://mcp.example.com |
SOUNDCLOUD_REDIRECT_URI |
Yes | Must be {PUBLIC_URL}/soundcloud/callback |
PORT |
No | Port to listen on (default: 3000) |
MCP_DEBUG |
No | Set to true to enable verbose debug logging to stderr |
UI_BRAND_COLOR |
No | Accent color of the login UI (hex #rrggbb, default #3b82f6) |
3. Run
Directly:
npm start
With Docker Compose:
# Edit PUBLIC_URL and SOUNDCLOUD_REDIRECT_URI in docker-compose.yml first
docker compose up -d
Connect to Claude Web
- Open Claude Web → Settings → Integrations → Add integration
- Enter your server URL:
https://your-domain.com/mcp - Claude will redirect you to a login form — enter your SoundCloud Client ID and Client Secret from soundcloud.com/you/apps
- Authorize the app on SoundCloud
- You're connected — Claude can now use your SoundCloud tools
Your SoundCloud credentials are never stored on the server. The access token is issued to Claude directly and used only for API calls.
Endpoints
| Endpoint | Description |
|---|---|
GET /health |
Health check |
POST /mcp |
MCP Streamable HTTP endpoint (used by Claude) |
GET /diagnostic |
Test your SoundCloud token directly (see below) |
GET /.well-known/oauth-authorization-server |
OAuth metadata (RFC 8414) |
GET /.well-known/oauth-protected-resource |
Resource metadata (RFC 9728) |
Diagnostic endpoint
If a tool is not returning results, use this to verify your SoundCloud token works:
curl https://your-domain.com/diagnostic \
-H "Authorization: Bearer <your-soundcloud-access-token>"
Returns the HTTP status of GET /me and GET /me/playlists so you can tell immediately whether the issue is in the token, the API, or the server.
Debug logging
Enable with MCP_DEBUG=true. Logs go to stderr and cover:
- MCP session lifecycle (create / close)
- Every JSON-RPC method call and parameters
- SoundCloud API requests: method, URL, status, latency, body-read timing
[MCP] new session abc123
[MCP] → tools/call {"name":"get_my_playlists","arguments":{}}
[MCP] session abc123 — POST
[SC] → GET https://api.soundcloud.com/me/playlists (token: 47 chars)
[SC] ← 200 GET https://api.soundcloud.com/me/playlists — 312ms
[SC] reading body (content-length: 18432)
[SC] body parsed
Architecture
Claude Web
│ OAuth 2.0 (RFC 6749 + PKCE)
│ MCP Streamable HTTP (2025-03-26)
▼
Express server
├── /.well-known/* OAuth discovery (RFC 8414 + RFC 9728)
├── /register Dynamic Client Registration (RFC 7591)
├── /oauth/authorize Login form → SoundCloud OAuth redirect
├── /soundcloud/callback Token exchange
├── /oauth/token Issue / refresh MCP access tokens
└── /mcp MCP tools (StreamableHTTPServerTransport)
│
▼
SoundCloud API (api.soundcloud.com)
Token flow: Claude Web completes a PKCE OAuth flow against this server. The server exchanges Claude's auth code for a SoundCloud access token and passes it straight through as the MCP Bearer token. Each MCP session uses the token to call the SoundCloud API on Claude's behalf.
Usage notes
get_stream_urlreturns the direct MP3 URL that the SoundCloud API exposes for an authorized user. It is intended for personal, authorized listening only. Do not use it to re-host, re-distribute, or publicly broadcast tracks. Each user is responsible for complying with the SoundCloud API Terms of Use.- Each deployer registers their own SoundCloud developer app and supplies their own
client_id/client_secretvia the login form — the server never stores these credentials at rest.
Disclaimer
This is an unofficial integration. This project is not affiliated with, endorsed by, or sponsored by SoundCloud Limited. "SoundCloud" is a trademark of SoundCloud Limited, used here solely in a descriptive sense to refer to the third-party API this software interacts with.
License
This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
See the LICENSE file for the full license text.
Copyright (C) 2026 Marcell Kehmstedt.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。