by nakamurau1
Transform text to speech with OpenAI TTS. Free AI voice generator for seamless, customizable speech to voice and high-qu
Converts text to speech using OpenAI's TTS API with multiple voice options and audio formats. Can be used as an MCP server with Claude Desktop or as a standalone CLI tool.
OpenAI TTS is a community-built MCP server published by nakamurau1 that provides AI assistants with tools and capabilities via the Model Context Protocol. Transform text to speech with OpenAI TTS. Free AI voice generator for seamless, customizable speech to voice and high-qu It is categorized under other, ai ml.
You can install OpenAI TTS in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
OpenAI TTS is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
OpenAI TTS is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Useful MCP listing: OpenAI TTS is the kind of server we cite when onboarding engineers to host + tool permissions.
We wired OpenAI TTS into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, OpenAI TTS benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We wired OpenAI TTS into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, OpenAI TTS benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
OpenAI TTS reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Strong directory entry: OpenAI TTS surfaces stars and publisher context so we could sanity-check maintenance before adopting.
I recommend OpenAI TTS for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
OpenAI TTS has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
showing 1-10 of 27
A Model Context Protocol (MCP) server and command-line tool for high-quality text-to-speech generation using the OpenAI TTS API.
# Clone the repository
git clone https://github.com/nakamurau1/tts-mcp.git
cd tts-mcp
# Install dependencies
npm install
# Optional: Install globally
npm install -g .
# Start the MCP server directly
npx tts-mcp tts-mcp-server --voice nova --model tts-1-hd
# Use the CLI tool directly
npx tts-mcp -t "Hello, world" -o hello.mp3
The MCP server allows you to integrate text-to-speech functionality with Model Context Protocol (MCP) compatible clients like Claude Desktop.
# Start with default settings
npm run server
# Start with custom settings
npm run server -- --voice nova --model tts-1-hd
# Or directly with API key
node bin/tts-mcp-server.js --voice echo --api-key your-openai-api-key
Options:
-V, --version Display version information
-m, --model <model> TTS model to use (default: "gpt-4o-mini-tts")
-v, --voice <voice> Voice character (default: "alloy")
-f, --format <format> Audio format (default: "mp3")
--api-key <key> OpenAI API key (can also be set via environment variable)
-h, --help Display help information
The MCP server can be used with Claude Desktop and other MCP-compatible clients. For Claude Desktop integration:
~/Library/Application Support/Claude/claude_desktop_config.json){
"mcpServers": {
"tts-mcp": {
"command": "node",
"args": ["full/path/to/bin/tts-mcp-server.js", "--voice", "nova", "--api-key", "your-openai-api-key"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key"
}
}
}
}
Alternatively, you can use npx for easier setup:
{
"mcpServers": {
"tts-mcp": {
"command": "npx",
"args": ["-p", "tts-mcp", "tts-mcp-server", "--voice", "nova", "--model", "gpt-4o-mini-tts"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key"
}
}
}
}
You can provide the API key in two ways:
args array using the --api-key parameterenv object as shown aboveSecurity Note: Make sure to secure your configuration file when including API keys.
You can also use tts-mcp as a standalone command-line tool:
# Convert text directly
tts-mcp -t "Hello, world" -o hello.mp3
# Convert from a text file
tts-mcp -f speech.txt -o speech.mp3
# Specify custom voice
tts-mcp -t "Welcome to the future" -o welcome.mp3 -v nova
Options:
-V, --version Display version information
-t, --text <text> Text to convert
-f, --file <path> Path to input text file
-o, --output <path> Path to output audio file (required)
-m, --model <n> Model to use (default: "gpt-4o-mini-tts")
-v, --voice <n> Voice character (default: "alloy")
-s, --speed <number> Speech speed (0.25-4.0) (default: 1)
--format <format> Output format (default: "mp3")
-i, --instructions <text> Additional instructions for speech generation
--api-key <key> OpenAI API key (can also be set via environment variable)
-h, --help Display help information
The following voice characters are supported:
The following output formats are supported:
You can also configure the tool using system environment variables:
OPENAI_API_KEY=your-api-key-here
MIT
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.