Integrations
Leverages OpenAI's TTS API to convert text to high-quality speech with multiple voice options, models, and output formats
tts-mcp
A Model Context Protocol (MCP) server and command-line tool for high-quality text-to-speech generation using the OpenAI TTS API.
Main Features
- MCP Server: Integrate text-to-speech capabilities with Claude Desktop and other MCP-compatible clients
- Voice Options: Support for multiple voice characters (alloy, nova, echo, etc.)
- High-Quality Audio: Support for various output formats (MP3, WAV, OPUS, AAC)
- Customizable: Configure speech speed, voice character, and additional instructions
- CLI Tool: Also available as a command-line utility for direct text-to-speech conversion
Installation
Method 1: Install from Repository
Method 2: Run Directly with npx (No Installation Required)
MCP Server Usage
The MCP server allows you to integrate text-to-speech functionality with Model Context Protocol (MCP) compatible clients like Claude Desktop.
Starting the MCP Server
MCP Server Options
Integrating with MCP Clients
The MCP server can be used with Claude Desktop and other MCP-compatible clients. For Claude Desktop integration:
- Open the Claude Desktop configuration file (typically at
~/Library/Application Support/Claude/claude_desktop_config.json
) - Add the following configuration, including your OpenAI API key:
Alternatively, you can use npx for easier setup:
You can provide the API key in two ways:
- Direct method (recommended for testing): Include it in the
args
array using the--api-key
parameter - Environment variable method (more secure): Set it in the
env
object as shown above
Security Note: Make sure to secure your configuration file when including API keys.
- Restart Claude Desktop
- When you ask Claude to "read this text aloud" or similar requests, the text will be converted to speech
Available MCP Tools
- text-to-speech: Tool for converting text to speech and playing it
CLI Tool Usage
You can also use tts-mcp as a standalone command-line tool:
CLI Tool Options
Supported Voices
The following voice characters are supported:
- alloy (default)
- ash
- coral
- echo
- fable
- onyx
- nova
- sage
- shimmer
Supported Models
- tts-1
- tts-1-hd
- gpt-4o-mini-tts (default)
Output Formats
The following output formats are supported:
- mp3 (default)
- opus
- aac
- flac
- wav
- pcm
Environment Variables
You can also configure the tool using system environment variables:
License
MIT
This server cannot be installed
A Model Context Protocol server that integrates high-quality text-to-speech capabilities with Claude Desktop and other MCP-compatible clients, supporting multiple voice options and audio formats.