Digitakt MIDI MCP Server
Enables control of the Elektron Digitakt II drum machine through MIDI commands. Supports triggering drum sounds, adjusting parameters, switching patterns, and sending note sequences programmatically.
README
Digitakt MIDI MCP Server
An MCP (Model Context Protocol) server for controlling the Elektron Digitakt II via MIDI.
Features
- Send MIDI Notes: Trigger drum sounds on specific tracks
- Control Parameters: Adjust filters, envelopes, and other parameters via CC messages
- Program Changes: Switch between patterns
- Note Sequences: Send rhythmic patterns programmatically
Installation
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Make sure your Digitakt II is connected via USB with Overbridge
Usage
Running the Server Manually
source venv/bin/activate
python server.py
Configuring with Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"digitakt-midi": {
"command": "/Users/feamster/src/digitakt-midi-mcp/venv/bin/python",
"args": ["/Users/feamster/src/digitakt-midi-mcp/server.py"]
}
}
}
Then restart Claude Desktop.
Available Tools
send_note
Send a MIDI note to trigger drums on the Digitakt.
Parameters:
note(required): MIDI note number (0-127). For Digitakt: 60=C3 (Track 1), 61=C#3 (Track 2), etc.velocity(optional): Note velocity (1-127), default 100duration(optional): How long to hold the note in seconds, default 0.1channel(optional): MIDI channel (1-16), default 1
Example:
Play kick drum on track 1
send_cc
Send a Control Change message to adjust Digitakt parameters.
Parameters:
cc_number(required): CC number (0-127)value(required): CC value (0-127)channel(optional): MIDI channel (1-16), default 1
Common CC Numbers for Digitakt:
- 74: Filter Frequency
- 71: Filter Resonance
- 73: Attack
- 75: Decay
- 16-23: Track levels (16=Track 1, 17=Track 2, etc.)
Example:
Set filter frequency to maximum on track 1
send_program_change
Switch to a different pattern on the Digitakt.
Parameters:
program(required): Pattern number (0-127)channel(optional): MIDI channel (1-16), default 1
Example:
Switch to pattern 5
send_note_sequence
Send a sequence of notes with timing.
Parameters:
notes(required): Array of [note, velocity, duration] tripletsdelay(optional): Time between notes in seconds, default 0.25channel(optional): MIDI channel (1-16), default 1
Example:
Play a simple 4-on-the-floor kick pattern
send_sysex
Send a System Exclusive (SysEx) message to the Digitakt for advanced control and pattern programming.
Parameters:
data(optional): Array of bytes (0-127) to send as SysEx data. F0 and F7 bytes are added automatically.hex_string(optional): Alternative todata- provide SysEx as hex string (e.g., "00203C...")
Elektron Manufacturer ID: 0x00 0x20 0x3C
Example:
Send a custom SysEx message to the Digitakt
Note: The exact SysEx format for Digitakt pattern programming is not publicly documented by Elektron. You can:
- Use this tool to send raw SysEx data you've captured or reverse-engineered
- Capture SysEx dumps from Elektron Transfer software
- Experiment with the format by analyzing saved .syx files
request_sysex_dump
Request a SysEx data dump from the Digitakt (pattern, sound, kit, or project).
Parameters:
dump_type(required): Type of dump - "pattern", "sound", "kit", or "project"bank(optional): Bank number (0-15)pattern_number(optional): Pattern number within bank (0-15)
Example:
Request a pattern dump from bank 0, pattern 0
Important: This sends a best-guess dump request format. The exact protocol is not publicly documented. You may need to:
- Monitor SysEx responses using MIDI monitoring software
- Use Elektron Transfer for official dumps
- Adjust the command bytes based on experimentation
Resources
midi://ports
Lists all available MIDI input and output ports on the system.
midi://digitakt/status
Shows the current connection status to the Digitakt MIDI ports.
Digitakt MIDI Reference
Note Numbers for Tracks
- Track 1: C3 (60)
- Track 2: C#3 (61)
- Track 3: D3 (62)
- Track 4: D#3 (63)
- Track 5: E3 (64)
- Track 6: F3 (65)
- Track 7: F#3 (66)
- Track 8: G3 (67)
Common CC Parameters
Check the Digitakt manual for the full CC map. Some common ones:
- 16-23: Track levels
- 71: Filter Resonance
- 74: Filter Frequency
- 73: Attack
- 75: Decay
Troubleshooting
MIDI device not found:
- Make sure the Digitakt is connected via USB
- Check that Overbridge is properly installed
- Verify the device shows up in Audio MIDI Setup (macOS)
Permission errors:
- On macOS, you may need to grant microphone permissions to Terminal/iTerm
- Check System Preferences > Security & Privacy > Privacy > Microphone
Working with SysEx
The Digitakt supports SysEx for advanced operations, but Elektron hasn't published the detailed protocol specification. Here are some approaches to work with SysEx:
Capturing SysEx Data
-
Using Elektron Transfer:
- Use Elektron Transfer to save patterns/sounds as .syx files
- Analyze these files to understand the format
- Use
send_sysexwith the captured data
-
MIDI Monitoring:
- Use tools like MIDI Monitor (macOS) or MIDI-OX (Windows)
- Capture SysEx dumps from the device
- Analyze the byte structure
-
Reverse Engineering:
- Study community projects like the Analog Rytm SysEx library
- Experiment with sending modified SysEx data
- Document your findings
SysEx Structure
All Elektron SysEx messages follow this basic structure:
F0 - SysEx start byte
00 20 3C - Elektron manufacturer ID
[device_id] - Device identifier
[command] - Command byte
[data...] - Message-specific data
F7 - SysEx end byte
Tips for Pattern Programming
- Start by capturing existing patterns via Transfer
- Compare multiple patterns to identify fields
- Test modifications carefully to avoid corrupting device memory
- Always backup your projects before experimenting
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。