Gatekeeper logo

Gatekeeper

Routes MCP tool calls through policy checks, approvals, budgets, and append-only audit logging.

Install Gatekeeper

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gatekeeper": {
      "command": "npx",
      "args": [
        "-y",
        "@runestone-labs/gatekeeper-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @runestone-labs/gatekeeper-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 21d ago.

Overview

The gatekeeper MCP server routes agent actions involving shell commands, HTTP requests, and filesystem operations through policy enforcement. It can allow, deny, or pause calls for human approval, while applying optional USD, token, and call budgets. Decisions are recorded in JSONL or Postgres audit logs, with usage and budget endpoints available. Reach for it when an agent needs a local, auditable boundary before interacting with real systems.

Use cases

  • Gate shell commands before execution
  • Require approval for credential access
  • Limit agent spending by run
  • Audit routed tool calls
  • Protect sensitive local files

Key features

  • Policy-based allow, deny, and approval decisions
  • Sensitive-boundary rule pack
  • USD, token, and call budgets
  • JSONL or Postgres audit trails
  • Usage and budget endpoints
  • Optional Anthropic request proxy

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

20/24 checks healthy over the last 90d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22h ago via OSV.dev · @runestone-labs/gatekeeper-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads165Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Gatekeeper works

What gatekeeper MCP server does

The gatekeeper MCP server places a policy boundary between AI agents and actions that can affect a machine or external service. It covers shell commands, HTTP requests, and filesystem operations, allowing low-risk calls, rejecting dangerous patterns, or holding sensitive actions for human approval.

Its built-in sensitive-boundary rules cover credential stores, private keys, cloud credential files, environment secrets, package registry tokens, developer authentication data, browser profiles, and broad searches through a home directory. Rules have an effect, category, risk level, and optional safer alternative. They can be overridden or extended in policy.yaml.

The service only protects calls that are actually routed through it. Installing Gatekeeper does not establish coverage for native or bypass paths, so each client’s routing configuration must be checked.

How it works

A routed tool request is evaluated against configured policy rules before the underlying action runs. The decision can be an immediate allow, a denial, or an approval requirement. Optional limits can reject requests after an actor or run exceeds a USD, token, or call budget. Run-scoped limits use runId and are intended to cap a single agentic run.

Decisions are written to an append-only audit trail in JSONL or Postgres. JSONL records include sequence information and chained hashes, allowing independent checks for missing or altered entries. The /usage endpoint reports call and cost or token totals by actor, tool, and day. The /budget endpoint shows configured caps alongside current spending.

The gatekeeper MCP server can also proxy Anthropic /v1/messages calls. This optional mode centralizes the API key, audits model requests, and records real token costs for budgeting; it is disabled by default.

Setup and configuration

Install the command-line package globally with npm:

Terminal
npm install --global @runestone-labs/gatekeeper

The setup utility can initialize supported targets, inspect configuration, and verify an audit directory:

bash
gatekeeper init --client claude-code
gatekeeper doctor
gatekeeper verify ./data/audit

Supported setup targets documented here are claude-code, openclaw, and mcp. The Claude Code integration is installed separately with @runestone-labs/gatekeeper-claude-code; it routes Bash, Write, Edit, and WebFetch through a PreToolUse hook. New managed Claude Code installations set GATEKEEPER_FAIL_CLOSED=1, while older fail-open hooks are reported by doctor as protection failures.

The local server and MCP integration are available without the proposed hosted team product. The experimental connect flow uses browser device authorization and stores a scoped local instance token, but the public Cloud endpoint is not generally available.

Tools and capabilities

The gatekeeper MCP server provides these documented capabilities:

  • Evaluate shell, HTTP, and filesystem actions against policy.
  • Allow, deny, or require human approval for tool calls.
  • Detect access to sensitive local boundaries.
  • Enforce optional actor- or run-level USD, token, and call limits.
  • Record decisions in JSONL or Postgres audit storage.
  • Expose usage totals and current budget status.
  • Proxy Anthropic model calls when explicitly enabled.
  • Preview, back up, and restore client configuration changes through the setup CLI.

Limitations and notes

Protection depends on routing. Actions executed through an unconfigured client path, native feature, or bypass route remain outside the boundary. The hosted team workflow is a proposed service rather than a generally available product, and no payment is collected during its demand test. The Anthropic proxy is also opt-in rather than part of the default setup.

The README identifies Claude Code, OpenClaw, and generic MCP setup targets, but does not document a Cursor-specific integration. Policy customization is available under sensitive_boundaries: in policy.yaml; defaults load automatically.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gatekeeper

gatekeeper is an MCP server that connects AI agents to shell, HTTP, and filesystem actions through a policy boundary. Its main tools enforce allow, deny, and human-approval decisions, apply optional USD, token, and call budgets, and write audit records. It can also proxy Anthropic model calls, although that mode is off by default.

Install it globally with `npm install --global @runestone-labs/gatekeeper`. Then use `gatekeeper init`, `gatekeeper doctor`, and `gatekeeper verify`; documented setup targets include Claude Code, OpenClaw, and generic MCP configurations.

The documented setup targets are `claude-code`, `openclaw`, and `mcp`, so verify Cursor’s actual routing configuration before treating it as protected.

Gatekeeper records routed decisions in an append-only JSONL or Postgres audit trail. JSONL receipts contain sequence data and chained hashes, while `/usage` reports activity and cost or token totals by actor, tool, and day.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGatekeeper AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gatekeeper?style=directory)](https://allmcps.com/mcp/gatekeeper)
HTML Embed
<a href="https://allmcps.com/mcp/gatekeeper"><img src="https://allmcps.com/api/badge/gatekeeper?style=directory" alt="Gatekeeper on AllMCPs" /></a>