soundcloud-mcp: Instructions file for Claude Code

CLAUDE.md

soundcloud-mcp CLAUDE.md is an instructions file for Claude Code from jamiew/soundcloud-mcp. It costs 1,389 tokens per session, scanned A, original, MIT.

A set of coding instructions for the soundcloud-mcp project, which connects coding tools to SoundCloud. It explains the project layout, its Node.js and Cloudflare Workers servers, and how shared code and API checks should be handled.

In plain words
What is it for?
Understanding where to edit the project, building and type-checking both servers, maintaining imports and TypeScript settings, and verifying SoundCloud playlist operations.
Why use it?
It gives coding agents the project-specific rules they need to make consistent changes and test them against the live SoundCloud API.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is jamiew/soundcloud-mcp's own configuration. It tells Claude Code how to work on soundcloud-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything soundcloud-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/jamiew/soundcloud-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/jamiew/soundcloud-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for soundcloud-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jamiew/soundcloud-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/jamiew/soundcloud-mcp/claude-md)
Your own site
<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.

agentmods 80×15 button for soundcloud-mcp CLAUDE.md

Your own site · 80×15
<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>
Per session 1,389 This file is loaded in full into every session.
When invoked 1,389 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 96157b48b0f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

CLAUDE.md · 105 lines

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.ts and src/stdio/. Build first; clients run build/index.js, not TypeScript.
  • Remote: src/worker.ts and src/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 /authorize and /oauth/token: https://secure.soundcloud.com. Legacy api.soundcloud.com/oauth2/token is deprecated.
  • Send Authorization: OAuth <token>, not Bearer.
  • 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 tokenExchangeCallback in worker.ts. Write rotated tokens back to the OAuth grant so future sessions receive them. Never refresh inside the /mcp handler; it only reads the props that OAuthProvider decrypts into ctx.props for 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=true and absolute next_href URLs. 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 access is playable, preview, or blocked. Blocked tracks have no stream. /tracks/{urn}/streams returns expiring HLS URLs plus an MP3 preview; the progressive http_mp3_128_url and /stream are gone.

Read the full file on GitHub · 105 lines

Changes

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.

  1. 4d ago Changed · +5 lines · +83 tokens per session 96157b48b0f5
  2. 1mo ago Changed · +5 lines · +71 tokens per session 59d711c995f3
  3. 1mo ago Changed · -35 lines · -486 tokens per session 1416f7395c79
  4. 2mo ago First seen · 130 lines · 1,721 tokens per session scan A 9baed9bda960

Subscribe to this mod's changes

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.

Related

soundcloud-mcp CLAUDE.md compared with instructions from other repositories

soundcloud-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
soundcloud-mcp CLAUDE.mdjamiew/soundcloud-mcpInstructions file15d agoMITA1,389Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode