MiniMax MCP JS
Documentation
- Python Version - Official Python implementation of MiniMax MCP
Features
- Text-to-Speech (TTS)
- Image Generation
- Video Generation
- Voice Cloning
- Dynamic configuration (supports both environment variables and request parameters)
- Compatible with MCP platform hosting (ModelScope and other MCP platforms)
Installation
Quick Start
Quickstart with MCP Client
- Get your API key from MiniMax International Platform.
- Install minimax-mcp-js using pnpm:
pnpm add minimax-mcp-js
- Important: API HOST&KEY are different in different region, they must match, otherwise you will receive an
Invalid API keyerror.
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Using with MCP Clients (Recommended)
- Install the CLI tool globally:
- Configure your MCP client:
Claude Desktop
Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include:Cursor
Cursor Preferences Cursor Settings MCP Add new global MCP Server to add the above config.npm link to test your changes:- Global Host:
https://api.minimaxi.chat(note the extra "i")
- Mainland China Host:
https://api.minimaxi.chat
Transport Modes
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Configuration
1. Request Parameter Configuration (Highest Priority)
meta.auth object in the request parameters:2. API Configuration
startMiniMaxMCP function:3. Command Line Arguments
4. Environment Variables (Lowest Priority)
Configuration Priority
- Request-level configuration (via
meta.authin each API request)
- Command line arguments
- Environment variables
- Configuration file
- Default values
Configuration Parameters
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
- Global Host:
https://api.minimaxi.chat(note the extra "i")
- Mainland China Host:
https://api.minimaxi.chat
Example usage
1. broadcast a segment of the evening news
2. clone a voice
3. generate a video
4. generate images
Available Tools
Text to Audio
text_to_audiotext: Text to convert (required)
model: Model version, options are 'speech-02-hd', 'speech-02-turbo', 'speech-01-hd', 'speech-01-turbo', 'speech-01-240228', 'speech-01-turbo-240228', default is 'speech-02-hd'
voiceId: Voice ID, default is 'male-qn-qingse'
speed: Speech speed, range 0.5-2.0, default is 1.0
vol: Volume, range 0.1-10.0, default is 1.0
pitch: Pitch, range -12 to 12, default is 0
emotion: Emotion, options are 'happy', 'sad', 'angry', 'fearful', 'disgusted', 'surprised', 'neutral', default is 'happy'. Note: This parameter only works with 'speech-02-hd', 'speech-02-turbo', 'speech-01-turbo', 'speech-01-hd' models
format: Audio format, options are 'mp3', 'pcm', 'flac', 'wav', default is 'mp3'
sampleRate: Sample rate (Hz), options are 8000, 16000, 22050, 24000, 32000, 44100, default is 32000
bitrate: Bitrate (bps), options are 64000, 96000, 128000, 160000, 192000, 224000, 256000, 320000, default is 128000
channel: Audio channels, options are 1 or 2, default is 1
languageBoost: Language boost, default is 'auto'
latexRead: Enable LaTeX formula reading
pronunciationDict: Pronunciation dictionary
stream: Enable streaming output
subtitleEnable: Enable subtitle generation
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Text to Image
text_to_imageprompt: Image description (required)
model: Model version, default is 'image-01'
aspectRatio: Aspect ratio, default is '1:1', options are '1:1', '16:9','4:3', '3:2', '2:3', '3:4', '9:16', '21:9'
n: Number of images to generate, range 1-9, default is 1
promptOptimizer: Whether to optimize the prompt, default is true
subjectReference: Path to local image file or public URL for character reference (optional)
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Generate Video
generate_videoprompt: Video description (required)
model: Model version, options are 'T2V-01', 'T2V-01-Director', 'I2V-01', 'I2V-01-Director', 'I2V-01-live', 'S2V-01', default is 'T2V-01'
firstFrameImage: Path to first frame image (optional)
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Voice Clone
voice_cloneaudioFile: Path to audio file (required)
voiceId: Voice ID (required)
text: Text for demo audio (optional)
outputDirectory: Directory to save the output file (optional)
Development
Setup
Build
Run
License
MiniMax MCP JS
Documentation
- Python Version - Official Python implementation of MiniMax MCP
Features
- Text-to-Speech (TTS)
- Image Generation
- Video Generation
- Voice Cloning
- Dynamic configuration (supports both environment variables and request parameters)
- Compatible with MCP platform hosting (ModelScope and other MCP platforms)
Installation
Quick Start
Quickstart with MCP Client
- Get your API key from MiniMax International Platform.
- Install minimax-mcp-js using pnpm:
pnpm add minimax-mcp-js
- Important: API HOST&KEY are different in different region, they must match, otherwise you will receive an
Invalid API keyerror.
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Using with MCP Clients (Recommended)
- Install the CLI tool globally:
- Configure your MCP client:
Claude Desktop
Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include:Cursor
Cursor Preferences Cursor Settings MCP Add new global MCP Server to add the above config.npm link to test your changes:- Global Host:
https://api.minimaxi.chat(note the extra "i")
- Mainland China Host:
https://api.minimaxi.chat
Transport Modes
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] | [object Object] |
Configuration
1. Request Parameter Configuration (Highest Priority)
meta.auth object in the request parameters:2. API Configuration
startMiniMaxMCP function:3. Command Line Arguments
4. Environment Variables (Lowest Priority)
Configuration Priority
- Request-level configuration (via
meta.authin each API request)
- Command line arguments
- Environment variables
- Configuration file
- Default values
Configuration Parameters
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
- Global Host:
https://api.minimaxi.chat(note the extra "i")
- Mainland China Host:
https://api.minimaxi.chat
Example usage
1. broadcast a segment of the evening news
2. clone a voice
3. generate a video
4. generate images
Available Tools
Text to Audio
text_to_audiotext: Text to convert (required)
model: Model version, options are 'speech-02-hd', 'speech-02-turbo', 'speech-01-hd', 'speech-01-turbo', 'speech-01-240228', 'speech-01-turbo-240228', default is 'speech-02-hd'
voiceId: Voice ID, default is 'male-qn-qingse'
speed: Speech speed, range 0.5-2.0, default is 1.0
vol: Volume, range 0.1-10.0, default is 1.0
pitch: Pitch, range -12 to 12, default is 0
emotion: Emotion, options are 'happy', 'sad', 'angry', 'fearful', 'disgusted', 'surprised', 'neutral', default is 'happy'. Note: This parameter only works with 'speech-02-hd', 'speech-02-turbo', 'speech-01-turbo', 'speech-01-hd' models
format: Audio format, options are 'mp3', 'pcm', 'flac', 'wav', default is 'mp3'
sampleRate: Sample rate (Hz), options are 8000, 16000, 22050, 24000, 32000, 44100, default is 32000
bitrate: Bitrate (bps), options are 64000, 96000, 128000, 160000, 192000, 224000, 256000, 320000, default is 128000
channel: Audio channels, options are 1 or 2, default is 1
languageBoost: Language boost, default is 'auto'
latexRead: Enable LaTeX formula reading
pronunciationDict: Pronunciation dictionary
stream: Enable streaming output
subtitleEnable: Enable subtitle generation
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Text to Image
text_to_imageprompt: Image description (required)
model: Model version, default is 'image-01'
aspectRatio: Aspect ratio, default is '1:1', options are '1:1', '16:9','4:3', '3:2', '2:3', '3:4', '9:16', '21:9'
n: Number of images to generate, range 1-9, default is 1
promptOptimizer: Whether to optimize the prompt, default is true
subjectReference: Path to local image file or public URL for character reference (optional)
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Generate Video
generate_videoprompt: Video description (required)
model: Model version, options are 'T2V-01', 'T2V-01-Director', 'I2V-01', 'I2V-01-Director', 'I2V-01-live', 'S2V-01', default is 'T2V-01'
firstFrameImage: Path to first frame image (optional)
outputDirectory: Directory to save the output file (optional)
outputFile: Path to save the output file (optional, auto-generated if not provided)
Voice Clone
voice_cloneaudioFile: Path to audio file (required)
voiceId: Voice ID (required)
text: Text for demo audio (optional)
outputDirectory: Directory to save the output file (optional)