MCP MiniMax Music Server
Enables AI agents to generate music and audio content using the MiniMax Music API through text prompts, with support for reference audio and lyric generation.
README
MCP MiniMax Music Server
A Model Context Protocol (MCP) server implementation for AI-powered audio generation using the MiniMax Music API. Developed by Falah.G.Salieh.
📋 Table of Contents
- Overview
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- API Reference
- Troubleshooting
- Contributing
- License
- Author
🎯 Overview
This MCP server enables AI agents to generate music and audio content using the MiniMax Music API through the Model Context Protocol. It provides seamless integration with MCP hosts like Claude Desktop, allowing AI agents to create music and audio based on text prompts.
✨ Features
- AI-powered music generation
- Support for MiniMax Music model
- Two-step generation process with status checking
- Seamless integration with Claude Desktop
- Environment variable support for API keys
- Detailed error handling and reporting
🔧 Prerequisites
- Node.js (v16 or higher)
- TypeScript (v5.3.3 or higher)
- Claude Desktop (latest version)
- AIML API Key
- Windows/Linux/macOS operating system
📦 Installation
-
Clone the repository:
git clone https://github.com/yourusername/mcp-minimax-music-server.git cd mcp-minimax-music-server -
Install dependencies:
npm install -
Build the server:
npm run build
⚙️ Configuration
Claude Desktop Configuration
-
Locate your Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
-
Add the following configuration:
{ "mcpServers": { "minimax-music-server": { "command": "node", "args": [ "G:\\mcp-minimax-music-server\\build\\index.js" ], "env": { "AIML_API_KEY": "Bearer your-aiml-api-key-here" } } } }⚠️ Important:
- Replace the path with your actual server path
- Add "Bearer " prefix to your API key
- Use double backslashes in Windows paths
API Key Setup
Your AIML API key can be configured in two ways:
-
Environment Variables (Recommended)
- Set in Claude Desktop config as shown above
- Prefix with "Bearer " (include the space)
- Example:
"AIML_API_KEY": "Bearer 3d90d64a000c4e6eb02df7e52d2166d2"
-
Direct Configuration
- Pass the API key directly in the generation request
- Less secure, but useful for testing
🚀 Usage
Basic Usage
The server provides a tool called generate_audio with the following parameters:
prompt(required): Text prompt for audio generationmodel(optional): Set to "minimax-music"reference_audio_url(optional): URL of reference audiogeneration_id(optional): ID from previous generation for status checking
Example Commands
-
Start new generation:
Generate audio with prompt "Create a romantic love song with gentle acoustic guitar and soft vocals" -
Check generation status:
Generate audio with generation_id "abc123" and prompt "Check status"
Response Format
{
"toolResult": {
"status": "completed",
"id": "generation-id",
"audio_file": {
"url": "https://cdn.example.com/audio.mp3",
"content_type": "audio/mpeg",
"file_name": "output.mp3",
"file_size": 1024000
}
}
}
📚 API Reference
MiniMax Music Model
The server uses the MiniMax Music model which:
- Specializes in music generation
- Requires reference audio for style matching
- Supports lyric generation with ## delimiters
- Generates high-quality musical output
Generation Process
-
Step 1: Submit Generation
- Send prompt and parameters
- Receive generation ID
-
Step 2: Check Status
- Poll status using generation ID
- Download audio when complete
🔍 Troubleshooting
Common Issues
-
Authentication Errors (401)
- Verify API key format (should start with "Bearer ")
- Check API key validity
- Ensure correct configuration in
claude_desktop_config.json
-
Path Issues
- Use correct path format for your OS
- Windows: Use double backslashes
- Verify build directory exists
-
Generation Errors
- Check prompt format (should be wrapped in ##...## for lyrics)
- Ensure reference audio URL is accessible
- Verify prompt length and content
Debug Steps
-
Rebuild the server:
npm run build -
Restart Claude Desktop
-
Check server logs for errors
🤝 Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
📄 License
MIT License - see the LICENSE file for details
👤 Author
Falah.G.Salieh
- Location: Baghdad, Iraq
- Role: Developer & AI Integration Specialist
- Year: 2025
🌟 Support
Need help? Here's how to get support:
- Check the troubleshooting section
- Open an issue in the repository
- Contact the author directly
This project is part of the Model Context Protocol ecosystem, enabling seamless integration between AI agents and external services.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。