MiniMax MCP Server

repository·main·Indexed 23 days ago

https://github.com/minimax-ai/minimax-mcp

An MCP server (version 0.0.18) that enables AI clients like Claude Desktop and Cursor to interact with MiniMax generative APIs. It provides tools for text-to-speech, voice cloning, video generation, and image creation. The server supports both stdio and SSE transport mechanisms and includes a CLI for automatic configuration generation.

Tokens
5.1K
Snippets
4
Records
39
Agent score
77%

What's inside minimax-mcp

  1. Understand MiniMax MCP Transport Modes

    main

    The MiniMax MCP server supports two transport methods:

    • stdio: Best for local deployment. Communicates via stdout. Supports processing local files or valid URL resources as input.
    • SSE (Server-Sent Events): Suitable for local or cloud deployment. Communicates via network. If deployed in the cloud, it is recommended to use URLs for input.
  2. MiniMax MCP Transport Types

    main

    The server supports two transport mechanisms:

    • stdio: Runs locally and communicates through stdout. Supports processing local files or valid URL resources.
    • SSE (Server-Sent Events): Can be deployed locally or in the cloud and communicates through the network. When deployed in the cloud, it is recommended to use URL for input.
  3. Quickstart with MiniMax MCP

    main

    To use the MiniMax MCP server, follow these steps:

    1. Get an API Key: Obtain your key from either the MiniMax International Platform or the MiniMax Domestic Platform.
    2. Install uv: Install the Python package manager uv using:
      curl -LsSf https://astral.sh/uv/install.sh | sh
    3. Match API Key and Host: Ensure your MINIMAX_API_KEY and MINIMAX_API_HOST match your region to avoid invalid api key errors.
    RegionAPI Key SourceMINIMAX_API_HOST
    InternationalMiniMax Internationalhttps://api.minimax.io
    DomesticMiniMax Domestichttps://api.minimaxi.com
    curl -LsSf https://astral.sh/uv/install.sh | sh
  4. Configure MiniMax MCP for Claude Desktop

    main

    To integrate MiniMax with Claude Desktop, edit your claude_desktop_config.json file (located via Claude > Settings > Developer > Edit Config).

    Windows Users: You must enable "Developer Mode" in Claude Desktop (via Help > Enable Developer Mode) to use MCP servers.

    Configuration Schema:

    • MINIMAX_API_KEY: Your API key.
    • MINIMAX_MCP_BASE_PATH: Local directory path for output (e.g., /Users/xxx/Desktop).
    • MINIMAX_API_HOST: Must match your key region (https://api.minimaxi.com or https://api.minimax.io).
    • MINIMAX_API_RESOURCE_MODE: (Optional) How resources are provided after generation. Options: url (default) or local.
    {
      "mcpServers": {
        "MiniMax": {
          "command": "uvx",
          "args": [
            "minimax-mcp"
          ],
          "env": {
            "MINIMAX_API_KEY": "填写你的API密钥",
            "MINIMAX_MCP_BASE_PATH": "本地输出目录路径,如/User/xxx/Desktop",
            "MINIMAX_API_HOST": "填写API Host, https://api.minimaxi.com 或 https://api.minimax.io",
            "MINIMAX_API_RESOURCE_MODE": "可选配置,资源生成后的提供方式, 可选项为 [url|local], 默认为 url"
          }
        }
      }
    }
  5. Configure Claude Desktop for MiniMax MCP

    main

    To integrate MiniMax with Claude Desktop, edit your claude_desktop_config.json file (found via Claude > Settings > Developer > Edit Config).

    Windows Users: You must enable "Developer Mode" in Claude Desktop by clicking "Help" in the top-left hamburger menu and selecting "Enable Developer Mode".

    Troubleshooting spawn uvx ENOENT: If you encounter this error, find the absolute path of uvx by running which uvx in your terminal, and use that full path in the command field of your config.

    {
      "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"
          }
        }
      }
    }
  6. Use `generate_video` in async-mode

    main
    When using the generate_video tool, you can operate in async-mode. This is useful for long-running video generation tasks where you do not want to block the client execution while waiting for the final result.
  7. Generate Claude Desktop configuration for Minimax MCP

    main

    The minimax-mcp CLI can automatically generate the required claude_desktop_config.json for Claude Desktop integration. It detects your platform (Windows, macOS, or Linux) to find the standard Claude configuration directory.

    To use this, you must provide a Minimax API key via the --api-key flag or by setting the MINIMAX_API_KEY environment variable.

  8. Troubleshoot spawn uvx ENOENT error

    main
    The spawn uvx ENOENT error typically indicates that the uvx command is not found in your system's PATH. This occurs when the MCP client attempts to run the server using uvx but cannot locate the executable. Ensure that uv is installed on your system and accessible via your terminal.
  9. Troubleshoot MiniMax MCP Errors

    main

    invalid api key

    Ensure your MINIMAX_API_KEY and MINIMAX_API_HOST belong to the same region:

    spawn uvx ENOENT

    This error occurs if the system cannot find the uvx command. Find the absolute path of uvx by running:

    which uvx

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

    which uvx
  10. Troubleshoot invalid API key

    main
    If you encounter an error related to an invalid API key, ensure that your MiniMax API key is correctly configured in your environment or MCP client settings. Check for typos, extra spaces, or missing characters in the key provided.