{"id":29024585,"url":"https://github.com/tubone24/midi-mcp-server","last_synced_at":"2025-07-24T11:34:22.898Z","repository":{"id":286478373,"uuid":"961526301","full_name":"tubone24/midi-mcp-server","owner":"tubone24","description":"MIDI MCP Server is a Model Context Protocol (MCP) server that enables AI models to generate MIDI files from text-based music data. This tool allows for programmatic creation of musical compositions through a standardized interface.","archived":false,"fork":false,"pushed_at":"2025-05-07T01:15:48.000Z","size":930,"stargazers_count":19,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T04:03:12.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tubone24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-06T17:41:09.000Z","updated_at":"2025-06-17T15:28:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"55812374-5c28-4981-b409-e5fde89578a9","html_url":"https://github.com/tubone24/midi-mcp-server","commit_stats":null,"previous_names":["tubone24/midi-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tubone24/midi-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubone24%2Fmidi-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubone24%2Fmidi-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubone24%2Fmidi-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubone24%2Fmidi-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tubone24","download_url":"https://codeload.github.com/tubone24/midi-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tubone24%2Fmidi-mcp-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266834983,"owners_count":23992296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T04:03:11.007Z","updated_at":"2025-07-24T11:34:22.851Z","avatar_url":"https://github.com/tubone24.png","language":"JavaScript","funding_links":[],"categories":["MCP Servers for Creative Work","📚 Projects (1974 total)","TypeScript","🌐 Web Development"],"sub_categories":["Music \u0026 Live Coding","MCP Servers"],"readme":"[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/tubone24-midi-mcp-server-badge.png)](https://mseep.ai/app/tubone24-midi-mcp-server)\n\n[![Verified on MseeP](https://mseep.ai/badge.svg)](https://mseep.ai/app/74175d16-e83a-4509-b7ab-31ff1c59cef8)\n\n\n# MIDI MCP Server\n\n## Overview\nMIDI MCP Server is a Model Context Protocol (MCP) server that enables AI models to generate MIDI files from text-based music data. This tool allows for programmatic creation of musical compositions through a standardized interface.\n\n![mid](docs/mid.png)\n\n## Installation\n\n```bash\nnpm install\nnpm run build\n```\n\n## Usage with MCP Clients (e.g., Cline)\n\nAfter building the project, simply add the server to your MCP client configuration:\n\n```json\n\"mcpServers\": {\n    \"musicComposer\": {\n        \"command\": \"node\",\n        \"args\": [\"/path/to/midi-mcp-server/build/index.js\"]\n    }\n}\n```\n\nReplace `/path/to/` with the actual path to your project directory.\n\n## Features\n\n- Generate MIDI files from structured JSON music data\n- Support for multiple tracks and instruments\n- Customizable tempo, time signature, and note properties\n- Save MIDI files to specified locations\n\n## Tool: create_midi\n\nThe server provides a tool called `create_midi` that generates MIDI files from structured music data.\n\n### Input Parameters\n\n- `title`: String - The title of the composition\n- `composition`: String - A JSON string representing the music data\n- `output_path`: String - Path where the MIDI file will be saved\n\n### Composition Format\n\nThe composition should follow this structure:\n\n```json\n{\n  \"bpm\": number,\n  \"timeSignature\": { \"numerator\": number, \"denominator\": number },\n  \"tracks\": [\n    {\n      \"name\": string,\n      \"instrument\": number,\n      \"notes\": [\n        { \"pitch\": number, \"startTime\": number, \"duration\": number, \"velocity\": number }\n      ]\n    }\n  ]\n}\n```\n\n#### Properties\n\n- `bpm`: Tempo in beats per minute\n- `timeSignature`: Time signature (e.g., `{numerator: 4, denominator: 4}` for 4/4 time)\n- `tracks`: Array of instrument tracks\n    - `name`: Track name\n    - `instrument`: MIDI program number (0-127)\n    - `notes`: Array of note objects\n        - `pitch`: MIDI note number (0-127)\n        - `startTime`: Start time in beats\n        - `duration`: Note duration in beats\n        - `velocity`: Note velocity/volume (0-127)\n\n## Example\n\n```javascript\nconst composition = {\n  \"bpm\": 120,\n  \"timeSignature\": { \"numerator\": 4, \"denominator\": 4 },\n  \"tracks\": [\n    {\n      \"name\": \"Piano\",\n      \"instrument\": 0,\n      \"notes\": [\n        { \"pitch\": 60, \"startTime\": 0, \"duration\": 1, \"velocity\": 100 },\n        { \"pitch\": 64, \"startTime\": 1, \"duration\": 1, \"velocity\": 100 },\n        { \"pitch\": 67, \"startTime\": 2, \"duration\": 1, \"velocity\": 100 }\n      ]\n    }\n  ]\n};\n```\n\n## Dependencies\n\n- @modelcontextprotocol/sdk: MCP server implementation\n- midi-writer-js: Library for creating MIDI files\n\n## Demo\n\nFor example, the prompt below, which is a request to create a minor scale 8-bar choral piece, can be processed by the server:\n\n```text\n8小節の合唱曲を作って。\n若干マイナー調で、メロディックな音階を作ってほしい\n```\n\n\n\nhttps://github.com/user-attachments/assets/e20ebef0-fdbf-4e72-910d-41b94183f9d9\n\n\n\n\n\n[melodic_minor_chorus.mid](docs/melodic_minor_chorus.mid)\n\n## Note on Local Execution\n\nThis MCP server runs locally and communicates via standard input/output (stdio). No network configuration is required as the MCP client will automatically start the server process and establish communication.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftubone24%2Fmidi-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftubone24%2Fmidi-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftubone24%2Fmidi-mcp-server/lists"}