Sponsored by Deepsite.site

智谱 Web Search MCP 工具(STDIO)

Created By
zgccrui6 months ago
一个通过智谱 AI 开放平台(BigModel)的 Web Search API 提供网页搜索能力的命令行工具,并符合 Model-Code-Protocol (MCP) 规范。可以通过标准输入/输出(STDIO)与客户端通信
Content

智谱 Web Search MCP 工具

npm version

一个通过智谱 AI 开放平台(BigModel)的 Web Search API 提供网页搜索能力的命令行工具,并符合 Model-Code-Protocol (MCP) 规范。

这允许任何支持 MCP 的客户端(例如 AI 智能体)调用此工具来获得网页搜索的能力。

✨ 功能

  • 调用智谱搜索 API:将参数转换并调用智谱 Web Search API。
  • 结果格式化:将返回的 JSON 结果格式化为对人类或模型易读的文本格式。
  • MCP 服务:作为一个 MCP 服务器运行,可以通过标准输入/输出(STDIO)与客户端通信。

📦 安装与使用

⚙️ 配置

在使用前,你需要一个智谱 AI 的 API Key。你可以在 智谱 AI 开放平台 上获取。

与 MCP 客户端集成

对于支持 MCP 的客户端可使用 npx 直接运行,无需全局安装。客户端会根据需要自动拉取并执行包。

  1. 找到你客户端的 mcp.json 配置文件(对于 Cursor,通常是 ~/.cursor/mcp.json)。

  2. 在该文件的 mcpServers 对象中,添加以下条目:

    {
      "mcpServers": {
        "zhipu-web-search": {
          "command": "npx",
          "args": [
            "cc-zhipu-web-search"
          ],
          "env": {
            "BIGMODEL_API_KEY": "YOUR_BIGMODEL_API_KEY"
          }
        }
      }
    }
    

    如果你已经有其他服务器,只需在 mcpServers 中添加 "zhipu-web-search": { ... } 即可。

🛠️ 作为 MCP 工具使用

本工具提供了一个名为 web-search 的工具,可供 MCP 客户端调用。

工具描述: 使用智谱 Web Search API 进行网页检索

参数:

参数名类型描述默认值
querystring搜索关键词,≤70字符必需
search_engineenum要调用的搜索引擎编码。search_std
countnumber返回条数 1~5010
search_domain_filterstring限定搜索结果的域名 (例如 'www.example.com')(可选)
search_recency_filterenum搜索指定时间范围内的网页。noLimit
content_sizeenum控制网页摘要的字数。medium

Server Config

{
  "mcpServers": {
    "zhipu-web-search": {
      "command": "npx",
      "args": [
        "cc-zhipu-web-search"
      ],
      "env": {
        "BIGMODEL_API_KEY": "<YOUR_BIGMODEL_API_KEY>"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors