GLM Subagent MCP

GLM Subagent MCP

Enables Claude Code to use GLM (Zhipu) as a cheap, full-capability subagent for file editing, code generation, and bash commands, with automatic routing between Opus and GLM based on task complexity.

Category
Visit Server

README

glm-mcp — run GLM as a cheap delegate for your AI coding agent

Use the GLM model (Zhipu / Z.ai) as a ~10× cheaper delegate inside your AI coding tool. Two editions, the same GLM MCP server underneath — pick your editor:

<p align="center"> <a href="claude/"><img src="https://img.shields.io/badge/▶_Claude_Code-glm--mcp--claude-d97757?style=for-the-badge&logo=anthropic&logoColor=white" alt="Claude Code edition"></a>    <a href="copilot/"><img src="https://img.shields.io/badge/▶_GitHub_Copilot-glm--mcp--copilot-24292e?style=for-the-badge&logo=githubcopilot&logoColor=white" alt="GitHub Copilot edition"></a> </p>

<p align="center"> <a href="https://www.npmjs.com/package/glm-mcp-claude"><img src="https://img.shields.io/npm/v/glm-mcp-claude?label=glm-mcp-claude&color=cb3837&logo=npm" alt="glm-mcp-claude"></a> <a href="https://www.npmjs.com/package/glm-mcp-copilot"><img src="https://img.shields.io/npm/v/glm-mcp-copilot?label=glm-mcp-copilot&color=cb3837&logo=npm" alt="glm-mcp-copilot"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT"></a> </p>

Pick your editor

🟠 Claude Codeclaude/ GitHub Copilot (VS Code)copilot/
npm package glm-mcp-claude glm-mcp-copilot
Install npx glm-mcp-claude --key YOUR_ZAI_KEY npx glm-mcp-copilot --key YOUR_ZAI_KEY
Integration MCP server + full-tool glm subagent + auto-delegation hook + glm-code full-GLM launcher MCP server in agent mode + GLM custom agent (subagent) + PreToolUse auto-routing hook + .instructions.md delegation policy
Tools glm_agent · glm_delegate · glm_recommend · glm_status same
Docs claude/README.md copilot/README.md

Both editions now share the same primitives — MCP tools + a GLM subagent + a PreToolUse auto-routing hook. (Copilot's hook fires on all tool calls and filters internally, since VS Code ignores hook matchers; only Claude's standalone glm-code full-GLM launcher has no Copilot analog.) Everything downstream (GLM agent loop, peak-aware routing, cost bias, token cap, usage ledger, dry-run oversight) is the same server, so behavior is identical once a tool runs.

Global vs per-project

  • Claude Code installs globally by default (user-scoped MCP server + ~/.claude agent/hook) — works in every project.
  • GitHub Copilot — add --global to configure every workspace at once (writes VS Code's user mcp.json + settings.json); omit it to set up just the current project:
    npx glm-mcp-copilot --global --key YOUR_ZAI_KEY
    

What it does (both editions)

  • Offloads well-specified coding work to GLM — glm_agent lets GLM read/write/edit/run your repo directly, on GLM tokens (~10× cheaper). Your main model orchestrates + verifies.
  • Peak-aware model picks, a cost bias that keeps GLM the default, a token cap toggle, a usage ledger (proof of GLM tokens), and dry-run oversight (preview a diff before applying).

Requirements

  • A Z.ai / Zhipu GLM Coding Plan API key — https://z.ai (the only paid key needed).
  • Node.js ≥ 18, plus the editor (Claude Code app, or VS Code + Copilot with agent mode).

License

MIT © djerok · Canonical repo: https://github.com/djerok/glm-mcp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured