MiniMax MCP server

Enables high-quality text-to-speech, voice cloning, and video generation capabilities through MiniMax's API with robust error handling and file management features.
Back to servers
Setup instructions
Provider
MiniMax AI
Release date
Apr 10, 2025
Language
Python
Package
Stats
331.3K downloads
753 stars

The MiniMax Model Context Protocol (MCP) server enables AI assistants to access MiniMax's powerful text-to-speech, voice cloning, video generation, and image generation capabilities. This server works with MCP clients like Claude Desktop, Cursor, Windsurf, and OpenAI Agents.

Installation

Prerequisites

  1. Get your API key from the MiniMax platform
  2. Install uv (Python package manager):
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Important API Configuration

Your API host and key must match by region to avoid "Invalid API key" errors:

Region API Key Source API Host
Global MiniMax Global https://api.minimax.io
Mainland MiniMax China https://api.minimaxi.com

Client Setup

Claude Desktop

  1. Navigate to: Claude > Settings > Developer > Edit Config > claude_desktop_config.json
  2. Add the following configuration:
{
  "mcpServers": {
    "MiniMax": {
      "command": "uvx",
      "args": [
        "minimax-mcp",
        "-y"
      ],
      "env": {
        "MINIMAX_API_KEY": "insert-your-api-key-here",
        "MINIMAX_MCP_BASE_PATH": "/User/xxx/Desktop",
        "MINIMAX_API_HOST": "https://api.minimax.io",
        "MINIMAX_API_RESOURCE_MODE": "url"
      }
    }
  }
}

Note: On Windows, enable "Developer Mode" in Claude Desktop via Help > Enable Developer Mode.

Cursor

  1. Go to Cursor -> Preferences -> Cursor Settings -> MCP -> Add new global MCP Server
  2. Use the same configuration parameters as shown above

Transport Options

The MCP server supports two transport methods:

Type Description Use Case
stdio Local operation via stdout Best for processing local files
SSE Network communication Can be deployed locally or in cloud, better for URL resources

Available Tools

Text to Speech

Convert text to audio with a specified voice:

tool: text_to_audio
input: {
  "text": "Hello, world!",
  "voice_id": "male-en-us-john"
}

List Voices

Get all available voices:

tool: list_voices

Voice Cloning

Clone a voice using provided audio files:

tool: voice_clone
input: {
  "audio_files": ["file:///path/to/audio.mp3"],
  "name": "my-custom-voice"
}

Video Generation

Generate a video from a text prompt:

tool: generate_video
input: {
  "prompt": "A scenic mountain landscape with flowing water"
}

Query Video Generation

Check the status of a video generation task:

tool: query_video_generation
input: {
  "task_id": "your-task-id-here"
}

Image Generation

Generate an image from a text prompt:

tool: text_to_image
input: {
  "prompt": "A magical forest with glowing mushrooms"
}

Troubleshooting

Invalid API Key

Ensure your API key matches your region's API host:

"spawn uvx ENOENT" Error

Find the absolute path to uvx:

which uvx

Then update your configuration with the full path (e.g., "command": "/usr/local/bin/uvx").

Using Video Generation in Async Mode

Define completion rules in your MCP client settings to handle asynchronous video generation responses.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "MiniMax" '{"command":"uvx","args":["minimax-mcp","-y"],"env":{"MINIMAX_API_KEY":"insert-your-api-key-here","MINIMAX_MCP_BASE_PATH":"local-output-dir-path, such as /User/xxx/Desktop","MINIMAX_API_HOST":"api host, https://api.minimax.io | https://api.minimaxi.com","MINIMAX_API_RESOURCE_MODE":"optional, [url|local], url is default, audio/image/video are downloaded locally or provided in URL format"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "MiniMax": {
            "command": "uvx",
            "args": [
                "minimax-mcp",
                "-y"
            ],
            "env": {
                "MINIMAX_API_KEY": "insert-your-api-key-here",
                "MINIMAX_MCP_BASE_PATH": "local-output-dir-path, such as /User/xxx/Desktop",
                "MINIMAX_API_HOST": "api host, https://api.minimax.io | https://api.minimaxi.com",
                "MINIMAX_API_RESOURCE_MODE": "optional, [url|local], url is default, audio/image/video are downloaded locally or provided in URL format"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "MiniMax": {
            "command": "uvx",
            "args": [
                "minimax-mcp",
                "-y"
            ],
            "env": {
                "MINIMAX_API_KEY": "insert-your-api-key-here",
                "MINIMAX_MCP_BASE_PATH": "local-output-dir-path, such as /User/xxx/Desktop",
                "MINIMAX_API_HOST": "api host, https://api.minimax.io | https://api.minimaxi.com",
                "MINIMAX_API_RESOURCE_MODE": "optional, [url|local], url is default, audio/image/video are downloaded locally or provided in URL format"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later