# GLM MCP (npm · glm-mcp)

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

- Trust score: 61/100 (medium)
- Change this week: +18
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `glm-mcp`: 61/100 (this document), [markdown](https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp.md), [page](https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp)

## Channel facts

- Registry: `npm`
- Package: `glm-mcp`
- Version: `1.3.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 20 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 54/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 675 tokens (~225/item across 3 items; 3 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### Claude

```bash
claude mcp add djerok-glm-mcp -- npx -y glm-mcp
```

### Codex

```bash
codex mcp add djerok-glm-mcp -- npx -y glm-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "djerok-glm-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "glm-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add djerok-glm-mcp --command npx --arg -y --arg glm-mcp
```

### Hermes

```yaml
mcp_servers:
  djerok-glm-mcp:
    command: "npx"
    args: ["-y", "glm-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "djerok-glm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "glm-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 61, +37)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] Capabilities: pass → unverified
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional] Licence: MIT

### 2026-08-01 (score 24, +5)

- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] MCP protocol: unverified → pass

### 2026-07-31 (score 19, −24)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-27 (score 43)

First indexed and scored.

## MCP tools (3)

### `glm_agent` (~330 tokens)

Run GLM as a file-accessing agent

Run GLM as a real coding agent with its OWN file tools (read/write/edit/list/bash); it works your repo end-to-end on GLM tokens (~10x cheaper than Opus). Prefer this over doing repo work yourself; it also handles text-only subtasks (give it a task with no file edits). Pass task + absolute workdir. Returns a concise summary+stats (use dry_run to preview a diff first). Not for sensitive, huge-context, or heavy dependent-tool-loop work.

Input parameters:

- `context` (string): Optional extra context/constraints (GLM can also read files itself).
- `dry_run` (boolean): If true, GLM proposes a diff and writes nothing (preview before applying). Default false.
- `format` (string): concise (default: summary+stats+changed files) or detailed (adds full diff). dry_run always shows the diff.
- `max_tokens`: 'auto' (default): uncapped/generous per turn — you (the orchestrating agent) decide. Pass a number (256–131072) to cap each turn. (GLM_CAP=on enforces a hard limit regardless.)
- `model` (string): Model id or 'auto' (default, peak-aware).
- `task` (string, required): The coding task for GLM to carry out end-to-end in the repo.
- `thinking` (boolean): Enable GLM reasoning mode for harder tasks. Default false.
- `workdir` (string): Absolute path to the project root GLM should operate in. Defaults to the server's cwd; always pass it explicitly.

### `glm_recommend` (~306 tokens)

Recommend GLM vs Opus for a task

Free local advisory (no GLM call): given a task profile, returns GLM-vs-Opus, model, confidence, and reasons. Call when unsure which engine to use.

Input parameters:

- `chinese` (boolean): True if Chinese or Chinese-English bilingual (GLM strength, +1).
- `complexity` (string): Default 'medium'.
- `input_tokens` (integer): Approx context size needed. >128K forces Opus (GLM degrades past ~100K).
- `latency_sensitive` (boolean): True if a tight interactive loop (forces Opus).
- `long_horizon` (boolean): True if many sequential steps / multi-hour autonomy.
- `needs_parallel` (boolean): True if it needs several concurrent agents (forces Opus).
- `sensitive` (boolean): True if proprietary/security-critical (forces Opus).
- `steps` (integer): Approx number of dependent sequential steps. >20 forces Opus (goal drift).
- `task_type` (string): Closest task category. Default 'general'.
- `tool_pattern` (string): Tool-use shape: single one-shot call / short independent fanout (GLM-ok) vs heavy dependent agentic loop (forces Opus).
- `unfamiliar_api` (boolean): True if it uses a niche/post-cutoff/internal API GLM can't know (-2; paste docs or use Opus).
- `vision` (boolean): True if input includes images/screenshots/GUI/computer-use (forces Opus).

### `glm_status` (~39 tokens)

GLM status & config

Free local status: peak window, active model, GLM usage ledger (proof of GLM tokens spent), and config health. No GLM call.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp#diagnostics

## Score history

- 2026-08-03: 61
- 2026-08-02: 61
- 2026-08-01: 24
- 2026-07-31: 19
- 2026-07-30: 43
- 2026-07-28: 43
- 2026-07-27: 43

## Links

- npm package: https://www.npmjs.com/package/glm-mcp
- Socket report: https://socket.dev/npm/package/glm-mcp
- Repository: https://github.com/djerok/glm-mcp
- Changelog RSS feed: https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/djerok-glm-mcp/glm-mcp
