mcp-server-synth

Digital-Physics/mcp-server-synth

3.2

If you are the rightful owner of mcp-server-synth and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a structured summary of a Model Context Protocol (MCP) server designed to generate and play synth music to accompany text responses.

This repository contains a basic demo of an MCP server with tooling to generate synth music that will play to accompany a text response from a Large Language Model. It is meant to be run locally, as it makes calls to the operating system to play the music, rather than sending that info to the frontend to render sound in the browser.

Initialize a new npm project:

npm init -y

Install dependencies:

npm install @modelcontextprotocol/sdk zod@3
npm install -D @types/node typescript
npm install wav-encoder wav-decoder

Build:

npm run build

Directory:

project-root/
    ├─ build/
    │   └─ index.js
    ├─ samples/
    │   ├─ kick/
    │   ├─ snare/
    │   ├─ chord/
    │   └─ bass/
    │   crickets.wav
    │   rain.wav
    │   water.wav
    │   wind.wav
    ├─ src/
    │   └─ index.ts

File Note: The .wav files in the kick, snare, chord, and bass directories aren't used. They are left over from an old version.

demo

demo

https://mcp-dj-presentation.onrender.com/