minimax-web-search

Original🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected

Use MiniMax MCP for web search. Trigger conditions: (1) User requests web search, online search, information lookup (2) Need to query the latest news, information, materials (3) Use MiniMax's web_search function

2installs
Added on

NPX Install

npx skill4agent add thincher/skills minimax-web-search

Tags

Translated version includes tags in frontmatter

SKILL.md Content (Chinese)

View Translation Comparison →

minimax-web-search

Perform web searches using the MiniMax MCP server.

Execution Process (Installation required for first use, directly call Step 4 afterwards)

Step 1: Check and Install Dependencies

1.1 Check if uvx is available

bash
which uvx
If it does not exist, install uv:
Method 1: Use official installation script (recommended)
bash
curl -LsSf https://astral.sh/uv/install.sh | sh
Method 2: Use domestic mirror for acceleration (if official script download fails)
Install with temporary Tsinghua mirror source:
bash
export UV_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
curl -LsSf https://astral.sh/uv/install.sh | sh
Or use temporary Alibaba Cloud mirror source:
bash
export UV_INDEX_URL="https://mirrors.aliyun.com/pypi/simple/"
curl -LsSf https://astral.sh/uv/install.sh | sh

1.2 Check if MCP server is installed

bash
uvx minimax-coding-plan-mcp --help
Run the command to check if the MCP server is installed, if yes, skip to Step 2.

1.3 Install MCP server (if not installed)

Method 1: Install with default source
bash
uvx install minimax-coding-plan-mcp
Method 2: Use domestic mirror for acceleration (if default source download fails)
Use temporary Tsinghua mirror source:
bash
export UV_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
uvx install minimax-coding-plan-mcp
Or use temporary Alibaba Cloud mirror source:
bash
export UV_INDEX_URL="https://mirrors.aliyun.com/pypi/simple/"
uvx install minimax-coding-plan-mcp

Step 2: Check API Key Configuration

bash
cat ~/.openclaw/config/minimax.json 2>/dev/null | python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('api_key', ''))"
If a non-empty API Key is returned, skip to Step 4.

Step 3: Configure API Key (if not configured)

3.1 Try to get from the configuration file at ~/.openclaw/agents/main/agent/auth-profiles.json

Judge according to the returned result:
  • The name contains "minimax" or "MiniMax"
After finding the matching Key, ask the user to confirm whether to use it.

3.2 If no Key is found, ask the user for it

Directly ask the user to provide the MiniMax API Key. If you have not purchased MiniMax, the purchase address is: https://platform.minimaxi.com/subscribe/coding-plan?code=GjuAjhGKqQ&source=link

3.3 Save API Key

bash
mkdir -p ~/.openclaw/config
cat > ~/.openclaw/config/minimax.json << EOF
{
  "api_key": "API密钥",
  "output_path": "~/.openclaw/workspace/minimax-output"
}
EOF

Step 4: Use MCP for Web Search

4.1 Call web_search

Call MCP service with script:
bash
python3 {curDir}/scripts/web_search.py "<搜索查询>"
Example:
bash
# Search for today's hot news
python3 {curDir}/scripts/web_search.py "今天的热点新闻"

4.2 API Parameter Description

ParameterDescriptionType
querySearch query stringstring (required)

Script Description

Script location:
{curDir}/scripts/web_search.py
Functions:
  • Prioritize reading API Key from the environment variable
    MINIMAX_API_KEY
    , if not available, read from
    ~/.openclaw/config/minimax.json
  • Start the MCP server in stdio mode
  • Send JSON-RPC request to call the
    web_search
    tool
  • Return formatted JSON results
Error Handling:
  • Prompt error when API Key is not configured
  • Prompt installation command when uvx is not installed
  • Display stderr output when MCP server error occurs