
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
music-theory-mcp
Advanced tools
Give your AI coding assistant musical knowledge — scales, chords, progressions, key detection, genre-aware composition intelligence, and rhythm patterns. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible IDE.
Give your AI coding assistant musical knowledge.
Scales, chords, progressions, key detection, genre-aware composition intelligence, and rhythm patterns.
4 free tools work instantly. 9 pro tools unlock with a free CODEDSWITCH_API_KEY (50 calls/day). Unlimited plans at codedswitch.com/pricing.
Works with Claude Code, Cursor, Windsurf, and any MCP-compatible IDE.
Companion to WebEar — WebEar gives your AI ears, Music Theory MCP gives it a brain for music.
| Tool | Description |
|---|---|
get_scale | Notes & intervals for 20+ scale types (major, minor, pentatonic, blues, dorian, etc.) |
get_chord | Notes for 22+ chord types (triads, 7ths, 9ths, sus, aug, dim, etc.) |
transpose_note | Shift a note by semitones |
get_interval | Interval between two notes |
CODEDSWITCH_API_KEY)| Tool | Description |
|---|---|
identify_chord | Name a chord from its notes |
detect_key | Detect the key from observed notes with confidence scores |
resolve_progression | Roman numerals → actual chords in any key |
suggest_next_chord | "What chord comes next?" with voice leading intelligence |
get_diatonic_chords | All 7 chords in any key |
get_genre_profile | Full genre intel: progressions, instruments, BPM, mood, swing |
suggest_genre | Match genre from BPM / key / mood / scale |
get_genre_rhythms | Drum patterns (kick/snare/hat step arrays) per genre |
transpose_progression | Shift an entire chord progression |
Get a free key at codedswitch.com/developer — 50 pro calls/day included.
Trap · Boom Bap · Drill · Lo-Fi Hip Hop · R&B · Pop · Afrobeats · Reggaeton · Jazz · EDM · Gospel
Each genre includes: chord progressions, recommended scales, BPM range, instruments, rhythmic feel, swing amount, common keys, and mood descriptors.
npx music-theory-mcp
npm install -g music-theory-mcp
Add to .mcp.json:
{
"mcpServers": {
"music-theory": {
"command": "npx",
"args": ["music-theory-mcp"],
"env": { "CODEDSWITCH_API_KEY": "csk_your_key_here" }
}
}
}
Add to .cursor/mcp.json:
{
"mcpServers": {
"music-theory": {
"command": "npx",
"args": ["music-theory-mcp"],
"env": { "CODEDSWITCH_API_KEY": "csk_your_key_here" }
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"music-theory": {
"command": "npx",
"args": ["music-theory-mcp"],
"env": { "CODEDSWITCH_API_KEY": "csk_your_key_here" }
}
}
}
Omit the
envblock to use free tools only.
Once configured, your AI assistant can use the tools naturally:
"What chords are in the key of F minor?"
→ get_diatonic_chords({ key: "F", mode: "minor" })
→ Fm, Gdim, Ab, Bbm, Cm, Db, Eb
"Give me a trap beat in C minor"
→ get_genre_profile({ genre: "trap" })
→ Progressions: i-iv-VI-v, scales: minor/phrygian, BPM: 130-170
→ get_genre_rhythms({ genre: "trap" })
→ Kick/snare/hat patterns ready for a sequencer
"What key is this melody in? C, D, E, F#, G, A, B"
→ detect_key({ notes: ["C", "D", "E", "F#", "G", "A", "B"] })
→ G major (100% confidence)
"I'm on a V chord in Bb major, what should come next?"
→ suggest_next_chord({ current_numeral: "V", key: "Bb", mode: "major" })
→ I (Bb), vi (Gm), IV (Eb) — ranked by voice leading tendency
| WebEar | Music Theory MCP | |
|---|---|---|
| What | Captures & analyzes live audio | Reasons about music theory |
| Analogy | Ears | Brain |
| API keys | Required (CodedSwitch) | Free tier: none / Pro: CodedSwitch key |
| Together | Hear what's playing → analyze if it's harmonically correct → suggest fixes |
Part of the CodedSwitch Studio ecosystem — AI-powered music creation.
MIT
FAQs
Give your AI coding assistant musical knowledge — scales, chords, progressions, key detection, genre-aware composition intelligence, and rhythm patterns. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible IDE.
We found that music-theory-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.