GL

GLM MCP Server

Published by djerok

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

CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
1.3.0
SOURCE CHECKED
Nov 27, 2026

Quick answers

How do I add GLM MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'GLM_API_KEY=<your-glm-api-key>' --transport stdio glm -- npx -y glm-mcp

Replace the <your-…> placeholder with your own GLM_API_KEY.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

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

Replace the <your-…> placeholder with your own GLM_API_KEY.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add glm --env 'GLM_API_KEY=<your-glm-api-key>' -- npx -y glm-mcp

Replace the <your-…> placeholder with your own GLM_API_KEY.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "glm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "glm-mcp"
      ],
      "env": {
        "GLM_API_KEY": "<your-glm-api-key>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own GLM_API_KEY.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

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

Replace the <your-…> placeholder with your own GLM_API_KEY.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use GLM MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does GLM MCP Server need an API key?

To run it on your computer, set GLM_API_KEY first, with values from the publisher.

Is GLM MCP Server official?

It's published by djerok. The Official MCP Registry accepts names under io.github.djerok only from the GitHub account or organisation djerok. We last checked its listing on Nov 27, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

npm · glm-mcp@1.3.0
View source repository