minimax-tts-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@minimax-tts-mcpSpeak 'Hello, world!' in a cheerful voice"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
minimax-tts-mcp
A lightweight MCP (Model Context Protocol) server that gives AI the ability to speak. Text in, audio URL out.
Built with Flask + MiniMax TTS API.
What it does
Exposes a
generate_speechtool via MCP protocolAI sends text → server calls MiniMax TTS → returns a playable mp3 URL
Supports emotion control, speed adjustment, and language selection (Cantonese, Mandarin, etc.)
Related MCP server: Blabber-MCP
Quick Start
1. Clone & install
git clone https://github.com/YOUR_USERNAME/minimax-tts-mcp.git
cd minimax-tts-mcp
pip install -r requirements.txt2. Configure
cp .env.example .env
# Edit .env with your MiniMax API key and voice IDGet your API key and voice ID from MiniMax Platform.
3. Run
python server.pyServer starts at http://localhost:5000.
Endpoints
Endpoint | Method | Description |
| POST | MCP protocol endpoint for AI tool calls |
| POST | Direct TTS — post JSON, get mp3 file |
| GET | Serve generated audio files |
| GET | Health check |
MCP Integration
Add to your MCP client config:
{
"mcpServers": {
"tts": {
"url": "http://localhost:5000/mcp"
}
}
}The server exposes one tool:
generate_speech
Parameter | Type | Required | Description |
text | string | yes | Text to speak |
emotion | string | no | neutral, happy, sad, angry, fearful, surprised, disgusted |
speed | number | no | 0.5 - 2.0 (default 0.9) |
language | string | no | e.g. "Chinese,Yue" for Cantonese |
Direct TTS Usage
curl -X POST http://localhost:5000/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "speed": 1.0}' \
--output speech.mp3Deploy
Works anywhere that runs Python — a VPS, cloud VM, or container. For public access, put it behind a reverse proxy (nginx/caddy) with HTTPS.
Example with systemd:
# /etc/systemd/system/tts-mcp.service
[Unit]
Description=MiniMax TTS MCP Server
[Service]
WorkingDirectory=/path/to/minimax-tts-mcp
EnvironmentFile=/path/to/minimax-tts-mcp/.env
ExecStart=/usr/bin/python3 server.py
Restart=always
[Install]
WantedBy=multi-user.targetNotes
Generated audio files are stored in
/tmpand not auto-cleaned. For production, add a cron job or cleanup logic.MiniMax API is a paid service. Check their pricing for TTS usage.
Voice cloning requires setting up a custom voice on MiniMax platform first.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Text-to-Speech
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
AI voice generation: text-to-speech and voice cloning from any MCP client.
MCP server for Hailuo (MiniMax) AI video generation
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server implementation that integrates with Minimax API to provide AI-powered image generation and text-to-speech functionality in editors like Windsurf and Cursor.376 npm50MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables LLMs to generate spoken audio from text using OpenAI's Text-to-Speech API, supporting various voices, models, and audio formats.12 npm1MIT
- FlicenseCqualityCmaintenanceAn MCP server that exposes speech-to-text and text-to-speech capabilities using a local speaches instance, allowing AI assistants to transcribe audio and generate speech.2-
- AlicenseNot gradedqualityDmaintenanceMCP server for MiniMax's multimodal generation models, enabling text-to-speech, voice cloning, image, video, and music creation through natural language.MIT