Skip to content
MCP server

Zn Gate

Local security layer for coding agents: secret redaction, injection checks and MCP proxy

Runs locallyStatus and history
Install
Pricing
Freemium
Platforms
CLI, macOS, Linux
Runs
Locally
Version
1.15.0
Listing updated
3 days ago

About Zn Gate

Zn Gate is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.

zn-gate sits between a coding agent and what it reads or runs. Its scrubber swaps real secrets for typed placeholders such as __ZN_AWS_KEY_1__, so the model never sees the value, and injects the real one only where you allow it when a command executes.

Everything runs locally with no account and no network by default; an optional cloud check can be enabled, with detected secrets removed on your machine first but personal data not removed. Hooks cover Claude Code, Codex CLI, Cursor, OpenCode, Antigravity and the ZCode desktop app. The README suggests starting with npx -y zn-gate reach, then init and check.

The local code is MIT. The cloud check has a free tier of 10,000 calls a month, a Pro plan at $19, a Scale plan at $99 and a per-seat Team plan.

Install

Run in a terminal

claude mcp add zn-gate --env ZN_API_KEY='<ZN_API_KEY>' -- npx -y zn-gate

Add to claude_desktop_config.json

{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate"
      ],
      "env": {
        "ZN_API_KEY": "<ZN_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate"
      ],
      "env": {
        "ZN_API_KEY": "<ZN_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "zn-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "zn-gate"
      ],
      "env": {
        "ZN_API_KEY": "<ZN_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate"
      ],
      "env": {
        "ZN_API_KEY": "<ZN_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "zn-gate": {
      "command": "npx",
      "args": [
        "-y",
        "zn-gate"
      ],
      "env": {
        "ZN_API_KEY": "<ZN_API_KEY>"
      }
    }
  }
}

Configuration

  • ZN_LOCAL_ONLYSet to true to force local-only mode, even if ZN_CLOUD=1.
  • ZN_CLOUDSet to 1 to let prompt analysis also query the optional cloud classifier. Off by default.
  • ZN_API_KEYAPI key for the optional cloud check. Has no effect without ZN_CLOUD=1.

What it does

Secret scrubbing
Replaces secrets with placeholders the model sees instead.
Injection checks
Checks tool output, files and pages before the agent acts.
Config scan
Audits prompts, AGENTS.md and SKILL.md for traps and leaked secrets.
Six agent hooks
Supports Claude Code, Codex CLI, Cursor, OpenCode, Antigravity and ZCode.
Local vault
Moves .env values into an encrypted local vault.
Optional cloud
Adds a classifier and team audit trail if enabled.

Good for

  • Keep API keys out of a coding agent's context
  • Run a CI scan of agent config files for injection traps
  • See which secrets an agent can reach on a machine
  • Give a team a shared audit trail of agent actions

Pricing

Freemium, from $19 a month

Local code is free and MIT; optional cloud free to 10,000 calls/mo, Pro $19/mo

Prices change. Check usezn.com before you buy.

Zn Gate FAQ

Does it need an account?

No. Everything that runs locally needs no account or API key.

Does anything leave my machine?

Not by default. Only if you turn on the cloud check, and detected secrets are removed first.

What does the cloud cost?

Free for 10,000 calls a month, Pro is $19 a month and Scale $99; Team is $19 per seat.

How do I install it?

Run `npx -y zn-gate init` in your own terminal.

Is Zn Gate free?

Zn Gate has a free plan, with paid plans for more usage or features. Paid plans start at $19 a month.

How do I add Zn Gate to Claude Code?

Run this command in your terminal: claude mcp add zn-gate --env ZN_API_KEY='<ZN_API_KEY>' -- npx -y zn-gate

What are the best alternatives to Zn Gate?

The closest alternatives to Zn Gate are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Zn Gate

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools