← 返回
未分类 Key 中文

GLM MCP Server Use

GLM 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 AP...
用于OpenClaw 的 GLM MCP 服务器。配置并使用 4 个官方 Z.AI/GLM MCP 服务器(视觉、网页搜索、网页阅读器、zread),通过环境变量 AP...
conanwhf conanwhf 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 376
下载
💾 1
安装
1
版本
#glm#glm-mcp-server-use#latest#mcp#openclaw#vision#web-reader#web-search#z-ai#zread

概述

GLM MCP Server Use

Overview

This skill provides a practical workflow to install, validate, and use the 4 official GLM MCP servers in OpenClaw:

  1. Vision MCP (local stdio via @z_ai/mcp-server)
  2. Web Search MCP (remote HTTP)
  3. Web Reader MCP (remote HTTP)
  4. Zread MCP (remote HTTP)

It also includes scripts to read API key from environment variables, generate mcporter config, and run a smoke test.

Quick Start

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.

API Key Resolution

setup_glm_mcp_servers.py resolves API key from environment variables in this order:

  1. Z_AI_API_KEY
  2. ZAI_API_KEY
  3. GLM_API_KEY
  4. ZHIPU_API_KEY

You can check key availability without exposing full token:

python3 scripts/get_zai_api_key.py --masked

Installed MCP Entries

The setup script writes these mcporter servers:

  • web-search-primehttps://api.z.ai/api/mcp/web_search_prime/mcp
  • web-readerhttps://api.z.ai/api/mcp/web_reader/mcp
  • zreadhttps://api.z.ai/api/mcp/zread/mcp
  • zai-vision → stdio npx -y @z_ai/mcp-server (with Z_AI_API_KEY, Z_AI_MODE=ZAI)

Validation Workflow

1) Inspect real schemas first

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

2) Minimal call examples

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"

Important Runtime Notes

  • Actual tool names can differ from docs examples. Always trust --schema output from live server.
  • Search tool currently exposes web_search_prime and requires search_query.
  • Zread calls require repo_name (not repo).
  • Web Reader may return anti-bot or verification content for protected pages (for example some WeChat links).

Troubleshooting

  • Tool not found: check exact tool name from mcporter ... --schema --json.
  • parameter error: verify argument names match schema exactly.
  • Empty/strange reader content: target page may block scraping or require interactive verification.
  • Vision local server issues: verify Node.js >= 22 and rerun with latest @z_ai/mcp-server.

Resources

  • Server matrix and endpoint notes: references/official-endpoints.md
  • Tested behavior record: references/test-report.md
  • Scripts: scripts/

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-03 10:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Azure Speech Tts

conanwhf
AzureSpeech TTS 技能,用于将文本或 SSML 生成本地音频文件,适用于用户请求使用 Azure Speech / Azure TTS / Microsoft Speech 时。
★ 0 📥 536
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 844 📥 325,448
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,494 📥 558,383