Install
openclaw skills install glm-mcp-server-useGLM MCP Server Use for OpenClaw. Configure and use the 4 official Z.AI / GLM MCP servers (vision, web search, web reader, zread) with environment-variable API-key auth. Use for endpoint wiring, schema inspection, smoke tests, and troubleshooting MCP calls.
openclaw skills install glm-mcp-server-useThis skill provides a practical workflow to install, validate, and use the 4 official GLM MCP servers in OpenClaw:
@z_ai/mcp-server)It also includes scripts to read API key from environment variables, generate mcporter config, and run a smoke test.
From this skill directory:
export Z_AI_API_KEY="your_zai_api_key"
python3 scripts/setup_glm_mcp_servers.py --config ./tmp/mcporter-glm.json
python3 scripts/smoke_test_glm_mcp.py --config ./tmp/mcporter-glm.json
Smoke test report will be written to ./tmp/glm-mcp-smoke-report.json.
setup_glm_mcp_servers.py resolves API key from environment variables in this order:
Z_AI_API_KEYZAI_API_KEYGLM_API_KEYZHIPU_API_KEY
You can check key availability without exposing full token:python3 scripts/get_zai_api_key.py --masked
The setup script writes these mcporter servers:
web-search-prime → https://api.z.ai/api/mcp/web_search_prime/mcpweb-reader → https://api.z.ai/api/mcp/web_reader/mcpzread → https://api.z.ai/api/mcp/zread/mcpzai-vision → stdio npx -y @z_ai/mcp-server (with Z_AI_API_KEY, Z_AI_MODE=ZAI)mcporter --config ./tmp/mcporter-glm.json list web-reader --schema --json
mcporter --config ./tmp/mcporter-glm.json list web-search-prime --schema --json
mcporter --config ./tmp/mcporter-glm.json list zread --schema --json
mcporter --config ./tmp/mcporter-glm.json list zai-vision --schema --json
mcporter --config ./tmp/mcporter-glm.json call web-search-prime.web_search_prime search_query="GLM-5.1 release notes"
mcporter --config ./tmp/mcporter-glm.json call web-reader.webReader url="https://example.com"
mcporter --config ./tmp/mcporter-glm.json call zread.get_repo_structure repo_name="microsoft/vscode"
mcporter --config ./tmp/mcporter-glm.json call zai-vision.analyze_image image_source="/path/to/image.png" prompt="Describe key elements"
--schema output from live server.web_search_prime and requires search_query.repo_name (not repo).Tool not found: check exact tool name from mcporter ... --schema --json.parameter error: verify argument names match schema exactly.@z_ai/mcp-server.references/official-endpoints.mdreferences/test-report.mdscripts/