MCP MIDI Server
MCP MIDI サーバー
LLM が MIDI 入力をサポートする任意のソフトウェアに MIDI シーケンスを送信できるようにする FastMCP サーバー。
特徴
仮想MIDI出力ポートを作成します
MIDIノートオン/オフメッセージを送信します
制御変更(CC)メッセージを送信する
正確なタイミングでMIDIイベントをシーケンスします
MIDIをサポートするあらゆるアプリケーションでMIDI入力デバイスとして使用できます。
Related MCP server: Vibe Composer MIDI MCP
要件
Python 3.7以上
rtmidi
ファストmcp
Python-dotenv
非同期
インストール
リポジトリをクローンします。
git clone <repository-url> cd mcp-server-midi仮想環境を作成し、アクティブ化して依存関係をインストールします。
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt設定を含む
.envファイルを作成します。PORT=8123
使用法
サーバーを実行します。
python mcp_midi_server.pyサーバーは「MCP MIDI Out」という仮想MIDIポートを作成します。このポートは他のアプリケーションでMIDI入力デバイスとして使用できます。これにより、以下のことが可能になります。
Ableton Live、Logic Pro、FL Studioなどのデジタルオーディオワークステーション(DAW)を接続して、このサーバーからMIDIを受信します。
サーバーを使用して、コンピューターのMIDIインターフェースを介してハードウェアシンセサイザーを制御します。
MIDI 入力を受け入れる他のソフトウェア (仮想楽器、照明コントローラーなど) に接続します。
お好みの MIDI 対応アプリケーションで、MIDI 入力デバイスとして「MCP MIDI Out」を選択するだけです。
MCP 構成
サーバーは Server-Sent Events (SSE) を使用します。Cursor でこれを設定する方法は次のとおりです。
{
"mcpServers": {
"midi": {
"url": "http://localhost:8123/sse"
}
}
}APIメソッド
メモを送信
MIDI Note On メッセージを送信します。
パラメータ:
note:MIDIノート番号(0-127)velocity: ノートのベロシティ (0-127、デフォルト 127)channel: MIDIチャンネル(0〜15、デフォルトは0)
ノート送信オフ
MIDI ノートオフ メッセージを送信します。
パラメータ:
note:MIDIノート番号(0-127)velocity: ノートオフベロシティ (0-127、デフォルト 64)channel: MIDIチャンネル(0〜15、デフォルトは0)
コントロール変更を送信
MIDI コントロール チェンジ (CC) メッセージを送信します。
パラメータ:
controller:CCコントローラ番号(0-127)value: CC値 (0-127)channel: MIDIチャンネル(0〜15、デフォルトは0)
MIDIシーケンスを送信する
指定された期間の MIDI ノート オン/オフ メッセージのシーケンスを送信します。
パラメータ:
events: イベント辞書のリスト。各辞書には以下の情報が含まれている必要があります。note:MIDIノート番号(0-127)velocity: ノートのベロシティ (0-127、デフォルト 127)channel: MIDIチャンネル(0〜15、デフォルトは0)duration: Note Offを送信する前にノートを保持する時間(秒)start_time: シーケンスの開始からの相対的なノート開始時間(秒)(デフォルトは 0)
例
API を使用して C メジャー コードを演奏する:
events = [
{"note": 60, "velocity": 100, "duration": 1.0, "start_time": 0.0}, # C4
{"note": 64, "velocity": 100, "duration": 1.0, "start_time": 0.0}, # E4
{"note": 67, "velocity": 100, "duration": 1.0, "start_time": 0.0}, # G4
]
# Send to the MCP MIDI Server APIライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for Producer/Riffusion AI music generation
Generate AI music via the Lacuna Music API from MCP clients like Claude Desktop & Code.
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that connects Claude to FL Studio, allowing the AI to send melodies, chords, and drum patterns directly to the DAW via virtual MIDI ports.56-
- AlicenseCqualityDmaintenanceEnables LLMs to compose and play multi-track MIDI music through natural language prompts. Supports outputting to software or hardware synthesizers for enhanced audio quality.22424MIT
- FlicenseAqualityDmaintenanceAn 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.10-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects AI assistants to FL Studio for music production via Virtual MIDI. It enables users to control transport, manage the mixer, write notes, and manipulate plugin parameters through natural language.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandst1/mcp-server-midi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server