Cover image
Try Now
2025-04-01

Zonos MCP server modified for Linux and GPU optimizations.

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Zonos TTS MCP for Linux

smithery badge

A Model Context Protocol integration for Zonos TTS, allowing Claude to generate speech directly on Linux systems.

Overview

This project enables text-to-speech capabilities for Claude AI using the Zonos TTS system. The integration uses the Model Context Protocol (MCP) to allow Claude to generate natural-sounding speech in multiple languages and emotions.

Key Features

  • Text-to-speech through Claude
  • Multiple emotions support (neutral, happy, sad, angry)
  • Multi-language support
  • Proper audio playback through PulseAudio/PipeWire
  • Compatible with Linux environments

Requirements

  • Node.js
  • PulseAudio or PipeWire with PulseAudio compatibility layer
  • Running instance of Zonos API (PhialsBasement/zonos-api)
  • Working audio output device
  • Claude Desktop app

Setup

Installing via Smithery

To install the original UNMODIFIED version of Zonos TTS Integration for Claude Desktop automatically via Smithery:

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

Manual installation for Linux with GPU optimizations

  1. Make sure you have Zonos API running with the API implementation (PhialsBasement/zonos-api)

  2. Clone this repository:

git clone https://github.com/angrysky56/Zonos-TTS-MCP-Linux.git
cd Zonos-TTS-MCP-Linux
  1. Install dependencies:
npm install @modelcontextprotocol/sdk axios zod
  1. Build the MCP server:
npm run build
  1. Add to Claude's config file: Edit your Claude config file (search for files containing "mcpServers" in your home directory) and add this to the mcpServers section:
"zonos-tts-mcp": {
  "command": "node",
  "args": [
    "/path/to/your/Zonos-TTS-MCP-Linux/dist/server.js"
  ]
}

Replace /path/to/your/Zonos-TTS-MCP-Linux with the actual path where you installed this project.

Troubleshooting

Error Messages in Console

If you encounter error messages like:

Unexpected token 'P', 'Playing au'... is not valid JSON

This project includes fixes for these common issues:

  1. Console output has been redirected to a log file (/tmp/zonos-tts-mcp.log) instead of standard output to prevent JSON parsing errors.
  2. The TTS parameters have been optimized for better performance.

Performance Optimization

This fork includes performance optimizations to reduce GPU load:

  • Using more efficient sampling parameters (top_p and min_p)
  • Improved log handling to prevent interference with MCP communication

Using with Claude

Once configured, Claude can use the speak_response tool:

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

Credit

This project is a modified version of PhialsBasement/zonos-tts-mcp, adapted for improved Linux compatibility and performance.

The Zonos TTS system is developed by Zyphra and is available through their Zonos API.

License

See the original project for license information.

Notes

  • Make sure both the Zonos API server and this MCP server are running
  • Audio playback requires proper PulseAudio/PipeWire configuration
  • If you experience high GPU usage, you may want to adjust the TTS parameters in the server code

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Discover the most comprehensive and up-to-date collection of MCP servers in the market. This repository serves as a centralized hub, offering an extensive catalog of open-source and proprietary MCP servers, complete with features, documentation links, and contributors.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • jae-jae
  • MCP server for fetch web page content using Playwright headless browser.

  • HiveNexus
  • An AI chat bot for small and medium-sized teams, supporting models such as Deepseek, Open AI, Claude, and Gemini. 专为中小团队设计的 AI 聊天应用,支持 Deepseek、Open AI、Claude、Gemini 等模型。

  • ravitemer
  • A powerful Neovim plugin for managing MCP (Model Context Protocol) servers

  • patruff
  • Bridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools

    Reviews

    5 (1)
    Avatar
    user_pZcgvDTa
    2025-04-17

    As a dedicated user of Zonos-TTS-MCP-Linux, I am truly impressed with its performance and reliability. Created by angrysky56, this tool seamlessly integrates text-to-speech functionalities in Linux environments. The user experience is fantastic and it has significantly improved my daily tasks. Highly recommend checking it out on the official GitHub page: https://github.com/angrysky56/Zonos-TTS-MCP-Linux.