trackmcp
Back to directory
tiianhk

MaxMSP-MCP-Server

View on GitHub

MCP (Model Context Protocol) Server for Max (Max/MSP/Jitter)

99 stars MaxAI & Machine Learning Updated Aug 27, 2025

Documentation

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

img

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

img

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

    Installing the MCP server

    1. Install uv:

    code
    # 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"

    2. Clone this repository and open its directory:

    code
    git clone https://github.com/tiianhk/MaxMSP-MCP-Server.git
    cd MaxMSP-MCP-Server

    3. Start a new environment and install python dependencies:

    code
    uv venv
    source .venv/bin/activate
    uv pip install -r requirements.txt

    4. Connect the MCP server to a MCP client (which hosts LLMs):

    code
    # Claude:
    python install.py --client claude
    # or Cursor:
    python install.py --client cursor

    To use other clients (check the list), you need to download, mannually add the configuration file path to here, and connect by running `python install.py --client {your_client_name}`.

    Installing to a Max patch

    Use or copy from `MaxMSP_Agent/demo.maxpat`. In the first tab, click the `script npm version` message to verify that npm is installed. Then click `script npm install` to install the required dependencies. Switch to the second tab to access the agent. Click `script start` to initiate communication with Python. Once connected, you can interact with the LLM interface to have it explain, modify, or create Max objects within the patch.

    Disclaimer

    This is a third party implementation and not made by Cycling '74.

    Frequently asked questions

    What is MaxMSP-MCP-Server?

    MaxMSP-MCP-Server is MCP (Model Context Protocol) Server for Max (Max/MSP/Jitter)

    How do I install MaxMSP-MCP-Server?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is MaxMSP-MCP-Server open source?

    Yes — it is hosted on GitHub at https://github.com/tiianhk/MaxMSP-MCP-Server and has 99 stars.

    Related MCP tools

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP