
Voice Generation MCP Server
Enables text-to-speech conversion using Minimax AI's voice synthesis API with automatic upload to Amazon S3. Supports customizable voice settings including model selection, voice ID, and speech speed control.
README
Voice Generation MCP Server
A Model Context Protocol (MCP) server that provides voice generation capabilities using the Minimax AI API. This server converts text to speech and automatically uploads the generated audio files to Amazon S3 for easy access and sharing.
Features
- Text-to-Speech Generation: Convert text to high-quality speech using Minimax AI's voice synthesis API
- S3 Integration: Automatically upload generated audio files to Amazon S3 with organized directory structure
- MCP Protocol Support: Full compatibility with Model Context Protocol for seamless integration with AI assistants
- Authentication: Built-in API key authentication for secure access
- Multiple Transport Modes: Support for HTTP, SSE, and STDIO transport protocols
- Docker Support: Easy deployment with Docker and Docker Compose
- Configurable Audio Settings: Customizable sample rate, bitrate, and format options
Prerequisites
- Python 3.8 or higher
- Minimax AI API credentials
- Amazon S3 bucket and credentials
- (Optional) Docker and Docker Compose for containerized deployment
Installation
Local Installation
-
Clone the repository
git clone <repository-url> cd voice-gen-mcp
-
Create a virtual environment
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment variables
cp env.example .env # Edit .env with your actual configuration values
Docker Installation
-
Build the Docker image
docker build -t voice-gen-mcp .
-
Run with Docker Compose
cp env.example .env # Edit .env with your configuration docker-compose up -d
Configuration
Environment Variables
Create a .env
file based on env.example
with the following required variables:
Voice Generation API (Required)
VOICE_GEN_API_GROUP_ID=your_minimax_group_id
VOICE_GEN_API_KEY=your_minimax_api_key
S3 Configuration (Required)
S3_BUCKET_NAME=your_s3_bucket_name
S3_REGION=us-east-1
S3_ACCESS_KEY_ID=your_s3_access_key_id
S3_SECRET_ACCESS_KEY=your_s3_secret_access_key
S3_ENDPOINT=https://s3.amazonaws.com
S3_PREFIX=voice-gen/
Usage
Starting the Server
Local Development
python3 server.py
Docker
docker run -d \
--name voice-gen-mcp \
-p 8000:8000 \
--env-file .env \
voice-gen-mcp
Docker Compose
docker-compose up -d
MCP Clients
The server supports multiple transport modes:
- HTTP:
http://localhost:8000/mcp
- SSE:
http://localhost:8000/sse
- STDIO: Direct process communication
Available Tools
generate_voice
Converts text to speech and uploads to S3.
Parameters:
text
(string, required): The text to convert to speechmodel
(string, optional): Model to use (default: "speech-2.5-hd-preview")voice_id
(string, optional): Voice ID to use (default: "mylxsw_voice_1")speed
(float, optional): Speech speed (default: 1.0, typically 0.5-2.0)
Returns:
- Success message with S3 URL and file size
- Error message if generation fails
Example:
{
"text": "Hello, this is a test of the voice generation system.",
"model": "speech-2.5-hd-preview",
"voice_id": "mylxsw_voice_1",
"speed": 1.2
}
Speed Control:
speed = 0.5
: Half speed (slower speech)speed = 1.0
: Normal speed (default)speed = 1.5
: 1.5x speed (faster speech)speed = 2.0
: Double speed (very fast speech)
License
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。