spotify-mcp CLAUDE.md

spotify-mcp CLAUDE.md is an instructions file for coding agents from jamiew/spotify-mcp. It costs 1,846 tokens per session, scanned A, original, from a forked repository, MIT.

A set of project instructions for developing the spotify-mcp server, which connects coding tools to Spotify. It documents setup commands, required Spotify credentials, testing, type checks, and Git rules.

In plain words
What is it for?
Use it when setting up, testing, type-checking, configuring, or committing changes to the spotify-mcp server.
Why use it?
It gives contributors one place to find the commands and checks expected for this codebase. This reduces setup mistakes and helps catch problems before commits.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jamiew/spotify-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/jamiew/spotify-mcp

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 spotify-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jamiew/spotify-mcp/claude-md.svg)](https://agentmods.dev/instructions/jamiew/spotify-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jamiew/spotify-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/jamiew/spotify-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,846 This file is loaded in full into every session.
When invoked 1,846 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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 $0.01846 $0.01846
Opus 5 $0.00923 $0.00923
Sonnet 5 $0.00369 $0.00369
Haiku 4.5 $0.00185 $0.00185

Measured 4d ago against content hash c58678e6a1a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spotify-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 · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides essential guidance for working with the Spotify MCP server codebase.

Essential Commands

Development

  • uv run spotify-mcp - Start the MCP server (local alias; the package publishes as spotify-mcp-jamiew, so end users run uvx spotify-mcp-jamiew)
  • uv sync - Sync dependencies
  • uv run pytest - Run all tests (must pass before commits)
  • uv run mypy src/ - Type checking (must pass before commits)
    • Optional speedup on mypy 2.x: uv run mypy src/ --num-workers 4 (parallel checking)

Environment Setup

Required environment variables:

  • SPOTIFY_CLIENT_ID - Spotify API Client ID
  • SPOTIFY_CLIENT_SECRET - Spotify API Client Secret

Three-tier configuration (highest priority first):

  1. Environment variables (for production/MCP usage)
  2. .env file (for local development)
  3. pyproject.toml defaults (fallback - edit [tool.spotify-mcp.env] section)

Git Workflow

Quality Gates: Before any commit, ALWAYS run:

  • uv run mypy src/ - Type checking must pass
  • uv run pytest - All tests must pass

Commit Message Format:

Brief description of change

Detailed explanation of what and why.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Releasing

Publishing is fully automated via OIDC trusted publishing — no tokens stored anywhere.

  1. Bump version in pyproject.toml, commit, and create a GitHub release for tag vX.Y.Z (the /release skill or release.sh does the tag + gh release create).
  2. The release: published event triggers .github/workflows/publish.yml, which tests → builds → publishes to PyPI (pypa/gh-action-pypi-publish, OIDC) → publishes to the MCP Registry (mcp-publisher login github-oidc), injecting the tag version into server.json at publish time.

The package publishes to PyPI as spotify-mcp-jamiew and to the registry as io.github.jamiew/spotify-mcp.

One-time setup (already required before the first successful run):

  • PyPI: register a trusted publisher for project spotify-mcp-jamiew → owner jamiew, repo spotify-mcp, workflow publish.yml.
  • MCP Registry: the io.github.jamiew/* namespace is authenticated automatically via GitHub OIDC.

Read the full file on GitHub · 144 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 First seen · 144 lines · 1,846 tokens per session scan A c58678e6a1a9

Subscribe to this mod's changes

spotify-mcp CLAUDE.md is an instructions file published in the GitHub repository jamiew/spotify-mcp (9 stars, last pushed 1mo ago), licensed MIT. It adds 1,846 tokens to every session, about $0.0092 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.