Protect MCP logo

Protect MCP

Enforces Cedar policies for MCP tool calls and creates Ed25519-signed decision receipts.

Install Protect MCP

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": {
    "protect-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp",
        "mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio protect-mcp -- npx -y protect-mcp mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

protect-mcp places a local policy gate between an MCP client and tool server, or evaluates calls through coding-agent hooks. It uses Cedar policies, defaults to shadow mode for the MCP wrapper, and can fail closed when enforcement is enabled. Decisions can be recorded as Ed25519-signed receipts containing the policy digest. Reach for it when you need reviewable allow/deny decisions at an MCP tool boundary, while keeping in mind that it is not an OS sandbox.

Use cases

  • Gate an existing MCP server with Cedar policies
  • Review tool calls in shadow mode before blocking them
  • Create signed records of agent allow and deny decisions
  • Verify receipt signatures and linked decision chains
  • Enforce policies through coding-agent hooks

Key features

  • Fail-closed Cedar policy enforcement
  • Shadow mode for reviewing observed calls
  • Ed25519-signed decision receipts
  • MCP stdio wrapping and HTTP gateway support
  • CLI evaluation, initialization, and signing
  • Receipt and chain verification with a trusted public key

Tools4

What Protect MCP lets your agent do. Expand a tool for its parameters.

Verified live~986 tokens of context

Security & health

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

ActiveLast checked

Recent health check succeeded.

26/27 checks healthy over the last 113d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Runs commands · 1Handles credentials · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age262 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · protect-mcp (npm)

Adoption & maintenance

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

GitHub stars10Stargazers on the source repository.
npm downloads7.1kPackage downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Protect MCP works

What protect-mcp does

protect-mcp applies Cedar policy decisions to proposed AI agent tool calls and can record those decisions in signed receipts. It supports wrapping an existing MCP server, using a local HTTP gateway, connecting the evaluator as MCP tools, or applying enforcement through coding-agent hooks.

The gateway can allow or deny calls based on the selected policy. In fail-closed enforcement, missing policies, policy-engine failures, and evaluation errors result in denial. The MCP wrapper starts in shadow mode, allowing you to inspect observed calls before enabling blocking.

Receipts use Ed25519 signatures and include the decision and policy digest. The separate @veritasacta/verify package can validate receipt bytes with a trusted public key and replay linked receipt records.

How it works

Initialize a configuration and starter policy, then evaluate proposed calls with the CLI or place the wrapper in front of an MCP server. A wrapped server is started with its command after the policy options, for example:

Terminal
npx --yes protect-mcp@latest --policy ./protect-mcp.json -- node your-mcp-server.js

Use --enforce after reviewing shadow-mode results. The wrap command prints client configuration and exits; it is not the process used to launch the wrapped server. Coding-agent plugins and standalone hooks provide additional routes for enforcement, including Claude Code project integrations and a Cursor project preview.

Signing evaluates the call again and appends the resulting receipt to a JSON Lines file. Verification checks signatures and, for a replay chain, the supplied links. A failed verification can result from an incorrect expected public key as well as from altered data, and chain replay does not prove that the supplied file contains the complete history.

Setup and configuration

The local quickstart requires Node.js 22 and npm. Install protect-mcp, initialize a starter policy and private key, then run evaluations or start the wrapper. Keep the generated private key confidential; use only the public key when verifying another party's records, obtained through an independently trusted channel.

A typical setup includes:

  1. Run protect-mcp init, optionally with --starter.
  2. Review the Cedar policy and observed calls.
  3. Use evaluate for local policy checks or start the MCP wrapper with a server command.
  4. Add --enforce when the policy is ready to block calls.
  5. Use sign to create receipts and @veritasacta/verify to check them.

The starter shell rules inspect command text. They may miss alternate spellings and can match harmless text inside quoted arguments, so their coverage should be reviewed before relying on them for enforcement.

Tools and capabilities

  • Initialize configuration, starter policy, and signing material.
  • Evaluate proposed tool calls against Cedar policies.
  • Wrap existing MCP servers over stdio.
  • Run a local HTTP gateway.
  • Expose the policy evaluator as MCP tools.
  • Sign decisions with Ed25519 receipts and verify receipt chains.
  • Apply enforcement through Claude Code hooks or plugin routes.

Limitations and notes

Coverage applies only to calls routed through the gateway or selected hook. The project is not an operating-system sandbox. A valid signed receipt records a decision; it does not prove that an action executed or that no action was omitted.

Shadow mode is the default for the MCP wrapper, so blocking requires explicit enforcement. The Claude Code plugin blocks routed calls while its local gate is unavailable, and the project advises choosing either that plugin or standalone project hooks to avoid recording the same call twice. Local evaluation and verification do not require a ScopeBlind account or send decision telemetry.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Protect MCP

protect-mcp is an MCP server that connects an MCP client to policy-controlled tool execution through a local gateway. Its main capabilities are Cedar-based call evaluation, optional enforcement, Ed25519 signing of decisions, and receipt verification. It can wrap existing MCP servers or expose the policy evaluator as MCP tools.

Install it with npm and Node.js 22 or newer, then initialize its configuration with `npx --yes protect-mcp@latest init`. To wrap an existing server, pass a policy file followed by the server command. The wrapper starts in shadow mode until you add `--enforce`.

Run the MCP wrapper with `--enforce` after reviewing its shadow-mode observations and Cedar policy. The gate evaluates proposed calls at the tool boundary and denies when the policy rejects them or when fail-closed evaluation encounters a missing policy or error.

Use the `@veritasacta/verify` package with the receipt file and the expected public key. It can validate individual receipts or replay linked JSON Lines records. Exit code 0 means valid, 1 means invalid, and 2 means the result was not checked because of an error.

Yes, protect-mcp includes a Cursor project preview with explicit setup, tool mapping, and host checks. The Cursor package is a preview rather than a public directory listing, so its integration route should be configured separately from the standard MCP wrapper.

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 PreviewProtect MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/protect-mcp?style=directory)](https://allmcps.com/mcp/protect-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/protect-mcp"><img src="https://allmcps.com/api/badge/protect-mcp?style=directory" alt="Protect MCP on AllMCPs" /></a>