minimax-tts-mcp
minimax-tts-mcp
Un servidor MCP (Model Context Protocol) ligero que da a la IA la capacidad de hablar. Texto dentro, URL de audio fuera.
Construido con Flask + MiniMax TTS API.
Qué hace
Expone una herramienta
generate_speecha través del protocolo MCPLa IA envía texto → el servidor llama a MiniMax TTS → devuelve una URL de mp3 reproducible
Soporta control de emociones, ajuste de velocidad y selección de idioma (cantonés, mandarín, etc.)
Related MCP server: Blabber-MCP
Inicio rápido
1. Clonar e instalar
git clone https://github.com/YOUR_USERNAME/minimax-tts-mcp.git
cd minimax-tts-mcp
pip install -r requirements.txt2. Configurar
cp .env.example .env
# Edit .env with your MiniMax API key and voice IDObtén tu clave de API y tu ID de voz en MiniMax Platform.
3. Ejecutar
python server.pyEl servidor se inicia en http://localhost:5000.
Endpoints
Endpoint | Método | Descripción |
| POST | Endpoint del protocolo MCP para llamadas de herramientas de IA |
| POST | TTS directo: envía JSON, recibe archivo mp3 |
| GET | Sirve los archivos de audio generados |
| GET | Comprobación de estado |
Integración MCP
Añade a la configuración de tu cliente MCP:
{
"mcpServers": {
"tts": {
"url": "http://localhost:5000/mcp"
}
}
}El servidor expone una herramienta:
generate_speech
Parámetro | Tipo | Obligatorio | Descripción |
text | string | sí | Texto a pronunciar |
emotion | string | no | neutral, happy, sad, angry, fearful, surprised, disgusted |
speed | number | no | 0.5 - 2.0 (por defecto 0.9) |
language | string | no | p. ej. "Chinese,Yue" para cantonés |
Uso directo de TTS
curl -X POST http://localhost:5000/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "speed": 1.0}' \
--output speech.mp3Despliegue
Funciona en cualquier lugar donde se ejecute Python: un VPS, una máquina virtual en la nube o un contenedor. Para acceso público, colócalo detrás de un proxy inverso (nginx/caddy) con HTTPS.
Ejemplo con 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.targetNotas
Los archivos de audio generados se almacenan en
/tmpy no se limpian automáticamente. Para producción, añade un trabajo cron o lógica de limpieza.La API de MiniMax es un servicio de pago. Consulta sus precios para el uso de TTS.
La clonación de voz requiere configurar una voz personalizada en la plataforma MiniMax primero.
Licencia
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Remote text-to-speech MCP server with text_to_speech and list_voices tools. Free plan.
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.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn 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.328 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.11MIT
- 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