MCP MIDI Server

Integrations

  • Enables configuration of the MCP server through environment variables stored in a .env file, allowing users to specify settings like the server port.

  • Provides installation instructions that utilize Git for cloning the repository to set up the MCP MIDI server.

  • Creates a virtual MIDI output port that can send MIDI Note On/Off messages and Control Change (CC) messages with precise timing to any software that supports MIDI input, such as digital audio workstations (DAWs), hardware synthesizers, and other MIDI-compatible applications.

MCP MIDI 서버

LLM이 MIDI 입력을 지원하는 모든 소프트웨어로 MIDI 시퀀스를 보낼 수 있게 해주는 FastMCP 서버입니다.

특징

  • 가상 MIDI 출력 포트를 생성합니다
  • MIDI Note On/Off 메시지를 보냅니다.
  • CC(제어 변경) 메시지를 보냅니다.
  • 정확한 타이밍으로 MIDI 이벤트를 시퀀스합니다.
  • MIDI를 지원하는 모든 애플리케이션에서 MIDI 입력 장치로 사용할 수 있습니다.

요구 사항

  • 파이썬 3.7 이상
  • rt미디
  • 패스트MCP
  • 파이썬-dotenv
  • 비동기

설치

  1. 저장소를 복제합니다.지엑스피1
  2. 가상 환경을 만들고 활성화한 후 종속성을 설치합니다.
    python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
  3. 구성을 사용하여 .env 파일을 만듭니다.
    PORT=8123

용법

서버를 실행합니다:

python mcp_midi_server.py

서버는 다른 애플리케이션에서 MIDI 입력 장치로 사용할 수 있는 "MCP MIDI Out"이라는 가상 MIDI 포트를 생성합니다. 즉, 다음과 같은 작업을 수행할 수 있습니다.

  • Ableton Live, Logic Pro 또는 FL Studio와 같은 디지털 오디오 워크스테이션(DAW)을 연결하여 이 서버에서 MIDI를 수신합니다.
  • 컴퓨터의 MIDI 인터페이스를 통해 하드웨어 신시사이저를 제어하려면 서버를 사용하세요.
  • MIDI 입력을 허용하는 다른 소프트웨어(가상 악기, 조명 컨트롤러 등)에 연결합니다.

원하는 MIDI 호환 애플리케이션에서 MIDI 입력 장치로 "MCP MIDI Out"을 선택하기만 하면 됩니다.

MCP 구성

서버는 SSE(Server-Sent Events)를 사용합니다. 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 Off 메시지를 보냅니다.

매개변수:

  • 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 Note On/Off 메시지 시퀀스를 보냅니다.

매개변수:

  • events : 이벤트 사전 목록입니다. 각 사전에는 다음이 포함되어야 합니다.
    • note : MIDI 음표 번호(0-127)
    • velocity : 음표 속도(0-127, 기본값 127)
    • channel : MIDI 채널(0-15, 기본값 0)
    • duration : 노트를 보내기 전에 노트를 유지하는 시간(초)
    • 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

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

LLM이 MIDI 입력을 허용하는 모든 소프트웨어에 MIDI 데이터를 생성하여 전송할 수 있도록 하는 가상 MIDI 출력 포트를 생성하는 FastMCP 서버입니다.

  1. 특징
    1. 요구 사항
      1. 설치
        1. 용법
          1. MCP 구성
            1. API 메서드
              1. 메모 보내기
              2. 메모 보내기
              3. 제어 변경 보내기
              4. MIDI 시퀀스 보내기
              1. 특허

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  FastMCP is a comprehensive MCP server allowing secure and standardized data and functionality exposure to LLM applications, offering resources, tools, and prompt management for efficient LLM interactions.
                  Last updated 3 months ago
                  3
                  Python
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.
                  Last updated a month ago
                  32
                  Python
                  Apache 2.0
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that allows Claude to interact with local LLMs running in LM Studio, providing access to list models, generate text, and use chat completions through local models.
                  Last updated a month ago
                  Python
                • A
                  security
                  A
                  license
                  A
                  quality
                  An MCP Server that enables LLMs to build real-time 3D web applications in the PlayCanvas Editor.
                  Last updated 19 days ago
                  21
                  89
                  38
                  TypeScript
                  MIT License
                  • Apple

                View all related MCP servers

                ID: z2mandv3yv