Skip to content
Gemini CLI

GLM MCP for Gemini CLI

io.github.djerok/glm-mcp

GLM (Zhipu/Z.ai) as a ~10x cheaper file-editing subagent for AI coding agents.

client:Gemini CLI transport:stdio runtime:npm

Install GLM MCP in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "glm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "glm-mcp"
      ],
      "env": {
        "GLM_API_KEY": "<GLM_API_KEY>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

GLM MCP in other clients