Minimax AI MCP server

Integrates with Minimax's AI services to provide image generation and text-to-speech capabilities through a Node.js server, enabling editors to access image-01 and speech-01 models for creating visuals and natural-sounding audio without leaving the editing environment.
Back to servers
Setup instructions
Provider
PsychArch
Release date
Mar 16, 2025
Language
TypeScript
Stats
51 stars

The Minimax MCP Tools server integrates Minimax AI capabilities into your Model Context Protocol (MCP) setup, providing asynchronous image generation and text-to-speech functionality with intelligent rate limiting. It's designed for batch content creation workflows where you need to generate multiple media assets efficiently.

Installation and Configuration

To use the Minimax MCP Tools server, you need to add it to your MCP configuration:

{
  "mcpServers": {
    "minimax-mcp-tools": {
      "command": "npx",
      "args": ["minimax-mcp-tools"],
      "env": {
        "MINIMAX_API_KEY": "your_api_key_here"
      }
    }
  }
}

Make sure to replace your_api_key_here with your actual Minimax API key.

Available Tools

Image Generation

You can submit image generation tasks asynchronously with the submit_image_generation tool:

// Example usage
const result = await mcp.invoke("minimax-mcp-tools.submit_image_generation", {
  prompt: "A serene mountain landscape at sunset",
  outputFile: "./images/landscape.png",
  // Optional parameters
  aspectRatio: "16:9",
  // customSize: {width: 1024, height: 576},
  // seed: 42,
  // subjectReference: "URL_TO_REFERENCE_IMAGE",
  // style: "realistic"
});

Parameters:

  • Required:

    • prompt: Text description of the image to generate
    • outputFile: Path where the generated image will be saved
  • Optional:

    • aspectRatio: Aspect ratio of the generated image (e.g., "16:9", "4:3")
    • customSize: Custom dimensions object with width and height
    • seed: Seed value for reproducible results
    • subjectReference: Reference image URL
    • style: Style guidance for the image

Speech Generation

You can convert text to speech asynchronously with the submit_speech_generation tool:

// Example usage
const result = await mcp.invoke("minimax-mcp-tools.submit_speech_generation", {
  text: "Hello world, this is a text-to-speech demonstration.",
  outputFile: "./audio/demo.mp3",
  // Optional parameters
  highQuality: true,
  voiceId: "male-01",
  speed: 1.0,
  // Additional optional parameters available
});

Parameters:

  • Required:

    • text: The text to convert to speech
    • outputFile: Path where the audio file will be saved
  • Optional:

    • highQuality: Boolean to enable high-quality mode
    • voiceId: ID of the voice to use
    • speed: Playback speed multiplier
    • volume: Audio volume level
    • pitch: Voice pitch adjustment
    • emotion: Emotional tone of the speech
    • format: Audio format (default is MP3)
    • sampleRate: Audio sample rate
    • bitrate: Audio bitrate
    • languageBoost: Language enhancement settings
    • intensity: Voice intensity level
    • timbre: Voice timbre adjustments
    • sound_effects: Additional sound effects to apply

Task Management

After submitting multiple tasks, you can wait for all of them to complete using the task_barrier tool:

// Example usage after submitting multiple tasks
const barrierResult = await mcp.invoke("minimax-mcp-tools.task_barrier", {});

// Now all your images and audio files are ready at the paths you specified

Batch Processing Workflow

The server is designed for efficient batch content creation. Here's an example workflow:

// Submit multiple tasks in quick succession
const imageTask1 = await mcp.invoke("minimax-mcp-tools.submit_image_generation", {
  prompt: "A futuristic city skyline",
  outputFile: "./images/city.png"
});

const speechTask1 = await mcp.invoke("minimax-mcp-tools.submit_speech_generation", {
  text: "Welcome to the future city tour.",
  outputFile: "./audio/intro.mp3"
});

const imageTask2 = await mcp.invoke("minimax-mcp-tools.submit_image_generation", {
  prompt: "A high-tech transportation system",
  outputFile: "./images/transport.png"
});

// Wait for all tasks to complete
const results = await mcp.invoke("minimax-mcp-tools.task_barrier", {});

// Now all files are available for use
console.log("All media assets generated successfully");

This pattern allows you to maximize throughput while respecting API rate limits (10 RPM for images, 20 RPM for speech).

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-mcp-tools" '{"command":"npx","args":["minimax-mcp-tools"],"env":{"MINIMAX_API_KEY":"your-minimax-api-key","MINIMAX_GROUP_ID":"your-minimax-group-id"}}'

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-mcp-tools": {
            "command": "npx",
            "args": [
                "minimax-mcp-tools"
            ],
            "env": {
                "MINIMAX_API_KEY": "your-minimax-api-key",
                "MINIMAX_GROUP_ID": "your-minimax-group-id"
            }
        }
    }
}

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-mcp-tools": {
            "command": "npx",
            "args": [
                "minimax-mcp-tools"
            ],
            "env": {
                "MINIMAX_API_KEY": "your-minimax-api-key",
                "MINIMAX_GROUP_ID": "your-minimax-group-id"
            }
        }
    }
}

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