RiffMCP logo

RiffMCP

Community
whitneyland

Native macOS MCP server that lets LLMs compose and play music

Publisherwhitneyland
Repositoryriffmcp
LanguageSwift
Forks
1
Stars
17
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    RiffMCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    17 stars and 1 forks from the linked repository.

RiffMCP

RiffMCP is an MCP server that allows LLMs to play, compose, and render music.

Overview

  • Local MCP server that runs as a native macOS app
  • Uses MCP stdio protocol which is routed to a built-in HTTP server
  • Defines a JSON-based music sequence format used between the LLM and the MCP server
  • Multi-track music is played back using a high quality soundfont
  • Supports basic sheet music rendering

Watch Demo

How It works

  • Add RiffMCP to Claude Desktop, Gemini CLI, or any LLM that supports MCP servers (see Setup below).
  • Once configured, you can chat with the LLM to generate music or view the rendered output.

Usage examples

  • “Play a happy melody” or “Play a sad melody”
  • “Play a cascading blues minor scale with varying tempo”
  • “Play a 12 bar jazz progression with walking bass”
  • “Show me the sheet music for that”
  • “What instruments are available?”

Why build an MCP server as an app?

  • In addition to MCP functionality, I wanted an interface that allows monitoring MCP activity, a simple JSON editor for experimentation, and a piano roll to see how playback is working.
  • The challenge became how to implement MCP stdio protocol, an HTTP server, and a GUI simultaneously without any Node.js/Electron dependencies or separate daemon processes. The goal is to have only one native app running.
  • The solution was to use a smart app / proxy mode architecture.

Setup

  1. Download & open .dmg
  2. Drag app to Applications then run it
  3. Update your LLM config file with 4 lines as shown below, restart the LLM
  4. Try a chat, “Play a happy melody"

Add RiffMCP to Claude Desktop

  1. Add to Claude Desktop configuration: Add this to your Claude Desktop app configuration file:

    Location: ~/Library/Application Support/Claude/claude_desktop_config.json

  2. Create or extend the top-level "mcpServers" object:

    json
    {
      "mcpServers": {
        "riff": {
          "command": "/Applications/RiffMCP.app/Contents/MacOS/RiffMCP",
          "args": ["--stdio"]
        }
      }
    }
  3. Restart Claude Desktop to activate the configuration.

Add RiffMCP to Gemini CLI

  1. Edit /.gemini/settings.json

  2. Create or extend the top-level "mcpServers" object:

    json
    {
      "mcpServers": {
        "riff": {
          "command": "/Applications/RiffMCP.app/Contents/MacOS/RiffMCP",
          "args": ["--stdio"]
        }
      }
    }
  3. Restart Gemini CLI to activate the configuration.

For LLMs that don't support MCP servers

  • Grab a prompt from PROMPT_PIANO.md or PROMPT_MULTITRACK.md
  • This will prompt any LLM to generate RiffMCP json format
  • Copy the output and paste it into the json editor window in the RiffMCP app
  • Press the Play button

Limitations

  • Sheet music rendering uses the powerful Verovio engine, but not all features are implemented. Still needs triplets, multi-page output, etc.
  • Web server is a minimal hand-rolled implementation. swift-nio may be added as a more scalable/robust component.

Roadmap

  • Drive external MIDI devices
  • MusicXML support
  • Add support for triplets, multi-page output, more MEI notation features
  • Upgrade web server to use swift-nio to be more scalable/robust

Privacy

  • All playback is local; no audio or prompts leave your Mac
  • No analytics or telemetry

License

  • Apache License, Version 2.0
  • Copyright 2025 Lee Whitney

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "whitneyland-riffmcp": {
      "command": "",
      "args": []
    }
  }
}

Use RiffMCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once RiffMCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add RiffMCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the RiffMCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "whitneyland-riffmcp": {
      "command": "npx",
      "args": [
        "-y",
        "riffmcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the RiffMCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the RiffMCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use RiffMCP to help me with this task?
RiffMCP
Sure. I read it.
Here is what I found using RiffMCP.

Frequently asked questions

What is the RiffMCP MCP server used for?

RiffMCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use RiffMCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use RiffMCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use RiffMCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With RiffMCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect RiffMCP MCP to TypingMind?

RiffMCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does RiffMCP MCP provide in TypingMind?

RiffMCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use RiffMCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If RiffMCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇