MiniMax Unified MCP
Unifies MiniMax's multimodal generation, web search, image understanding, audio, video, and music tools into a single MCP server for use with Claude and other clients.
README
<div align="center">
MiniMax Unified MCP
⚡ Unified MiniMax MCP for multimodal generation, Token Plan search, and image understanding.
English | 简体中文
</div>
✨ Overview
minimax-unified-mcp merges three capability groups into one installable MCP server:
- Official multimodal MiniMax generation tools
- Official Token Plan tools:
web_searchandunderstand_image - Token Plan quota lookup aligned with the ExoMind Team workflow
This repository is intended for local-first MCP usage in Claude, Codex, and compatible MCP clients.
🧰 Tools
| Tool | Purpose |
|---|---|
quota_tool |
Query Token Plan quota and refresh window |
web_search_tool |
Search the live web via Token Plan |
understand_image_tool |
Analyze a local image path, remote URL, or data: URL |
text_to_audio_tool |
Generate speech with configurable output mode |
text_to_audio_streaming_tool |
Low-latency speech playback path |
list_voices_tool |
List available voices |
voice_clone_tool |
Clone a voice from sample audio |
play_audio_tool |
Play local or remote audio |
generate_video_tool |
Generate text-to-video or image-to-video |
query_video_generation_tool |
Query video generation status |
text_to_image_tool |
Generate images |
music_generation_tool |
Generate music from prompt and lyrics |
voice_design_tool |
Design a new voice |
🚀 Quick Start
1. Install
cd path/to/minimax-unified-mcp
python -m pip install -e ".[dev]"
2. Configure environment
Copy .env.example to .env and fill in your credentials.
Important variables:
MINIMAX_TOKEN_PLAN_API_KEY: Token Plan API keyMINIMAX_API_HOST:https://api.minimax.ioorhttps://api.minimaxi.comMINIMAX_MCP_BASE_PATH: base path for local artifactsMINIMAX_API_RESOURCE_MODE:urlorlocalFASTMCP_LOG_LEVEL: logging level, usuallyWARNINGorINFO
3. Add to your MCP client
{
"mcpServers": {
"MiniMaxUnified": {
"command": "python",
"args": ["-m", "exomind_minimax_mcp"],
"env": {
"MINIMAX_TOKEN_PLAN_API_KEY": "YOUR_TOKEN_PLAN_KEY",
"MINIMAX_API_HOST": "https://api.minimax.io",
"MINIMAX_MCP_BASE_PATH": "./output/minimax",
"MINIMAX_API_RESOURCE_MODE": "local",
"FASTMCP_LOG_LEVEL": "WARNING"
}
}
}
}
See mcp_server_config_demo.json for a ready-to-copy example.
🧭 Recommended Usage
Web search
Use web_search_tool for current external information.
{
"query": "MiniMax Token Plan latest image model"
}
Image understanding
Follow the official Token Plan MCP signature: prompt + image_source.
image_source supports:
- local file path, such as
D:/images/demo.png - HTTP / HTTPS image URL
data:URL
{
"prompt": "Describe the UI structure in this screenshot",
"image_source": "D:/images/screenshot.png"
}
Image generation then image understanding
- Call
text_to_image_tool - Copy one returned image URL
- Pass that URL into
understand_image_tool.image_source
Low-latency TTS
Prefer text_to_audio_streaming_tool when perceived latency matters.
{
"text": "hello from MiniMax"
}
Use text_to_audio_tool when you need more control over resource_mode, local output, or autoplay.
Quota field notes
quota_tool currently maps the upstream fields to their display semantics as follows:
current_interval_usage_count: remaining in current interval(当前窗口剩余)current_weekly_usage_count: weekly remaining(本周剩余)
Note: even though the field name contains usage_count, this output is treated as remaining quota, not used quota.
Video generation
- Default text-to-video path uses
MiniMax-Hailuo-2.3 - If you choose
MiniMax-Hailuo-2.3-Fast, also providefirst_frame_image first_frame_imagesupports local path, URL, ordata:URL
{
"prompt": "A cute orange cat sleeping in sunlight",
"model": "MiniMax-Hailuo-2.3-Fast",
"first_frame_image": "D:/images/cat.png",
"async_mode": true
}
Music generation
Music generation is slower than typical text APIs. The unified client uses an extended request timeout for this endpoint, but real latency still depends on upstream service status.
⚙️ Configuration
Detailed guides:
📦 Output Modes
Two output modes are supported:
url: return remote URLs directlylocal: download artifacts toMINIMAX_MCP_BASE_PATH
Use local when you want reproducible local files for downstream automation.
🛡️ Errors and Quota Signals
The unified client preserves upstream errors and improves readability for common account states:
1008 insufficient balance: clearly reported as balance insufficient2056 usage limit exceeded: clearly reported as quota / usage exhausted2013 invalid params: preserved for bad payloads such as unsupported video mode combinations
✅ Testing
Run the full suite:
python -m pytest -v
Run the live API matrix:
python scripts/run_live_api_matrix.py --json
The live matrix classifies results into statuses such as passed, unsupported, insufficient_balance, usage_limit_exceeded, timeout, and invalid_params.
🌍 Open Source
This repository is released under the MIT License.
- License: LICENSE
- Third-party attribution: THIRD_PARTY_NOTICES.md
- Contributing: CONTRIBUTING.md
- Security: SECURITY.md
📌 Status
The package runs from src/exomind_minimax_mcp/ and no longer depends on uvx for local development. It is ready for GitHub-based release packaging and ongoing MCP client integration.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.