Back to MCP directory
publicPublicdnsLocal runtime

zhipu-web-search-mcp

项目提供了两种服务启动方式(stdio协议和SSE协议)及对应的客户端配置方法

article

README

🚀 运行服务

本项目提供了两种启动服务端的方式,分别基于_stdio_协议和_SSE_协议,以下是详细的操作步骤。

🚀 快速开始

通过_stdio_协议启动服务

  1. 启动服务端 使用以下命令通过_stdio_协议启动服务端:
mcp dev web_search.py
  1. 配置客户端 客户端的配置信息如下,请将<你的项目路径>替换为实际的项目路径:
{
    "mcpServers": {
        "mcp-server": {
            "command": "uv",
            "args": [
                "--directory",
                "<你的项目路径>",
                "run",
                "main.py"
            ]
        }
    }
}

通过_SSE_协议启动服务

  1. 启动服务端 使用以下命令通过_SSE_协议启动服务端:
uv run main.py --host 0.0.0.0 --port 8020
  1. 运行客户端 启动服务端后,运行以下命令启动客户端:
uv run client.py http://127.0.0.1:8020/sse
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client