LocalFree server, account needed

GLM MCP server

djerok/glm-mcp

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.

8 GitHub stars1 forks2,943 npm downloads / month

Install GLM in Claude Code

Claude Code
claude mcp add glm -e GLM_API_KEY=... -- npx -y glm-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "glm": {
      "command": "npx",
      "args": [
        "-y",
        "glm-mcp"
      ],
      "env": {
        "GLM_API_KEY": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the GLM MCP server do?

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.

Is the GLM MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does GLM run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add GLM to Claude Code?

Run: claude mcp add glm -e GLM_API_KEY=... -- npx -y glm-mcp

More ai agents & coding agents MCP servers

View all