Note: An extended version by ersatzben and BenCello can be found at: https://github.com/ersatzben/maxmsp-mcp
MaxMSP-MCP Server
This project uses the Model Context Protocol (MCP) to let LLMs directly understand and generate Max patches.
Understand: LLM Explaining a Max Patch
Video link. Acknowledgement: the patch being explained is downloaded from here. Text comments in the original file are deleted.
Generate: LLM Making an FM Synth
Check out the full video where you can listen to the synthesised sounds.
The LLM agent has access to the official documentation of each object, as well as objects in the current patch and subpatch windows, which helps in retrieving and explaining objects, debugging, and verifying their own actions.
Installation
Prerequisites
- Python 3.8 or newer
- uv package manager
- Max 9 or newer (because some of the scripts require the Javascript V8 engine), we have not tested it on Max 8 or earlier versions of Max yet.
Installing the MCP server
- Install uv:
# On macOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"





