midi-mcp
An MCP server that enables AI models to control electronic music instruments by sending MIDI messages to hardware synths and drum machines. It supports various MIDI commands including notes, control changes, and system exclusive messages through USB or DIN MIDI interfaces.
README
midi-mcp
MCP server that lets Claude control electronic music instruments via MIDI. Exposes tools for sending MIDI messages (notes, CC, program changes, pitch bend, sysex) to hardware synths and drum machines connected via USB or DIN MIDI.
Setup
Requires uv.
cd midi-mcp
uv sync
Usage
Add to Claude Code
claude mcp add midi-mcp -- uv --directory /path/to/midi-mcp run midi-mcp
Or add manually to your MCP config:
{
"mcpServers": {
"midi-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/midi-mcp", "run", "midi-mcp"]
}
}
}
Run standalone
uv run midi-mcp
Tools
| Tool | Description |
|---|---|
list_midi_ports |
List available MIDI output ports |
open_midi_port |
Open a specific MIDI output port by name |
close_midi_port |
Close the currently open port |
get_midi_status |
Return current port name and connection state |
send_note_on |
Send Note On (channel, note, velocity) |
send_note_off |
Send Note Off (channel, note, velocity) |
send_cc |
Send Control Change (channel, control, value) |
send_program_change |
Send Program Change (channel, program) |
send_pitchwheel |
Send Pitch Bend (channel, value) |
send_sysex |
Send SysEx message (list of data bytes) |
Dependencies
- mcp[cli] - MCP Python SDK with FastMCP
- mido - MIDI message library
- python-rtmidi - Real-time MIDI I/O backend
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.