MCP MIDI Server
Servidor MIDI MCP
Un servidor FastMCP que permite que un LLM envíe secuencias MIDI a cualquier software que admita entrada MIDI.
Características
Crea un puerto de salida MIDI virtual
Envía mensajes de activación/desactivación de notas MIDI
Envía mensajes de cambio de control (CC)
Secuencia eventos MIDI con sincronización precisa
Se puede utilizar como dispositivo de entrada MIDI en cualquier aplicación que admita MIDI.
Related MCP server: Vibe Composer MIDI MCP
Requisitos
Python 3.7+
rtmidi
fastmcp
python-dotenv
asincronía
Instalación
Clonar el repositorio:
git clone <repository-url> cd mcp-server-midiCrea un entorno virtual, actívalo e instala las dependencias:
python -m venv .venv source .venv/bin/activate pip install -r requirements.txtCrea un archivo
.envcon tu configuración:PORT=8123
Uso
Ejecutar el servidor:
python mcp_midi_server.pyEl servidor crea un puerto MIDI virtual llamado "MCP MIDI Out" que puede usarse como dispositivo de entrada MIDI en otras aplicaciones. Esto significa que puede:
Conecte estaciones de trabajo de audio digital (DAW) como Ableton Live, Logic Pro o FL Studio para recibir MIDI desde este servidor
Utilice el servidor para controlar sintetizadores de hardware a través de la interfaz MIDI de su computadora
Conéctese a cualquier otro software que acepte entrada MIDI (instrumentos virtuales, controladores de iluminación, etc.)
Simplemente seleccione “MCP MIDI Out” como dispositivo de entrada MIDI en su aplicación compatible con MIDI preferida.
Configuración de MCP
El servidor utiliza eventos enviados por el servidor (SSE), así es como se configura en Cursor:
{
"mcpServers": {
"midi": {
"url": "http://localhost:8123/sse"
}
}
}Métodos API
Enviar nota sobre
Envía un mensaje de nota MIDI activada.
Parámetros:
note: número de nota MIDI (0-127)velocity: Velocidad de la nota (0-127, predeterminado 127)channel: canal MIDI (0-15, predeterminado 0)
Desactivar la función de enviar nota
Envía un mensaje de nota desactivada MIDI.
Parámetros:
note: número de nota MIDI (0-127)velocity: Nota de velocidad (0-127, predeterminado 64)channel: canal MIDI (0-15, predeterminado 0)
Enviar cambio de control
Envía un mensaje de cambio de control MIDI (CC).
Parámetros:
controller: número de controlador CC (0-127)value: valor CC (0-127)channel: canal MIDI (0-15, predeterminado 0)
Enviar secuencia MIDI
Envía una secuencia de mensajes de nota MIDI activada/desactivada con duraciones especificadas.
Parámetros:
events: Una lista de diccionarios de eventos. Cada diccionario debe contener:note: número de nota MIDI (0-127)velocity: Velocidad de la nota (0-127, predeterminado 127)channel: canal MIDI (0-15, predeterminado 0)duration: Tiempo en segundos para mantener la nota antes de enviarla. Nota desactivada.start_time: Tiempo en segundos en el que se iniciará la nota, en relación al inicio de la secuencia (valor predeterminado 0)
Ejemplo
Usando la API para tocar un acorde de Do mayor:
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 APILicencia
Instituto Tecnológico de Massachusetts (MIT)
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