Zonos TTS MCP server

Integrates with Zonos TTS API to generate expressive, multi-language speech output for AI applications using PulseAudio playback
Back to servers
Setup instructions
Provider
PhialsBasement
Release date
Feb 15, 2025
Language
TypeScript
Package
Stats
215 downloads
14 stars

This MCP server allows Claude to generate and play text-to-speech audio directly using Zonos TTS. It provides a seamless integration that enables Claude to speak responses aloud through your computer's audio system.

Installation

Automated Installation via Smithery

The easiest way to install the Zonos TTS Integration for Claude Desktop is through Smithery:

npx -y @smithery/cli install @PhialsBasement/zonos-tts-mcp --client claude

Manual Installation

If you prefer to install manually, follow these steps:

  1. First, make sure you have Zonos running with the API implementation from PhialsBasement/zonos-api

  2. Install the required dependencies:

    npm install @modelcontextprotocol/sdk axios
    
  3. Ensure PulseAudio is properly configured for audio playback (the MCP server will automatically attempt to connect to your pulse server)

  4. Build the MCP server:

    npm run build
    
  5. Configure Claude to use the MCP server by editing your Claude config file (typically located at ~/.config/claude/config.json) and adding this to the mcpServers section:

    "zonos-tts": {
      "command": "node",
      "args": [
        "/path/to/your/zonos-mcp/dist/server.js"
      ]
    }
    

    Be sure to replace /path/to/your/zonos-mcp with the actual path where you installed the server.

Usage

Once installed and configured, Claude can automatically use the text-to-speech functionality via the speak_response tool. Here's how to use it:

speak_response(
    text="Your text here",
    language="en-us",  # optional, defaults to en-us
    emotion="happy"    # optional: "neutral", "happy", "sad", "angry"
)

Parameters

  • text: The content you want Claude to speak aloud
  • language: The language code (defaults to "en-us" if not specified)
  • emotion: The emotional tone of the speech (options include "neutral", "happy", "sad", "angry")

Requirements

To use this integration successfully, you need:

  • Node.js
  • PulseAudio properly set up
  • A running instance of Zonos API
  • A working audio output device

Troubleshooting

  • Ensure both the Zonos API server and the MCP server are running
  • Check that your audio output device is working correctly
  • Verify that PulseAudio is properly configured
  • Make sure the paths in your Claude config file are correct

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "zonos-tts" '{"command":"node","args":["/path/to/your/zonos-mcp/dist/server.js"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "zonos-tts": {
            "command": "node",
            "args": [
                "/path/to/your/zonos-mcp/dist/server.js"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "zonos-tts": {
            "command": "node",
            "args": [
                "/path/to/your/zonos-mcp/dist/server.js"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later