djerok/glm-mcp
5 stars · Last commit 2026-07-15
GLM (Zhipu/Z.ai) as a cheap, full-capability subagent for the Claude Code app — works on a subscription Claude (no API key for the main agent), auto-routes between Opus and GLM, file-editing agent with diff/dry-run/git-revert, one-command npx install.
README preview
# glm-mcp — GLM as a cheap delegate for your AI coding agent **GLM** (Zhipu / Z.ai) as a **~10x cheaper** delegate for your AI coding agent. Your expensive main model — **Claude Opus**, **Copilot's** default, or **Codex** — orchestrates and reviews; **GLM** does the actual work, billed on cheap GLM tokens. GLM exposes an Anthropic-compatible `/v1/messages` endpoint, so it drops into anything that already speaks Anthropic. This repo wraps it as an **MCP server** with four tools, plus one-command installers for **Claude Code**, **GitHub Copilot**, and **Codex**. The same server powers every edition. <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> <a href="codex/"><img src="https://img.shields.io/badge/Codex-glm--mcp--codex-10a37f?style=for-the-badge&logo=openai&logoColor=white" alt="Codex edition"></a> </p> <p align="center"> <a href="https://www.npmjs.com/package/glm-mcp"><img src="https://img.shields.io/npm/v/glm-mcp?label=glm-mcp&color=cb3837&logo=npm" alt="glm-mcp"></a> <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>