minimax-tts-mcp
minimax-tts-mcp
AIに発話能力を与える軽量なMCP(Model Context Protocol)サーバーです。テキストを入力すると、音声URLを返します。
Flask + MiniMax TTS API で構築されています。
機能
MCPプロトコル経由で
generate_speechツールを公開します。AIがテキストを送信 → サーバーがMiniMax TTSを呼び出し → 再生可能なmp3 URLを返します。
感情制御、速度調整、言語選択(広東語、北京語など)に対応しています。
Related MCP server: Blabber-MCP
クイックスタート
1. クローン & インストール
git clone https://github.com/YOUR_USERNAME/minimax-tts-mcp.git
cd minimax-tts-mcp
pip install -r requirements.txt2. 設定
cp .env.example .env
# Edit .env with your MiniMax API key and voice IDAPIキーと音声IDは MiniMax Platform から取得してください。
3. 実行
python server.pyサーバーは http://localhost:5000 で起動します。
エンドポイント
エンドポイント | メソッド | 説明 |
| POST | AIツール呼び出し用のMCPプロトコルエンドポイント |
| POST | 直接TTS — JSONを送信するとmp3ファイルを取得 |
| GET | 生成された音声ファイルを配信 |
| GET | ヘルスチェック |
MCP統合
MCPクライアント設定に追加します:
{
"mcpServers": {
"tts": {
"url": "http://localhost:5000/mcp"
}
}
}このサーバーは1つのツールを公開します:
generate_speech
パラメータ | 型 | 必須 | 説明 |
text | string | 必須 | 読み上げるテキスト |
emotion | string | 任意 | neutral, happy, sad, angry, fearful, surprised, disgusted |
speed | number | 任意 | 0.5 - 2.0(デフォルト: 0.9) |
language | string | 任意 | 例:広東語の場合は "Chinese,Yue" |
直接TTSの使用
curl -X POST http://localhost:5000/tts \
-H "Content-Type: application/json" \
-d '{"text": "Hello world", "speed": 1.0}' \
--output speech.mp3デプロイ
Pythonが動作する環境ならどこでも動作します。VPS、クラウドVM、コンテナなど。公開する場合は、HTTPS付きのリバースプロキシ(nginx/caddy)の背後に配置してください。
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.target注意事項
生成された音声ファイルは
/tmpに保存され、自動的にクリーンアップされません。本番環境では、cronジョブまたはクリーンアップ処理を追加してください。MiniMax APIは有料サービスです。TTSの利用料金を確認してください。
音声クローンを使用するには、先にMiniMaxプラットフォームでカスタム音声を設定する必要があります。
ライセンス
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
- 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.347 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