Csound MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Csound MCP Server Create a punchy house kick with high drive"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Csound MCP Server
The Csound MCP server exposes Csound audio engine functionality to AI agents via the Model Context Protocol (MCP).
Features
Stateless Architecture: Lightweight execution using standard Csound.
Subtractive Synthesis: Exposes a
synthesize_sawtooth_lead_basstool that provides LLM-friendly 0-255 mapped ADSR parameters to shape a sawtooth oscillator run through a lowpass filter.Drum Synthesis: Exposes a
synthesize_kick_drumtool specialized for crafting Sub Basses, punchy House kicks, and distorted Hardstyle kicks using intuitive parameters likepunchanddrive.Semantic Guardrails: The tool parameters are heavily documented with acoustic definitions (e.g., matching "fast attack" to integer ranges), and MCP Resources (
lore://sound_design,lore://drum_design) are provided to teach agents how to synthesize classic instruments.Error Handling: Gracefully captures and returns
stdoutandstderrcontent to the agent ifcsoundcompilation or execution fails.
Related MCP server: SuperCollider MCP Server
Prerequisites
Installation & Running
The package is built with Python and depends on mcp. You can run the server directly using uv:
uv run musmcpAdding to an MCP Client
To configure this server in an MCP client (such as Claude Desktop or Cursor), add it to your configuration (adjust the root path to your workspace directory):
{
"mcpServers": {
"musmcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/workspace/musmcp",
"run",
"musmcp"
]
}
}
}Usage Example (Agent perspective)
Before using the synthesis tools, an agent can read the provided lore://sound_design and lore://drum_design MCP resources to understand how to map acoustic concepts to the 0-255 integers.
1. synthesize_sawtooth_lead_bass
The synthesize_sawtooth_lead_bass tool is specifically designed to be easy for LLM agents to use. It abstracts complex Csound envelopes into simple 0-255 integers.
Here is how an agent should map desired sounds to the tool's parameters:
1. A Plucky/Percussive Bass (Fast attack, fast decay, no sustain)
{
"pitch": 55.0,
"duration": 1.5,
"cutoff_hz": 400.0,
"attack": 5,
"decay": 80,
"sustain": 0,
"release": 50,
"output_filename": "bass_pluck.wav"
}2. A Warm Pad (Slow attack, high sustain, long release)
{
"pitch": 220.0,
"duration": 4.0,
"cutoff_hz": 1200.0,
"attack": 150,
"decay": 100,
"sustain": 200,
"release": 200,
"output_filename": "warm_pad.wav"
}3. An Aggressive Lead (Fast attack, high sustain, bright filter)
{
"pitch": 880.0,
"duration": 2.0,
"cutoff_hz": 4500.0,
"attack": 10,
"decay": 50,
"sustain": 255,
"release": 20,
"output_filename": "aggr_lead.wav"
}2. synthesize_kick_drum
A dedicated tool for creating everything from soft acoustic thumps to booming 808s and distorted hard kicks.
1. 808 Sub Kick (Booming, no hard click)
{
"fundamental_hz": 45.0,
"punch": 20,
"decay": 220,
"drive": 10,
"output_filename": "808_sub.wav"
}2. Hardstyle / Industrial Kick (Heavily distorted with massive click)
{
"fundamental_hz": 50.0,
"punch": 200,
"decay": 150,
"drive": 220,
"output_filename": "hard_kick.wav"
}Available Tools
2 toolssynthesize_kick_drumA
Generate a classic analog-style kick drum using a Sine oscillator with a pitch envelope.
Args: fundamental_hz: The resting sub-bass frequency in Hz (e.g., 40.0 - 80.0 Hz). punch: The speed and intensity of the initial transient click (0-255). - 0-50: Soft, acoustic-style thump. - 100-150: Punchy EDM/House kick. - 200-255: Hard, laser-like transient (Psytrance/Hardstyle). decay: The length of the amplitude decay (0-255). - 10-50: Short, tight clicky kick. - 100-150: Standard club kick. - 200-255: Long, booming 808 sub. drive: Amount of saturation/distortion to apply (0-255). - 0-20: Clean sine wave, smooth sub. - 100-150: Warm, saturated analog feel. - 200-255: Heavily distorted, gabber/hardcore kick. output_filename: Optional name for the output file.
Returns: The absolute path to the generated .wav file.
Inputs: decay (required), drive (required), punch (required), fundamental_hz (required), +1 more. Returns: result
synthesize_sawtooth_lead_bassA
Generate a tone using a subtractive sawtooth oscillator and lowpass filter. Perfect for designing classic synthesizer Basses, Leads, and Plucks.
Args: pitch: The fundamental frequency in Hz (e.g., 55.0 for Bass, 440.0 for Lead). duration: The total length of the note in seconds. cutoff_hz: Filter brightness. - 100-400: Dark, muffled (Bass, Deep Pads) - 800-1500: Warm, midrange (Warm Pads, Keys) - 2000-5000: Bright, piercing (Leads, Plucks) attack: Time to reach max volume (0-255). - 0-10: Instant hit (Plucks, Kicks, Percussive Bass) - 50-100: Medium swell (Soft Leads, Strings) - 150-255: Very slow fade in (Ambient Pads, Drones) decay: Time to drop from max volume to sustain level (0-255). - 10-50: Fast drop (Punchy Bass) - 80-150: Natural decay (Keys, Guitars) sustain: Level held after decay phase (0-255). - 0: Note dies out entirely (Plucks, Percussion) - 255: Note holds at maximum volume (Organs, Synths) release: Fade out time after the note ends (0-255). - 10-30: Stops immediately (Staccato Bass, Tight Leads) - 150-255: Long ringing tail (Cinematic Pads, Reverbs) output_filename: Optional name for the output file (e.g. 'warm_pad.wav').
Returns: The absolute path to making the generated .wav file.
Inputs: decay (required), pitch (required), attack (required), release (required), +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools target completely distinct synthesis domains: one generates pitched sawtooth-based notes with full ADSR control, the other generates percussion via a pitch-enveloped sine. There is no ambiguity or overlap between them.
Both tools follow the same synthesize_verb_noun pattern, which is consistent. The noun modifiers differ in specificity (sawtooth_lead_bass vs kick_drum), but the overall convention is uniform.
With only 2 tools, the server feels very thin for what appears to be a Csound synthesis toolkit. A synthesis server would naturally expect more generators (e.g., pads, plucks, snare, hi-hats, noise, additive/PM synthesis), making 2 tools under-scoped.
The server covers two synthesis archetypes but leaves major gaps—no percussion beyond kick (no snare, hi-hat, clap), no pad/ambient generator, no general-purpose note/synth tool, and no ability to layer or render composed arrangements. An agent needing common synthesis tasks will hit dead ends.
Maintenance
Related MCP Connectors
Synth, sampler and music tracker for AI assistants: sound effects, UI sounds and songs as audio.
CC0 sound effects API for AI agents — search, preview, and download via MCP.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Score video, make music as an agent: 100+ AI instruments play your MIDI, audio, stems, Logic/Ableton
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to generate and control real-time audio synthesis through natural language descriptions using SuperCollider. Features 10 built-in synth types, pattern sequencing, audio recording, and server lifecycle management for creating sounds from simple English descriptions.112MIT
- AlicenseBqualityNot gradedmaintenanceEnables execution of SuperCollider synth code through the Model Context Protocol using supercolliderjs, allowing AI assistants to generate and run audio synthesis programs.28 npm-
- FlicenseCqualityDmaintenanceEnables AI agents to generate, manipulate, and perform algorithmic music using Strudel.cc live coding environment. Provides 46+ tools for pattern generation across multiple genres, music theory operations, real-time audio analysis, and AI-powered composition.50-
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to interact with constraint theory tools for pitch snapping, music generation, diagnostic analysis, and audio rendering through the Model Context Protocol.2MIT