MCP Server Studio

GLM MCP MCP server

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

Registry name: io.github.djerok/glm-mcp

Publisher
djerok
Runs
Runs locally
Package
npm
Version
1.3.0
Category
AI & agents
Updated
2026-07-15

Source code on GitHub

Set up GLM MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

Run in your terminal:

claude mcp add glm-mcp -e GLM_API_KEY='<GLM_API_KEY>' -- npx -y [email protected]

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "glm-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "GLM_API_KEY": "<GLM_API_KEY>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

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

Settings

NameRequiredWhat it is
GLM_API_KEYYesZ.ai / Zhipu GLM Coding Plan API key. Required for GLM calls; the server boots and answers MCP introspection without it.

More ai & agents MCP servers