GLM MCP Server
by djerokio.github.djerok/glm-mcpv1.3.0
Run GLM (Zhipu/Z.ai) as a sub-agent in Claude Code or GitHub Copilot with its own read/write/edit/run loop, Opus-vs-GLM routing and diff/dry-run oversight.
context tax
queued
security
queued
cold start
queued
freshness
Maintained3mo ago
Install GLM MCP server
Install in Claude Code
claude mcp add glm-djerok -e GLM_API_KEY='<glm-api-key>' -- npx -y glm-mcpInstall in Cursor
{
"mcpServers": {
"glm-djerok": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<glm-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"glm-djerok": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<glm-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"glm-djerok": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<glm-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"glm-djerok": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<glm-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GLM_API_KEY | yes | yes | Z.ai / Zhipu GLM Coding Plan API key. Required for GLM calls; the server boots and answers MCP introspection without it. |
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-15 · 3mo ago · GitHub
Latest release
2026-07-02 · 3mo ago · GitHub · copilot-v1.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-15 · 3mo ago · official registry · v1.3.0
FAQ
›How do I install the GLM MCP server in Claude Code?
Run: claude mcp add glm-djerok -e GLM_API_KEY='<glm-api-key>' -- npx -y glm-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does GLM require an API key?
Yes. It expects GLM_API_KEY, of which 1 is a secret.
›Can I use GLM as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is GLM in the official MCP registry?
Yes, as io.github.djerok/glm-mcp.
Alternatives to GLM
Other version control MCP servers.