mcpbeat Sign in

Zn Gate MCP Server

local only

Zn Gate runs on your own machine — the client starts it, so there is no endpoint to ping. 1 065 installs a week from npm. Last commit 29 Nov 2026.

The local security layer for coding agents. No account, and nothing is sent by default.

Installs per day peak 148 · avg 18 · -12% w/w
a month agotoday
1 065
Installs / week
npm · zn-gate
5
Stars
3 open issues
29 Nov 2026
Last commit
34 releases in 90 days
MIT
License
JavaScript

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add zn-gate -- npx -y zn-gate mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate",
        "mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.zn-gate]
command = "npx"
args = ["-y", "zn-gate", "mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate",
        "mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "zn-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "zn-gate",
        "mcp"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: ZN_LOCAL_ONLY (Set to true to force local-only mode, even if ZN_CLOUD=1), ZN_CLOUD (Set to 1 to let prompt analysis also query the optional cloud classifier. Off by default), ZN_API_KEY (API key for the optional cloud check. Has no effect without ZN_CLOUD=1).

What the code does

We read the source, 2 d ago · rules 995398eba69f

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a file or shell call secrets_render_file.template → packages/zn-gate/lib/broker/mcp.js:477, secrets_render_file.template → packages/zn-gate/lib/broker/mcp.js:425, secrets_list.url → packages/zn-gate/lib/broker/mcp.js:409 и ещё 16
      fs.writeFileSync(opened.fd, text);
Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

const DISK_TOOLS = /^(?:mkfs(?:\.[a-z0-9]+)?|mke2fs|mkswap|wipefs|shred|blkdiscard)$/;
Reads secrets and sends them out [пакет] lib/audit/patterns.js:429
  /\b(?:send|upload|post|exfiltrate|forward|transmit|leak|e-?mail)\b[^\n]{0,120}?(?:\.env\b|~\/\.ssh|id_rsa|id_ed25519|\.aws\/credentials|\.npmrc|\.netrc|\.git-credentials|api[ _-]?keys?|access[ _-]?tokens?|secrets?|credentials?|passwords?|private[ _-]?keys?|environment variables…
Hides code and sends data out [пакет] lib/audit/patterns.js:429
… _-]?keys?|environment variables)\b[^\n]{0,120}?(?:https?:\/\/|webhook|pastebin|discord(?:app)?\.com|gist\.github|ngrok|requestbin|attacker)/i,
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs a command on install [пакет] package.json:1
postinstall: node lib/agents/refresh.js
  /\b(?:curl|wget|http|iwr|invoke-webrequest|invoke-restmethod)\b[^\n|]{0,200}?(?:-d|--data(?:-binary|-raw|-urlencode)?|-F|--form|-T|--upload-file|--post-file|-InFile|-Body)[\s=]{1,3}["']?@?[^\s"']{0,40}?(?:\.env\b|\.ssh\/|id_rsa|id_ed25519|\.aws\/credentials|\.npmrc|\.netrc|\.git-credentials)/i,
    marker = needed.find((f) => fs.existsSync(path.join(parentDir, f))) || null;
  for (const file of [path.join(home, '.npmrc'), dir ? path.join(dir, '.npmrc') : null]) {
… _-]?keys?|environment variables)\b[^\n]{0,120}?(?:https?:\/\/|webhook|pastebin|discord(?:app)?\.com|gist\.github|ngrok|requestbin|attacker)/i,
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

Executes code built at runtime plugins/tools/test-build-plugin-repo.js:211
        const evalStmt = (pre) => new Function(pre + 'const CHANGED_RC = 86;\n' + stmt + 'return VERIFY_JS;')();

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

Three servers free · no card

Alternatives to Zn Gate

same job, measured the same way
Caelo
by arthi-arumugam-git

Caelo: free local security scanner for AI-built products. CLI and MCP server by Irth Labs.

1 675 installs/wk local only
Agent Verify
by ai-blockchain-ventures

Security checks for AI agents and MCP configs: 124 tested checks, from your AI coding assistant.

851 installs/wk local only
Lintsure
by lintsure

Keeps AI coding agents on track: checks the code they write for security and privacy problems.

821 installs/wk local only
arcanum-mcp
by a9320

Five deterministic security tools for AI coding over MCP. Local: no model calls or network.

716 installs/wk local only
Penthera
by danoszz

Offline, rule-based security checks for your repo, dependencies, AI agent config and local app.

625 installs/wk local only
Owlwarden
by suthat

Read-only, offline security checks for Node web apps and coding-agent configuration.

544 installs/wk local only
Swarm
by skaleagents

IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.

464 installs/wk answering
XWatch
by xtarwall

Free local security checks for coding agents: scans git changes, alerts only on proven findings.

317 installs/wk local only

Zn Gate — questions

Answers built from our own checks of this server.

Why is there no uptime for Zn Gate?
Zn Gate runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package zn-gate was installed 1 065 times last week.
How do I connect Zn Gate?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls zn-gate straight from npm; nothing to host, nothing to sign up for.
How many people use Zn Gate?
The npm package zn-gate was installed 1 065 times in the last week. Week over week that is -12%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Zn Gate open source?
Yes — it is published under the MIT licence, written in JavaScript, 5 stars on GitHub and 3 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.