Skip to main content
Glama
longhz

MiniMax MCP Server

by longhz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MINIMAX_API_KEYYesYour MiniMax API key (required). Obtain from https://platform.minimaxi.com/subscribe/token-plan
MINIMAX_API_HOSTNoMiniMax API host. Default: https://api.minimaxi.com (China mainland) or https://api.minimax.io (global)https://api.minimaxi.com
MINIMAX_CACHE_DIRNoDirectory for vision cache~/.minimax-mcp/cache
MINIMAX_CACHE_MAX_SIZENoMaximum number of cache entries256
MINIMAX_CACHE_TTL_DAYSNoCache TTL in days7
MINIMAX_IMAGE_OUTPUT_DIRNoDirectory for saving generated images~/Pictures/MiniMax
MINIMAX_VISION_DEFAULT_MODENoDefault vision mode: quick or detaileddetailed

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
query_quotaA

查询 MiniMax Token Plan 剩余额度

返回文本模型(5小时周期)和其他模型(日周期)的配额使用情况, 包括已用次数、剩余次数、使用百分比、重置时间等。

无需参数,使用 config.env 中配置的 API Key。

web_searchB

使用 MiniMax 进行网络搜索

Args: query: 搜索查询词,例如 "OpenAI GPT-5 发布日期"

understand_imageA

分析图片内容 — 借鉴 OpenHanako Vision Bridge 设计

两种模式:

  • quick: 简洁描述(~300词),适合快速了解图片内容

  • detailed: 结构化 7 维度分析(image_overview / visible_text / objects_and_layout / charts_or_data / answer_to_request / evidence / uncertainty),参考 OpenHanako vision-bridge.js

支持缓存:同一图片+相同prompt不重复调用API(LRU + 磁盘持久化)

Args: image_url: 图片 URL(HTTP/HTTPS)或本地文件路径,支持 JPEG/PNG/GIF/WebP (≤20MB) prompt: 对图片的具体问题,如 "这张图片里有什么错误提示?" mode: "quick" 或 "detailed",默认 detailed use_cache: 是否使用缓存,默认 true

generate_imageA

使用 MiniMax image-01 生成图片,默认保存到本地

图片自动保存到配置的输出目录(默认 ~/Pictures/MiniMax)。

Args: prompt: 图片描述文本(英文效果最佳,中文也可) model: 模型名称,默认 image-01 aspect_ratio: 图片比例:1:1 / 16:9 / 9:16 / 3:4 / 4:3,默认 1:1 response_format: 默认 base64(自动存本地),改 url 则仅返回24h临时链接 n: 生成数量 1-3,默认 1 prompt_optimizer: 是否启用提示词优化,默认 true save_to_disk: 是否保存到本地(仅 base64 模式有效),默认 true

clear_vision_cacheA

清除图片理解缓存(手动触发)

将内存中的缓存数据强制写入磁盘,并返回当前缓存统计。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
status服务状态
show_config当前配置(敏感信息已脱敏)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/longhz/minimax-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server