ZAI

Provides web search, content extraction, and AI-powered summarization using GLM-4.7-Flash through MCP workflows.
  • typescript

0

GitHub Stars

typescript

Language

2 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "groxaxo-zai-mcp-server": {
      "command": "python3",
      "args": [
        "src/server.py"
      ],
      "env": {
        "ZAI_API_KEY": "YOUR_ZAI_API_KEY"
      }
    }
  }
}

You run the ZAI MCP Server to search the web, fetch content from sites, and generate AI-powered summaries using the GLM-4.7-Flash model. This server lets you perform web searches, extract and clean text from pages, and produce concise summaries for quick insights, all orchestrated through the MCP interface.

How to use

You can use this MCP server with any MCP client to perform three core actions: search the web, fetch and summarize content from a given URL, or search and summarize the top result for a query. You can chain these actions into workflows to obtain a relevant summary and a direct link to the source.

How to install

Prerequisites you need before installation:

  • Python 3.8 or higher
  • A ZAI API key
  • pip package manager

Step by step installation and setup:

# Clone the repository
git clone https://github.com/yourusername/zai-mcp-server.git
cd zai-mcp-server

# Install dependencies
pip install -r requirements.txt

# Ensure the server script is executable
chmod +x src/server.py

Prepare your API key and start the server:

# Set your API key
export ZAI_API_KEY="your-zai-api-key"

# Run the server
python3 src/server.py

Configuration and usage notes

Environment variable you must provide: ZAI_API_KEY containing your ZAI API key.

API configuration used by the server includes the base URL, model, and generation parameters. These settings determine how the server talks to ZAI and how it generates summaries.

Testing

Test the server to verify it is running and exposes the available tools.

python examples/test_server.py

Troubleshooting

If the server does not start, verify you have Python 3.8+ installed, install dependencies, and ensure the API key is set correctly.

If you encounter issues with web search results or summarization, check your API key validity and availability of credits in your ZAI account.

Available tools

search_web

Search the web using DuckDuckGo and return a list of results with titles, URLs, and snippets.

fetch_and_summarize

Fetch the content of a URL, clean the text, and generate an AI-based summary along with the original page title.

search_and_summarize

Search the web, select the top result, and produce a concise summary with the source URL and title.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational