GLM Subagent MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GLM Subagent MCPAsk glm to review and fix the bug in server.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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:
Pick your editor
๐ Claude Code โ | โซ GitHub Copilot (VS Code) โ | |
npm package |
|
|
Install |
|
|
Integration | MCP server + full-tool | MCP server in agent mode + |
Tools |
| same |
Docs |
Both editions now share the same primitives โ MCP tools + a
GLMsubagent + 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 standaloneglm-codefull-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 +
~/.claudeagent/hook) โ works in every project.GitHub Copilot โ add
--globalto configure every workspace at once (writes VS Code's usermcp.json+settings.json); omit it to set up just the current project:npx glm-mcp-copilot --global --key YOUR_ZAI_KEY
Related MCP server: Ollama MCP Server
What it does (both editions)
Offloads well-specified coding work to GLM โ
glm_agentlets 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/djerok/glm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server