Zhipu Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Zhipu Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
基于 智谱AI Web Search API 实现的 MCP (Model Context Protocol) 服务器,为大模型提供网络搜索能力。
使用 Streamable HTTP 协议传输
cd zhipu_mcp
uv synccd zhipu_mcp
pip install -e .前往 智谱AI开放平台 获取 API Key。
export ZHIPU_API_KEY="your-api-key-here"# 使用默认配置启动 (127.0.0.1:8000/mcp)
uv run zhipu-websearch-mcp
# 或指定参数
uv run zhipu-websearch-mcp --host 0.0.0.0 --port 9000 --path /api/mcp| 参数 | 默认值 | 说明 |
|---|---|---|
--host | 127.0.0.1 | 监听地址 |
--port | 8000 | 监听端口 |
--path | /mcp | MCP端点路径 |
编辑 Claude Desktop 配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json添加以下配置(使用 Streamable HTTP URL):
{
"mcpServers": {
"zhipu": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}注意:需要先启动 MCP 服务器,再启动 Claude Desktop。
在 Cursor 的 MCP 设置中添加:
{
"zhipu": {
"url": "http://127.0.0.1:8000/mcp"
}
}使用智谱AI网络搜索引擎搜索互联网内容。
#### 参数
| 参数 | 类型 | 必需 | 默认值 | 说明 |
|---|---|---|---|---|
query | string | ✅ | - | 搜索查询内容,建议不超过70个字符 |
search_engine | string | ❌ | search_std | 搜索引擎类型 |
search_intent | boolean | ❌ | false | 是否进行搜索意图识别 |
count | integer | ❌ | 10 | 返回结果条数,范围1-50 |
search_domain_filter | string | ❌ | - | 白名单域名过滤 |
search_recency_filter | string | ❌ | noLimit | 时间范围过滤 |
content_size | string | ❌ | medium | 内容详细程度 |
#### 搜索引擎类型
| 值 | 说明 |
|---|---|
search_std | 智谱基础版搜索引擎 |
search_pro | 智谱高阶版搜索引擎 |
search_pro_sogou | 搜狗搜索 |
search_pro_quark | 夸克搜索 |
#### 时间范围过滤
| 值 | 说明 |
|---|---|
oneDay | 一天内 |
oneWeek | 一周内 |
oneMonth | 一个月内 |
oneYear | 一年内 |
noLimit | 不限(默认) |
#### 内容详细程度
| 值 | 说明 |
|---|---|
medium | 返回摘要信息,满足常规问答需求 |
high | 最大化上下文,信息量大,适合需要细节的场景 |
在 Claude 或 Cursor 中,你可以这样使用:
请搜索最近一周关于"人工智能"的新闻MCP 将自动调用 web_search 工具,返回结构化的搜索结果。
# 设置环境变量
export ZHIPU_API_KEY="your-api-key-here"
# 构建并启动
docker-compose up -d
# 查看日志
docker-compose logs -f8000ZHIPU_API_KEY: 你的智谱 AI API 密钥http://your-domain:8000/mcp#### Dokploy 环境变量配置
| 变量名 | 必需 | 说明 |
|---|---|---|
ZHIPU_API_KEY | ✅ | 智谱AI API密钥 |
# 构建镜像
docker build -t zhipu-mcp .
# 运行容器
docker run -d \
--name zhipu-mcp \
-p 8000:8000 \
-e ZHIPU_API_KEY="your-api-key-here" \
zhipu-mcpuv run python -c "from zhipu_mcp.server import mcp; print('Import successful')"可以使用 MCP Inspector 进行调试:
npx @anthropic-ai/mcp-inspector然后在 Inspector 中连接到 http://127.0.0.1:8000/mcp。
MIT License
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.