mcp-tts-server

mcp-tts-server

1

This project is a Text-to-Speech server implementing the Model Context Protocol to generate realistic audio using the Groq API. Key features include support for multiple audio formats and an MCP-accessible speech generation tool.

mcp-tts-server

This project provides a Text-to-Speech server based on the Model Context Protocol (MCP), utilizing the Groq API for speech generation.

Features

  • Implements an MCP server for TTS functionality.
  • Connects to the Groq API for generating lifelike audio from text.
  • Provides a generate_speech tool accessible via the MCP protocol.
  • Supports multiple audio output formats (wav, mp3, aac, opus, flac).
  • Optional playback of audio on the server machine.
  • Requires a Groq API key as an environment variable.

Installation

To install dependencies, use bun install.

Project Structure

  • src/server.ts: Core MCP server logic.
  • src/cli.ts: Command-line interface for running the server.