Sponsored by Deepsite.site

MCP MiniMax Music Server

Created By
falahgs8 months ago
Content

MCP MiniMax Music Server

Version License

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

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

  1. Clone the repository:

    git clone https://github.com/yourusername/mcp-minimax-music-server.git
    cd mcp-minimax-music-server
    
  2. Install dependencies:

    npm install
    
  3. Build the server:

    npm run build
    

⚙️ Configuration

Claude Desktop Configuration

  1. 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
  2. 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:

  1. Environment Variables (Recommended)

    • Set in Claude Desktop config as shown above
    • Prefix with "Bearer " (include the space)
    • Example: "AIML_API_KEY": "Bearer 3d90d64a000c4e6eb02df7e52d2166d2"
  2. 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 generation
  • model (optional): Set to "minimax-music"
  • reference_audio_url (optional): URL of reference audio
  • generation_id (optional): ID from previous generation for status checking

Example Commands

  1. Start new generation:

    Generate audio with prompt "Create a romantic love song with gentle acoustic guitar and soft vocals"
    
  2. 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

  1. Step 1: Submit Generation

    • Send prompt and parameters
    • Receive generation ID
  2. Step 2: Check Status

    • Poll status using generation ID
    • Download audio when complete

🔍 Troubleshooting

Common Issues

  1. Authentication Errors (401)

    • Verify API key format (should start with "Bearer ")
    • Check API key validity
    • Ensure correct configuration in claude_desktop_config.json
  2. Path Issues

    • Use correct path format for your OS
    • Windows: Use double backslashes
    • Verify build directory exists
  3. Generation Errors

    • Check prompt format (should be wrapped in ##...## for lyrics)
    • Ensure reference audio URL is accessible
    • Verify prompt length and content

Debug Steps

  1. Rebuild the server:

    npm run build
    
  2. Restart Claude Desktop

  3. Check server logs for errors

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. 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:

  1. Check the troubleshooting section
  2. Open an issue in the repository
  3. Contact the author directly

This project is part of the Model Context Protocol ecosystem, enabling seamless integration between AI agents and external services.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.