npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@iflow-mcp/cc-zhipu-web-search

v1.0.0

Published

通过智谱 Web Search API 进行网页检索

Readme

智谱 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 进行网页检索

参数:

| 参数名 | 类型 | 描述 | 默认值 | | ----------------------- | -------- | ------------------------------------------- | ------------ | | query | string | 搜索关键词,≤70字符 | 必需 | | search_engine | enum | 要调用的搜索引擎编码。 | search_std | | count | number | 返回条数 1~50 | 10 | | search_domain_filter | string | 限定搜索结果的域名 (例如 'www.example.com') | (可选) | | search_recency_filter | enum | 搜索指定时间范围内的网页。 | noLimit | | content_size | enum | 控制网页摘要的字数。 | medium |