Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"pi-zai-mcp": {
"args": [
"-y",
"export"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Give pi agents Z.ai-powered web search, URL reading, repository reading, and vision tools through MCP without leaving a pi session. This is an unofficial community package, not an official Z.ai package.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'export' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked export against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search
Web and local search using Brave Search API
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP Security Weekly
Get CVE alerts and security updates for Pi Zai Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Give pi agents Z.ai-powered web search, URL reading, repository reading, and vision tools through MCP without leaving a pi session. This is an unofficial community package, not an official Z.ai package.
This package focuses on Z.AI MCP servers. GLM-5.2 model access is already covered by pi's built-in zai provider (ZAI_API_KEY) and the OpenAI-compatible Z.AI API; this package adds the external MCP context/tools that Z.AI documents for coding agents.
pi-zai-mcp registers up to four curated pi tools, one per Z.AI MCP server. Each server has its own package extension file, so pi config can enable or disable them independently:
z_ai_search — search the live web with Z.AI Web Search MCP.z_ai_reader — read URLs and convert pages to model-friendly Markdown/text with Z.AI Web Reader MCP.z_ai_zread — inspect public GitHub repositories through Zread search, file reading, and directory-structure actions.z_ai_vision — analyze images and videos through Z.AI vision actions for UI screenshots, OCR, error screenshots, diagrams, charts, UI diffs, general image understanding, and video understanding.Z.AI also documents Slide/Poster, Translation, and Video Effect Template agents as API agents, not MCP servers. They are not registered as MCP tools by this package unless Z.AI publishes MCP endpoints for them.
Reviewed Z.AI docs on 2026-06-05:
web_search_prime.webReader.search_doc, read_file, and get_repo_structure for public GitHub repository search, file reading, and structure inspection.@z_ai/mcp-server@0.1.4) exposes the image/video actions as analyze_image and analyze_video.The pi-facing API is intentionally smaller than the upstream MCP tool list. Upstream MCP names are implementation details; agents see four stable tools with clear arguments.
Install from npm:
pi install npm:pi-zai-mcp
Install from GitHub:
pi install https://github.com/fitchmultz/pi-zai-mcp
Compatibility note: this release is tested against pi 0.80.2, which is the suggested minimum baseline for this package version. Pi-bundled runtime packages are declared as optional wildcard peers, so npm peer ranges do not hard-block users from trying newer pi releases; runtime behavior is only verified against the tested baseline until a follow-up package release confirms it.
Try it without installing permanently:
export Z_AI_API_KEY="your_z_ai_api_key"
pi -e npm:pi-zai-mcp
Run from a local clone:
git clone https://github.com/fitchmultz/pi-zai-mcp.git
cd pi-zai-mcp
npm install
export Z_AI_API_KEY="your_z_ai_api_key"
pi -e .
| Variable | Required | Default | Purpose |
|---|---|---|---|
Z_AI_API_KEY / ZAI_API_KEY | Yes* | none | Z.ai API key used for HTTP MCP Bearer auth and the vision stdio server. Env vars take precedence over pi's stored zai provider key. |
Z_AI_MCP_SERVERS | No | all | Optional env-var allowlist for direct/legacy loading. Prefer pi config for normal package installs; each server is now a separate extension resource. |
Z_AI_MCP_TIMEOUT_MS | No | 180000 | Per-connection/tool-call timeout in milliseconds; visio |