About GLM MCP
GLM (Zhipu/Z.ai) as a ~10x cheaper file-editing subagent for AI coding agents
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y glm-mcpGLM_API_KEYSecretZ.ai / Zhipu GLM Coding Plan API key. Required for GLM calls; the server boots and answers MCP introspection without it.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
3Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| task | string | Yes | The coding task for GLM to carry out end-to-end in the repo. |
| model | string | No | Model id or 'auto' (default, peak-aware). |
| format | enum | No | concise (default: summary+stats+changed files) or detailed (adds full diff). dry_run always shows the diff.concise | detailed |
| context | string | No | Optional extra context/constraints (GLM can also read files itself). |
| dry_run | boolean | No | If true, GLM proposes a diff and writes nothing (preview before applying). Default false. |
| workdir | string | No | Absolute path to the project root GLM should operate in. Defaults to the server's cwd; always pass it explicitly. |
| thinking | boolean | No | Enable GLM reasoning mode for harder tasks. Default false. |
| max_tokens | any | No | 'auto' (default): uncapped/generous per turn — you (the orchestrating agent) decide. Pass a number (256–131072) to cap each turn. (GLM_CAP=on enforces a hard limit regardless.) |
Details
The maintainer has not added details yet. Check the README in the repository.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.