MiniMax MCP JS is a JavaScript/TypeScript implementation of the Model Context Protocol (MCP) that enables powerful AI capabilities including image generation, video generation, and text-to-speech through a simple interface that works with MCP-compatible clients like Claude AI.
npx -y @smithery/cli install @MiniMax-AI/MiniMax-MCP-JS --client claude
# Install with pnpm (recommended)
pnpm add minimax-mcp-js
Before using MiniMax MCP JS, you'll need to configure it with your API key. Configuration can be done in several ways (listed by priority):
For multi-tenant environments, provide configuration in each request:
{
"params": {
"meta": {
"auth": {
"api_key": "your_api_key_here",
"api_host": "https://api.minimaxi.chat",
"base_path": "/path/to/output",
"resource_mode": "url"
}
}
}
}
# Required
MINIMAX_API_KEY=your_api_key_here
# Optional
MINIMAX_API_HOST=https://api.minimaxi.chat
MINIMAX_MCP_BASE_PATH=~/Desktop
MINIMAX_RESOURCE_MODE=url
Add to Claude > Settings > Developer > Edit Config > claude_desktop_config.json
:
{
"mcpServers": {
"minimax-mcp-js": {
"command": "npx",
"args": [
"-y",
"minimax-mcp-js"
],
"env": {
"MINIMAX_API_HOST": "https://api.minimaxi.chat",
"MINIMAX_API_KEY": "your-api-key-here",
"MINIMAX_MCP_BASE_PATH": "/User/xxx/Desktop",
"MINIMAX_RESOURCE_MODE": "url"
}
}
}
}
Go to Cursor → Preferences → Cursor Settings → MCP → Add new global MCP Server
to add similar configuration.
⚠️ Important Notes:
https://api.minimaxi.chat
(note the extra "i")https://api.minimax.chat
Convert text to speech audio file.
Tool: text_to_audio
Parameters:
- text: Text to convert (required)
- model: Model version (default: speech-02-hd)
- voiceId: Voice ID (default: male-qn-qingse)
- speed: Speech speed (range: 0.5-2.0, default: 1.0)
- vol: Volume (range: 0.1-10.0, default: 1.0)
- pitch: Pitch (range: -12 to 12, default: 0)
- emotion: Emotion (options: happy, sad, angry, etc., default: happy)
- format: Audio format (default: mp3)
Play an audio file (WAV or MP3).
Tool: play_audio
Parameters:
- inputFilePath: Path to the audio file (required)
- isUrl: Whether the audio file is a URL (default: false)
Clone a voice from an audio file.
Tool: voice_clone
Parameters:
- audioFile: Path to audio file (required)
- voiceId: Voice ID (required)
- text: Text for demo audio (optional)
Generate images based on text prompts.
Tool: text_to_image
Parameters:
- prompt: Image description (required)
- model: Model version (default: image-01)
- aspectRatio: Aspect ratio (default: 1:1)
- n: Number of images (range: 1-9, default: 1)
- subjectReference: Path to reference image (optional)
Generate videos based on text prompts.
Tool: generate_video
Parameters:
- prompt: Video description (required)
- model: Model version (default: T2V-01)
- firstFrameImage: Path to first frame image (optional)
- asyncMode: Whether to use async mode (default: false)
Query the status of an asynchronous video generation task.
Tool: query_video_generation
Parameters:
- taskId: The Task ID returned by generate_video (required)
MiniMax MCP JS supports three communication modes:
When using generate_video
with asyncMode: true
, you'll need to follow up with query_video_generation
to check the status and get the result. Consider defining completion rules in your MCP client to handle this automatically.
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.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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.
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.