Borrowing it
Nothing to install: this file belongs to jamiew/soundcloud-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/jamiew/soundcloud-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/jamiew/soundcloud-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/jamiew/soundcloud-mcp/claude-md)<a href="https://agentmods.dev/instructions/jamiew/soundcloud-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jamiew/soundcloud-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/jamiew/soundcloud-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jamiew/soundcloud-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01389 | $0.01389 |
| Opus 5.5 | $0.00556 | $0.00556 |
| Sonnet 5.5 | $0.00278 | $0.00278 |
| Haiku 4.5 | $0.00139 | $0.00139 |
Grade A, and why
soundcloud-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent guide
See README.md for setup and
GitHub issues for open work.
Issue #2 holds the dated API coverage gap list.
Layout
One pnpm package supports Node 22.18+ or 24.11+ LTS. Use package.json for exact
engine and dependency versions.
- Shared:
src/{client,tools,types,server,icon}.ts. Keep this code runtime-neutral: no Node or Workers APIs. Put tool changes here so both servers receive them. - Local:
src/index.tsandsrc/stdio/. Build first; clients runbuild/index.js, not TypeScript. - Remote:
src/worker.tsandsrc/worker/.
Node and Workers need separate typechecks because their fetch and Request
types differ. pnpm typecheck runs both. Keep worker paths excluded from
tsconfig.build.json: exclude replaces the base value rather than extending it.
Relative imports need .js extensions for NodeNext; Wrangler resolves them to TS.
Keep global fetch bound to globalThis for Workers.
API rules
Use sources in this order: the
OpenAPI spec (openapi/api.yaml),
SoundCloud's Agents.md in that repo, then the
API guide.
Use the soundcloud-api-sync skill before adding endpoints, when these rules
conflict with observed behavior, or when asked about upstream changes. Check the
spec, not memory: endpoints have disappeared without notice and return 405.
After auditing, update the synced-through date in the skill's SKILL.md and the
gap list in issue #2. Do not copy patterns from the unmaintained official Ruby,
Python, or JavaScript SDKs.
- API host:
https://api.soundcloud.com. OAuth/authorizeand/oauth/token:https://secure.soundcloud.com. Legacyapi.soundcloud.com/oauth2/tokenis deprecated. - Send
Authorization: OAuth <token>, notBearer. - Normalize numeric IDs to URNs at the client boundary. Numeric path IDs are deprecated.
- Refresh tokens are single-use. Persist each replacement or the user must authorize again. Only one component may refresh a token.
- The worker's sole refresh owner is
tokenExchangeCallbackinworker.ts. Write rotated tokens back to the OAuth grant so future sessions receive them. Never refresh inside the/mcphandler; it only reads the props that OAuthProvider decrypts intoctx.propsfor each request. - OAuth 2.1 requires PKCE. Preserve the verifier across redirects; the worker stores it in KV under the OAuth state token.
- Cache client-credentials tokens: limits are 50 per 12 hours per app and 30 per hour per IP. Never mint one per request.
- Pagination uses
linked_partitioning=trueand absolutenext_hrefURLs. Fetch those URLs as supplied, without rebasing. Default page size is 50; maximum is 200. - Playlist writes replace the entire tracklist. To append, read, concatenate,
then PUT. Send track IDs above int32 (
2147483647) as URN strings to avoid 422. - Track
accessisplayable,preview, orblocked. Blocked tracks have no stream./tracks/{urn}/streamsreturns expiring HLS URLs plus an MP3 preview; the progressivehttp_mp3_128_urland/streamare gone.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +5 lines · +83 tokens per session 96157b48b0f5
- 1mo ago Changed · +5 lines · +71 tokens per session 59d711c995f3
- 1mo ago Changed · -35 lines · -486 tokens per session 1416f7395c79
- 2mo ago First seen · 130 lines · 1,721 tokens per session scan A 9baed9bda960
soundcloud-mcp CLAUDE.md is an instructions file published in the GitHub repository jamiew/soundcloud-mcp (1 stars, last pushed 5d ago), licensed MIT. It adds 1,389 tokens to every session, about $0.0056 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
soundcloud-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| soundcloud-mcp CLAUDE.mdjamiew/soundcloud-mcp | Instructions file | 1 | 5d ago | MIT | A | 1,389 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |