MCP Server for controlling Dorico via Claude Desktop - A gift for composition majors
Project description
Dorico MCP Server
๐ต Control Dorico via Claude Desktop or ChatGPT - A gift for composition majors
This MCP (Model Context Protocol) server enables natural language control of Steinberg Dorico music notation software through Claude Desktop or ChatGPT Desktop.
Features
๐น Core Score Tools
- Create new scores with custom instruments
- Save and export scores (PDF, MusicXML)
- Navigate through the score
๐ผ Note Input
- Add notes with pitch, duration, and articulation
- Create chords
- Add rests and ties
๐ Notation
- Set key signatures (all major and minor keys)
- Set time signatures
- Add dynamics (pp, p, mp, mf, f, ff, etc.)
- Add tempo markings
- Add slurs and articulations
๐ต Harmony Tools (ํ์ฑํ)
- Analyze chord quality and Roman numerals
- Suggest next chords based on context
- Generate chord progressions
- Check voice leading rules (parallel 5ths/8ves)
๐ป Orchestration Tools (์ค์ผ์คํธ๋ ์ด์ )
- Complete instrument database with ranges
- Check playability (instrument range validation)
- Transposition for transposing instruments
- Get detailed instrument information
๐ Query Tools
- Get flows, layouts, and selection properties
- Access engraving, layout, and notation options
๐ Guided Workflows (Prompts)
- Harmonize a melody
- Orchestrate piano scores
- Species counterpoint exercises
Installation
Prerequisites
- Python 3.11+
- Steinberg Dorico (with Remote Control enabled)
- Claude Desktop or ChatGPT Desktop
Install from PyPI (Recommended)
pip install dorico-mcp-server
Install from Source (Development)
git clone https://github.com/happycastle114/dorico-mcp-server.git
cd dorico-mcp-server
pip install -e ".[dev]"
Enable Dorico Remote Control
- Open Dorico
- Go to Preferences โ General
- Enable Allow remote control
- Note the port number (usually 4560)
Configuration
Claude Desktop
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"dorico": {
"command": "python",
"args": ["-m", "dorico_mcp.server", "--stdio"]
}
}
}
ChatGPT Desktop
Add to your ChatGPT Desktop configuration:
macOS: ~/Library/Application Support/com.openai.chat/mcp.json
Windows: %LOCALAPPDATA%\com.openai.chat\mcp.json
Linux: ~/.config/com.openai.chat/mcp.json
{
"mcpServers": {
"dorico": {
"command": "python",
"args": ["-m", "dorico_mcp.server", "--stdio"]
}
}
}
Note: Restart the app after updating the configuration.
Usage Examples
Creating a Score
"Create a new score for string quartet in G major, 3/4 time, tempo 120"
Adding Notes
"Add a C major chord (C4, E4, G4) as quarter notes"
"Add a melody: C4, D4, E4, F4, G4 as eighth notes"
Harmony Analysis
"What chord would work well after I-IV-V?"
"Generate a 8-bar chord progression in A minor with an authentic cadence"
Orchestration Help
"Is F2 playable on the violin?"
"What's the comfortable range for French horn?"
"What transposition does the Bb clarinet use?"
Counterpoint
"Check if this counterpoint follows first species rules:
Cantus: C4, D4, E4, F4, E4, D4, C4
Counterpoint: G4, A4, B4, C5, B4, A4, G4"
"Generate a counterpoint melody above this cantus firmus: D4, E4, F4, G4, F4, E4, D4"
Voice Leading Validation
"Check this four-part harmony for parallel fifths:
Soprano: C5, D5, E5
Alto: E4, F4, G4
Tenor: G3, A3, B3
Bass: C3, D3, E3"
Available Tools (51)
| Category | Tools |
|---|---|
| Connection | connect_to_dorico, get_dorico_status |
| Score | create_score, open_score, save_score, export_score |
| Notes | add_notes, add_rest, add_slur, delete_notes |
| Notation | set_key_signature, set_time_signature, add_dynamics, add_tempo, add_articulation, add_text |
| Navigation | go_to_bar, add_instrument, remove_instrument |
| Transpose | transpose, transpose_octave, transpose_for_instrument |
| Playback | playback_control |
| Harmony | analyze_chord, suggest_next_chord, check_voice_leading, generate_chord_progression, realize_figured_bass, suggest_cadence |
| Orchestration | check_instrument_range, get_instrument_info, suggest_doubling, suggest_instrumentation, balance_dynamics |
| Counterpoint | check_species_rules, generate_counterpoint |
| Analysis | analyze_intervals, check_playability, validate_score, detect_parallel_motion, find_dissonances |
| Validation | validate_voice_leading, check_enharmonic |
| Proofreading | check_beaming, check_spacing |
| Query | get_flows, get_layouts, get_selection_properties, get_engraving_options, get_layout_options, get_notation_options |
Development
Run tests
pytest
Type checking
mypy src/dorico_mcp
Linting
ruff check src/dorico_mcp
Architecture
dorico-mcp-server/
โโโ src/dorico_mcp/
โ โโโ __init__.py # Package exports
โ โโโ server.py # FastMCP server with tools/resources/prompts
โ โโโ client.py # Dorico WebSocket client
โ โโโ commands.py # Dorico command builders (pure functions)
โ โโโ models.py # Pydantic models
โ โโโ tools/
โ โโโ __init__.py # Harmony analysis
โ โโโ instruments.py # Instrument database
โโโ tests/ # Pytest tests
โโโ docs/ # Documentation
โโโ examples/ # Usage examples
Dorico Remote Control API
This server communicates with Dorico via its WebSocket-based Remote Control API:
- Protocol: WebSocket (JSON messages)
- Port: Dynamic (usually 4560-4565)
- Authentication: Session token (stored locally after first approval)
Key Limitations
- Read access is limited: Can only read currently selected items
- Write-focused: Best for sending commands/input
- Full score reading: Requires MusicXML export
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
License
MIT License
Acknowledgments
- AbletonMCP - Inspiration for MCP structure
- MuseScore-MCP - Notation MCP reference
- Dorico.Net - Dorico API documentation
- music21 - Music theory analysis
Made with โค๏ธ for composition majors everywhere
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dorico_mcp_server-0.3.0.tar.gz.
File metadata
- Download URL: dorico_mcp_server-0.3.0.tar.gz
- Upload date:
- Size: 63.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47979998e8f28b496fb38fc2a9b570f715511dd494334134922cd601637843aa
|
|
| MD5 |
72d999871e5bff19f1761db8b023fb0f
|
|
| BLAKE2b-256 |
af434d899ee11247e07b98d3bdc70b2ee9c26abe2b4fb596f926dc22517a58f1
|
Provenance
The following attestation bundles were made for dorico_mcp_server-0.3.0.tar.gz:
Publisher:
release.yml on happycastle114/dorico-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dorico_mcp_server-0.3.0.tar.gz -
Subject digest:
47979998e8f28b496fb38fc2a9b570f715511dd494334134922cd601637843aa - Sigstore transparency entry: 798289732
- Sigstore integration time:
-
Permalink:
happycastle114/dorico-mcp-server@e7d6528effad64a0ad720d2895ad4b57c7b4c42c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/happycastle114
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e7d6528effad64a0ad720d2895ad4b57c7b4c42c -
Trigger Event:
push
-
Statement type:
File details
Details for the file dorico_mcp_server-0.3.0-py3-none-any.whl.
File metadata
- Download URL: dorico_mcp_server-0.3.0-py3-none-any.whl
- Upload date:
- Size: 46.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d487a80ee51907b606f0c281c9a9c87c462aad7adbdc3bbcb88f8f2a5d53a9
|
|
| MD5 |
b3e1d3f376da8e19b45ca34353d33a63
|
|
| BLAKE2b-256 |
2b5c3406fc897daeabfeba2e4f9313361a12074991a279dde30b0804eb522d07
|
Provenance
The following attestation bundles were made for dorico_mcp_server-0.3.0-py3-none-any.whl:
Publisher:
release.yml on happycastle114/dorico-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dorico_mcp_server-0.3.0-py3-none-any.whl -
Subject digest:
67d487a80ee51907b606f0c281c9a9c87c462aad7adbdc3bbcb88f8f2a5d53a9 - Sigstore transparency entry: 798289733
- Sigstore integration time:
-
Permalink:
happycastle114/dorico-mcp-server@e7d6528effad64a0ad720d2895ad4b57c7b4c42c -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/happycastle114
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e7d6528effad64a0ad720d2895ad4b57c7b4c42c -
Trigger Event:
push
-
Statement type: