Enables AI-assisted music composition by compiling arrangement structures, patterns, and musical constraints into playable MIDI files through a deterministic compilation pipeline.
CHUK Music MCP Server
A music design system for MCP — shadcn/ui for music composition.
You copy patterns into your project, you own them, you modify them. The library provides correct primitives and well-designed starting points, not a black box.
Vision
Music as a design system, not a DAW.
LLMs operate at the intent level — structure, energy, arrangement. The system handles music theory. Composers own their patterns.
Features
Pattern System: Copyable, ownable pattern templates (drums, bass, harmony, melody, fx)
Style System: Constraint bundles (melodic-techno, ambient, cinematic) that guide composition
Arrangement Model: Layers × Sections structure with energy curves and harmony
MIDI Export: Deterministic compilation from YAML to playable MIDI files
MCP Integration: Full MCP server with 30+ tools for AI-assisted composition
Quick Start
The Stack
Key Concepts
Patterns (The shadcn Layer)
Patterns are copyable, ownable, modifiable templates:
Arrangements (Your Composition)
Styles (Constraint Bundles)
Styles narrow the solution space without forcing specific choices:
Score IR (Intermediate Representation)
The Score IR is the stable, inspectable interface between arrangement and MIDI:
Same arrangement → same Score IR → same MIDI. Always.
The IR is designed for:
Inspection: Human-readable JSON/YAML output
Diffing: Canonical ordering makes diffs meaningful
Testing: Golden-file tests compare IR directly
Debugging: Full source traceability (layer, pattern, section, bar, beat)
Schema version: score_ir/v1
MCP Tools
The server provides 30+ tools organized by domain:
Arrangement Tools (6):
music_create_arrangement- Create a new arrangementmusic_get_arrangement- Get arrangement detailsmusic_list_arrangements- List all arrangementsmusic_save_arrangement- Save to YAMLmusic_delete_arrangement- Delete an arrangementmusic_duplicate_arrangement- Clone an arrangement
Structure Tools (11):
music_add_section,music_remove_section,music_reorder_sectionsmusic_set_section_energy,music_add_layer,music_remove_layermusic_arrange_layer,music_mute_layer,music_solo_layermusic_set_layer_level,music_set_harmony
Pattern Tools (6):
music_list_patterns,music_describe_patternmusic_add_pattern,music_remove_patternmusic_update_pattern_params,music_copy_pattern_to_project
Style Tools (6):
music_list_styles,music_describe_stylemusic_suggest_patterns,music_validate_stylemusic_apply_style,music_copy_style_to_project
Compilation Tools (6):
music_compile_midi,music_preview_sectionmusic_compile_to_ir,music_diff_irmusic_export_yaml,music_validate
Development
Project Structure
Architecture
See roadmap.md for the full design document.
License
MIT