Csound MCP Server
Enables AI agents to synthesize sounds using Csound, including subtractive synthesis and drum synthesis, via Model Context Protocol tools.
README
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.
Prerequisites
Installation & Running
The package is built with Python and depends on mcp. You can run the server directly using uv:
uv run musmcp
Adding 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"
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.