MCP server
GLM MCP
GLM (Zhipu/Z.ai) as a ~10x cheaper file-editing subagent for AI coding agents.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.3.0
- Listing updated
- 5 days ago
About GLM MCP
GLM MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add glm-mcp --env GLM_API_KEY='<GLM_API_KEY>' -- npx -y glm-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"glm-mcp": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<GLM_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"glm-mcp": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<GLM_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"glm-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<GLM_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"glm-mcp": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<GLM_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"glm-mcp": {
"command": "npx",
"args": [
"-y",
"glm-mcp"
],
"env": {
"GLM_API_KEY": "<GLM_API_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
GLM_API_KEYZ.ai / Zhipu GLM Coding Plan API key. Required for GLM calls; the server boots and answers MCP introspection without it.Required
Pricing
Open source
GLM MCP FAQ
Is GLM MCP free?
Yes. GLM MCP is open source, so you can use and self-host it for free.
How do I add GLM MCP to Claude Code?
Run this command in your terminal: claude mcp add glm-mcp --env GLM_API_KEY='<GLM_API_KEY>' -- npx -y glm-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.