MIDI File MCP
🎵 MIDI 파일 MCP
📖 소개
Tone.js와 @tonejs/midi 라이브러리를 기반으로 하는 MIDI 파일 파싱 및 조작 도구로, MCP(Model Context Protocol) 서비스를 통해 기능을 제공합니다. 이 도구를 사용하면 MIDI 파일 형식의 복잡성을 깊이 파고들지 않고도 MIDI 파일을 쉽게 읽고, 분석하고, 수정할 수 있습니다.
Related MCP server: music21-mcp
✨ 특징
MIDI 파일 정보 읽기
트랙, 노트, 컨트롤 변경 및 피치 벤드 정보를 가져오고 수정합니다.
MIDI 파일 템포(BPM) 설정
특정 트랙에 새로운 노트, 컨트롤 변경 및 피치 벤드를 추가합니다.
새로운 트랙 추가
포괄적인 오류 처리
📥 필수 조건
Node.js 설치: npx 명령이 정상적으로 실행되는지 확인하세요. Node.js 공식 웹사이트 에서 최신 안정 버전을 설치하는 것이 좋습니다.
🔧 사용법
MCP 클라이언트와 함께 사용할 수 있는 지원되는 클라이언트는 다음과 같습니다(이에 국한되지 않음).
커서 구성 예
Cursor에서 midi-file-mcp를 구성하세요:
지엑스피1
🎹 절대 경로를 사용한 MIDI Parser MCP 사용
MIDI Parser MCP의 모든 작업에는 MIDI 파일의 절대 경로가 필요합니다. 이를 통해 도구가 현재 작업 디렉터리에 관계없이 MIDI 파일을 정확하게 찾고 조작할 수 있습니다.
예시 프롬프트
AI 비서와 함께 사용할 수 있는 몇 가지 프롬프트 예시는 다음과 같습니다.
MIDI 파일 정보 가져오기 :
Can you show me information about the MIDI file at D:\path\to\your\file.mid?트랙 분석 :
Please analyze all tracks in D:\path\to\your\file.mid and tell me how many notes are in each track.템포 설정 :
Change the tempo of D:\path\to\your\file.mid to 120 BPM.노트 작업 :
Show me all notes in track 1 of D:\path\to\your\file.mid.메모 추가 :
Add a C4 note at position 0 with a duration of 1 beat to track 0 in D:\path\to\your\file.mid.
사용 가능한 작업
작업 | 설명 | 매개변수 |
get_midi_info | 일반 MIDI 파일 정보 가져오기 | 파일 경로 |
템포 설정 | MIDI 파일의 템포(BPM) 설정 | 파일 경로, bpm |
트랙 정보 가져오기 | 모든 트랙에 대한 정보를 얻으세요 | 파일 경로 |
인덱스별 트랙 정보 가져오기 | 특정 트랙에 대한 정보 얻기 | 파일 경로, 트랙 인덱스 |
인덱스별 노트 가져오기 | 특정 트랙의 모든 노트 가져오기 | 파일 경로, 트랙 인덱스 |
인덱스로 피치벤드 가져오기 | 특정 트랙에서 모든 피치 벤드 가져오기 | 파일 경로, 트랙 인덱스 |
인덱스별 제어 변경 가져오기 | 특정 트랙에서 모든 제어 변경 사항 가져오기 | 파일 경로, 트랙 인덱스 |
인덱스별 노트 추가 | 특정 트랙에 노트 추가 | filePath, trackIndex, notes |
인덱스별_제어_변경_추가 | 특정 트랙에 제어 변경 사항 추가 | filePath, trackIndex, controlchanges |
인덱스별 피치벤드 추가 | 특정 트랙에 피치 벤드 추가 | filePath, trackIndex, 피치벤드 |
트랙 추가 | MIDI 파일에 새 트랙 추가 | 파일 경로 |
참고 : 오류를 방지하려면 Windows 경로를 사용할 때 항상 파일 경로에 이중 백슬래시( \\ ) 또는 슬래시( / )를 사용하세요.
📄 라이센스
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 라이선스 파일을 참조하세요.
🙏 감사의 말
다음 프로젝트와 라이브러리 덕분에 이 도구가 탄생할 수 있었습니다.
Tone.js - 웹 오디오 프레임워크
@tonejs/midi - MIDI 파일 파싱 및 조작 라이브러리
MCP(Model Context Protocol) - AI 어시스턴트에 도구 통합을 가능하게 합니다.
Available Tools
11 toolsadd_controlchanges_by_indexC
Add controlchanges to midi file by track index
Inputs: filePath (required), trackIndex (required), controlchanges (required).
add_notes_by_indexB
Add notes to midi file by track index
Inputs: filePath (required), trackIndex (required), notes (required).
add_pitchbends_by_indexC
Add pitchbends to midi file by track index
Inputs: filePath (required), trackIndex (required), pitchbends (required).
add_trackB
Add a new track to midi file and return the new track info
Inputs: filePath (required).
get_controlchanges_by_indexC
Get controlchanges from midi file by track index
Inputs: filePath (required), trackIndex (required).
get_midi_infoC
Get midi file info
Inputs: filePath (required).
get_notes_by_indexB
Get notes from midi file by track index
Inputs: filePath (required), trackIndex (required).
get_pitchbends_by_indexB
Get pitchbends from midi file by track index
Inputs: filePath (required), trackIndex (required).
get_track_info_by_indexB
Get track info from midi file by track index. name, instrument, channel, endOfTrackTicks, duration, durationTicks, noteCount
Inputs: filePath (required), trackIndex (required).
get_tracks_infoC
Get tracks info from midi file
Inputs: filePath (required).
set_tempoC
Set tempo for midi file
Inputs: filePath (required), bpm (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource (notes, controlchanges, pitchbends, tracks, tempo, info) with clear operations (get, add, set), making them easily distinguishable.
All tool names follow a consistent verb_noun pattern with snake_case, e.g., add_notes_by_index, get_midi_info, set_tempo. No mixed conventions.
11 tools is well-scoped for MIDI file manipulation, covering essential read and write operations without being excessive or thin.
The tool set covers adding and getting notes, control changes, and pitch bends, but lacks update and delete operations for those events, as well as removing tracks or clearing data.
Maintenance
Related MCP Connectors
Create, co-edit, analyze, publish, and export collaborative step-sequencer sessions through MCP.
ScoreStarling is an all-in-one AI sheet music assistant. Ask for anything to do with sheet music: transcribe a song from audio, video or a link, read a PDF or photo, add chords, change the key, make it easier, turn it into guitar TAB or jianpu, or arrange it for another instrument. Every change lands on a real score you can hear, fix and download (PDF, MIDI, MusicXML, guitar TAB, jianpu, audio). Hosted remote server with OAuth sign-in. Free accounts get monthly credits and free previews; prices are at scorestarling.com/pricing. Setup: https://scorestarling.com/mcp
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive analysis of MIDI SMF files including loading, parsing, track analysis, event extraction with filtering, and detailed file summaries. Supports memory management for efficient repeated access to loaded MIDI files.5MIT
- AlicenseNot gradedqualityDmaintenanceExposes 16 music21 MIDI analysis and editing tools to AI agents, enabling them to read, edit, generate, and analyze MIDI files through natural language.MIT
- AlicenseAqualityDmaintenanceA game-agnostic MCP toolkit for composing chiptune/retro MIDI and rendering game audio, enabling AI agents to generate multi-track MIDI files and render them to OGG/WAV.7MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that transcribes audio files into MIDI and MusicXML scores, converts MIDI to notation, and extracts playable note data for DAWs. It enables Claude to turn raw recordings into editable, shareable music scores via three simple tools.1-