# gatekeeper [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/Runestone-Labs/gatekeeper  
**GitHub Stars:** 0  
**npm Downloads (last month):** 216  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gatekeeper

## Description
Run MCP tool calls through Runestone Gatekeeper — policy enforcement, human approval, audit.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gatekeeper": {
    "command": "npx",
    "args": ["-y","@runestone-labs/gatekeeper-mcp"]
  }
}
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/gatekeeper/readme_

