| name | zai-web-search |
| description | Search the web for real-time information using Z.AI Web Search Prime. Use when the user needs current information not in your training data — latest news, recent events, current prices, live data (weather, stocks), or up-to-date documentation. Run scripts/search.py via Bash. |
| compatibility | Requires Python 3 and Z_AI_API_KEY environment variable. |
| metadata | {"author":"z-ai","version":"1.0","api-docs":"https://docs.bigmodel.cn/cn/coding-plan/mcp/search-mcp-server"} |
Z.AI Web Search Skill
Search the web by running scripts/search.py with Bash. No MCP configuration needed — set Z_AI_API_KEY and call the script directly.
Prerequisites
export Z_AI_API_KEY=your_api_key
Usage
python3 scripts/search.py "<query>"
Returns structured results including title, URL, summary, and source name.
Examples
python3 scripts/search.py "latest AI news 2025"
python3 scripts/search.py "React 19 release notes"
python3 scripts/search.py "Python asyncio best practices"
python3 scripts/search.py "Bitcoin price today"
When to Use
- User asks about recent events (after training cutoff)
- User needs real-time data: prices, weather, scores, rates
- User asks about current software versions or changelogs
- User says "search the web" or "look it up online"
- Information changes frequently (docs, prices, availability)
Do NOT use when the answer is stable knowledge already in training data.
Instructions for the Agent
- Formulate a specific search query from the user's request.
- Run
python3 scripts/search.py "<query>" via Bash.
- Review the results and select the most relevant sources.
- Summarize the findings and cite the source URLs.