Skip to main content
Web Search MCP Server is a Z.AI search capability implementation based on the Model Context Protocol (MCP), providing powerful Z.AI search capabilities for MCP-compatible clients such as Claude Code and Cline, including web search, real-time information retrieval, and other features.

Product Overview

This Remote MCP Server with search capabilities is an exclusive server developed by Z.AI for GLM Coding Plan Pro or higher tiers users, empowering your Code Agent with search capabilities and unlimited access to real-time information and web resources.

Features

Web Search

Supports comprehensive web search to retrieve the latest web information and resources

Real-time Information

Retrieves real-time updated information including news, stock prices, weather, and more

Remote Service

HTTP protocol-based remote MCP service, no local installation required

Supported Tools

This server implements the Model Context Protocol and can be used with any MCP-compatible client. Currently provides the following tools:
  • webSearchPrime - Search web information, returning results including page titles, URLs, summaries, site names, site icons, and more.

Authentication Configuration

Getting API Key

Using Search MCP Server requires a valid api key. Please visit the corresponding platform to obtain:
  • Z.AI Platform (Z.AI)
Platform URL: https://z.ai/model-api
Get Token: Z.AI Console

Installation and Usage

Quick Start

1

Get API Key

Visit Z.AI Console to get your api key
2

Configure MCP Client

Choose the appropriate configuration method based on your client
3

Start Using

After configuration is complete, you can use search functionality in the client

Supported Clients

  • Claude Code
  • Cline (VS Code)
  • OpenCode
  • Crush
  • Goose
  • Roo Code, Kilo Code and Other MCP Clients
One-click Installation CommandBe sure to replace your_api_key with the API Key you obtained.
claude mcp add -s user -t http web-search-prime https://api.z.ai/api/mcp/web_search_prime/mcp --header "Authorization: Bearer your_api_key"
Manual ConfigurationEdit Claude Code’s configuration file .claude.json in the user directory, MCP section:
{
  "mcpServers": {
    "web-search-prime": {
      "type": "http",
      "url": "https://api.z.ai/api/mcp/web_search_prime/mcp",
      "headers": {
        "Authorization": "Bearer your_api_key"
      }
    }
  }
}

Usage Example

Through the previous step of installing the Search MCP server to the client, you can directly use MCP in your Coding client.
You can directly use search functionality in conversations:
  • “Help me search for the latest AI technology developments”
  • “Find best practices for Python asynchronous programming”

Troubleshooting

Issue: Receiving invalid api key errorSolutions:
  1. Confirm the api key is correctly copied
  2. Check if the api key is activated
  3. Confirm the api key has sufficient balance
  4. Check if the Authorization header format is correct
Issue: MCP server connection timeoutSolutions:
  1. Check network connection
  2. Confirm firewall settings
  3. Verify the server URL is correct
  4. Increase timeout settings
Issue: Search returns empty resultsSolutions:
  1. Try using different search keywords
  2. Check if the search query is too specific
  3. Confirm network connection is normal
  4. Contact technical support for assistance