Skip to main content
Glama
Drum Sequencer MCP App Server

Drum Sequencer MCP App Server

Drum Machine MCP App

An interactive drum machine and step sequencer that runs as an MCP App inside Claude Desktop and other MCP-enabled hosts.

7 synthesized instruments (kick, snare, hi-hat, open hi-hat, clap, tom, rimshot) on a 16-step grid with genre presets, solo/mute, velocity accents, and a live oscilloscope. All audio is generated via Tone.js synthesis — no samples needed.

Drum Machine Demo

Try It

  1. In Claude Desktop, go to Customize > Connectors

  2. Click the + button and select Add custom connector

  3. Enter the name Drum Machine and the URL:

    https://web-production-89abb.up.railway.app/mcp
  4. Start a new chat and ask Claude to "play a drum pattern"

Related MCP server: mcp-server-demo

Local Development

npm install
npm run dev

This starts the MCP server on http://localhost:3001/mcp with hot-reloading.

Testing with basic-host

npm run build

# In another terminal, clone and run the basic-host:
git clone --depth 1 https://github.com/modelcontextprotocol/ext-apps.git /tmp/mcp-ext-apps
cd /tmp/mcp-ext-apps/examples/basic-host
npm install
SERVERS='["http://localhost:3001/mcp"]' npm run start

# Open http://localhost:8080

Select "Drum Sequencer MCP App Server" from the server dropdown, choose play-drum-pattern, and hit "Call Tool".

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "drum-sequencer": {
      "command": "npx",
      "args": ["tsx", "/path/to/drum-machine-mcp-app/main.ts", "--stdio"]
    }
  }
}

Restart Claude Desktop and ask it to "play a drum pattern".

Architecture

This is an MCP App — an extension to the Model Context Protocol that pairs tools with interactive UI resources.

  • server.ts — Registers the play-drum-pattern tool and the HTML UI resource

  • main.ts — Entry point with Streamable HTTP and stdio transports

  • src/mcp-app.ts — UI logic: sequencer grid, Tone.js audio engine, App SDK integration

  • src/styles.css — Dark neon glow aesthetic

  • mcp-app.html — HTML shell with Tone.js CDN

  • vite.config.ts — Bundles UI into a single HTML file via vite-plugin-singlefile

Tool: play-drum-pattern

Parameter

Type

Default

Description

bpm

number

120

Tempo (40-200)

pattern

object

boom-bap beat

7 instruments x 16 boolean steps

swing

number

0

Shuffle amount (0-1)

Supports streaming input via ontoolinputpartial — the grid updates live as the LLM generates tool arguments.

Tech Stack

  • Audio: Tone.js (CDN) — MembraneSynth, NoiseSynth

  • UI: Vanilla JS + CSS

  • Build: Vite + vite-plugin-singlefile

  • MCP: @modelcontextprotocol/sdk + @modelcontextprotocol/ext-apps

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes six tools over stdio that trim noisy command output, maintain capped state cards and rolling notes, and produce fixed-budget working-memory packs with reversible phrase compression, keeping per-turn context cost constant regardless of conversation length.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to count words, convert units across length, weight, and temperature, and fetch web page titles through example stdio tools.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to design and edit pixel-art fuse-bead patterns on a live web canvas through 19 MCP tools covering batch drawing operations, image import, structural checks, previews, and color-inventory tracking, with edits synced in real time in both directions.
      MIT