Skip to main content
Glama
Zoom G6 MCP Server

Zoom G6 MCP Server

by emapasq
README.md
# Zoom G6 Control — MCP server & web app

![MIT license](https://img.shields.io/badge/license-MIT-blue) ![ZOOM G6 firmware 2.00](https://img.shields.io/badge/ZOOM%20G6-firmware%202.00-orange) ![MCP server](https://img.shields.io/badge/MCP-server-8A2BE2)

Control a **ZOOM G6** guitar multi-effects pedal from your computer over **USB MIDI**: change patches, switch effects
on and off, edit their parameters, rearrange the effect chain, save patches to slots and run the drum machine.

Two independent tools, unofficial and open source, verified on G6 **firmware 2.00**:

- **Web app**: a control panel in Chrome or Edge (Web MIDI), for playing and editing patches from a big screen.
- **Zoom G6 MCP server**: a [Model Context Protocol](https://modelcontextprotocol.io) server, so an AI assistant
  (Claude Desktop, Codex or another MCP client) can control the G6 for you and write new patches in the style you
  describe.

```mermaid
flowchart LR
  W["Web app (Chrome / Edge)"] -->|Web MIDI| U(("USB"))
  A["AI assistant"] -->|MCP| M["MCP server (Python)"] -->|MIDI| U
  U --> G["ZOOM G6"]
```

![The web app: active patch with its effect chain, and the drum machine](docs/images/webapp.png)

## Quick start

| | Web app | MCP server |
|---|---|---|
| You need | Chrome or Edge, Docker (or Python for a local web server) | [uv](https://docs.astral.sh/uv/) (`brew install uv`), an MCP client |
| Install | `cd webapp && docker compose up -d`, then open <http://localhost:8616> and click **Connect** | nothing to download: register `uvx --python 3.12 zoom-g6-mcp` in your client ([PyPI package](https://pypi.org/project/zoom-g6-mcp/)) |
| Guide | [step by step](docs/HOWTO-webapp.md) | [step by step](docs/HOWTO-mcp.md) |

Tested on macOS. Windows and Linux should work (Web MIDI and python-rtmidi are cross-platform) but are untested.

## Zoom G6 MCP server

The MCP server exposes the G6 to any [Model Context Protocol](https://modelcontextprotocol.io) client over stdio.
The assistant sees these tools:

| Area | Tools |
|---|---|
| Stored patches | `patch_list`, `patch_read`, `patch_write` (backup and read-back), `patch_format_guide` |
| Active patch | `patch_status`, `patch_select`, `patch_next`, `patch_previous`, `effect_set_enabled`, `effect_set_param`, `effects_list` |
| Drum machine | `rhythm_status`, `rhythm_start`, `rhythm_stop`, `rhythm_set_bpm`, `rhythm_set_pattern`, `rhythm_set_volume`, `rhythm_set_count` |
| Tuner | `tuner_on`, `tuner_off` |
| SD card and Looper | `storage_sd_space`, `storage_wav_count`, `storage_wav_list`, `storage_wav_load`, `looper_*` (gated, see *Safety principles*) |

Things you can ask, in your own words:

- "Go to patch 12" · "Which patches are free?"
- "What's in the active patch?" · "Switch the delay off"
- "Set the delay mix to 40" (values are the G6's raw values; the server checks them against the ranges the G6 reports)
- "Start the drums at 96 BPM with a blues pattern"
- "Save this patch as 'Lead clean' in a free slot" (writes only to a free slot unless you allow an overwrite, and
  keeps a backup first)
- "Make me a patch in the style of …, for a Les Paul, and load it on slot 150"

Run it with `uvx --python 3.12 zoom-g6-mcp`, or `.venv/bin/g6-mcp` from a source install (stdio). Configuration for Claude Desktop and Codex (tested), Cursor and VS Code (not
tested yet): see [`mcp-server/README.md`](mcp-server/README.md#install).

> **Unofficial project.** Not affiliated with, endorsed by or supported by Zoom Corporation.
> "Zoom" and "G6" are used only to describe compatibility. Verified on firmware 2.00 only (see *Compatibility*).
> Use at your own risk: sending unknown messages can freeze the device (see `protocol/COMMANDS.md`, *Dangerous*).

## Features

- **`webapp/`** — a browser control panel (Chrome, Web MIDI): patch selection, the effect chain of the active patch with
  on/off and parameter editing, a patch editor (move, add, replace and remove effects, then save to a slot), drum
  machine start/stop, tempo, pattern, volume and count, SD card information, loading WAV files into the Looper, a gated
  Looper play/stop and the Looper settings (volume, STOP MODE, POSITION).
- **`mcp-server/`** — an MCP server that lets an AI assistant control the G6: stored patches (read, write with backup),
  live editing of the active patch, drum machine, tuner, SD card information, WAV loading, a gated Looper play/stop and
  the Looper settings. Ask the assistant for a patch in the style you want and it builds it and writes it to a free
  slot (see [`mcp-server/README.md`](mcp-server/README.md#using-it-to-generate-patches)).
- **`protocol/`** — the list of known commands and shared test frames.

## AI-generated code

The code, the tests and the documentation in this repository were written by AI assistants — mainly **Claude**
(Anthropic), with contributions from **OpenAI Codex** — following the maintainer's instructions. The maintainer did not
write the code by hand: he described what he wanted, decided what to build and what to leave out, and ran every test on
a real G6, checking the results on the device display and by ear. Every command the tools send is listed in
[`protocol/COMMANDS.md`](protocol/COMMANDS.md) together with the tests that verified it.

What this means for you:

- It works on the maintainer's G6 (firmware 2.00) for the tests described in [`protocol/COMMANDS.md`](protocol/COMMANDS.md),
  and its limits are documented there and in the READMEs.
- The code has not had a line-by-line human review. The safety rules (allowlist, single sends, confirmations) were
  specified by the maintainer and are covered by automated tests, but tests are not a guarantee.
- Read the safety notes before using it, and treat it as you would any unreviewed tool that talks to your hardware.

## Compatibility

Everything in this repository — the command list, the test frames, the web app and the MCP server — was verified on a
G6 running **firmware 2.00**, the version installed on the development unit (read from the device).
Other firmware versions have not been tested: message formats, the installed effects and their parameter ranges may
differ. If your G6 runs another version, check the version shown by the device or by Guitar Lab before using these tools, and treat
everything as unverified.

## Safety principles

- Only messages listed as verified in [`protocol/COMMANDS.md`](protocol/COMMANDS.md) are sent; both the web app and the
  MCP server enforce an allowlist.
- Setters are sent once: no automatic retries.
- Live changes are not saved to patches. Stored patches are written only on request (MCP server or web app patch
  editor), never over an occupied slot without explicit confirmation and a backup.
- The playback state of the drum machine cannot be read, and is shown as unknown.
- A WAV load is sent only after an explicit confirmation that the Looper is stopped and holds nothing to keep, by file
  name, once.
- Looper play is gated: only after a WAV load by the same client, and a manual confirmation on the display that the
  WAV is loaded and the Looper stopped; it is sent once and then disabled. Stop is available only after that play.
  Nothing records, overdubs or deletes Looper content.
- Changing the Looper POSITION stops and resets the Looper: it is sent only after an explicit confirmation that the
  Looper holds nothing to keep, never when the value already matches, and once.

## Tests

```bash
cd webapp && npm test                                 # Node 20+, no dependencies
cd mcp-server && python3 -m unittest discover -s tests  # Python 3.10+
```

Both suites use the same frames in [`protocol/test-vectors.json`](protocol/test-vectors.json).

## Acknowledgements

Thanks to [zoom-zt2](https://github.com/mungewell/zoom-zt2) by mungewell, a related open-source project
documenting Zoom effect pedals and their files, for its work on Zoom effect identifiers and module files.

## License

[MIT](LICENSE)