Skip to content
MCP server

Protect MCP

Cedar policy gate and signed receipts for agent tool calls, local and fail-closed

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.32.4
Listing updated
today

Similar MCP servers

About Protect MCP

Protect MCP is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

Placed between an MCP client and its tool server, or used through coding-agent hooks, this gateway evaluates each proposed call against a Cedar policy and signs the decision with Ed25519. In enforce mode any missing policy or engine error means deny. The MCP wrapper starts in shadow mode, logging what would be blocked, until you add the --enforce flag.

Receipts include the decision and a policy digest, can be chained, and are checked with a separate verifier tool; tampering with a signed deny turns up as an invalid signature. The README is frank about limits: it covers only calls routed through it, is not an OS sandbox, and a receipt does not prove an action ran or that nothing was omitted. Starter shell rules inspect command text and can be bypassed with alternate spellings.

Evaluation and verification run locally with no ScopeBlind account and no decision telemetry. Integrations include a Claude Code plugin, project hooks, an HTTP gateway and previews for Cursor and Codex.

Install

Run in a terminal

claude mcp add protect-mcp -- npx -y protect-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "protect-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "protect-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "protect-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "protect-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "protect-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "protect-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

What it does

Cedar policy evaluation
Allow or deny each tool call from a reviewable policy.
Fail-closed mode
Missing policies or engine errors result in deny.
Signed receipts
Ed25519 receipts record the decision and policy digest.
Shadow-to-enforce workflow
Observe calls first, then turn on blocking.
Several entry points
MCP stdio wrapper, HTTP gateway, Claude Code plugin or hooks.

Good for

  • Block force-pushes and risky shell commands from a coding agent
  • Keep an auditable record of what an agent was allowed to do
  • Trial a policy in shadow mode before enforcing it
  • Wrap an existing MCP server with access rules

Pricing

Open source

Protect MCP FAQ

Does it need an account?

No. Local evaluation and verification need no ScopeBlind account.

Is it a sandbox?

No. It only covers calls routed through the gateway.

What Node version does the demo use?

Node.js 22.

Does a receipt prove the action ran?

No. The README says it does not establish execution or completeness.

Is Protect MCP free?

Yes. Protect MCP is open source, so you can use and self-host it for free.

How do I add Protect MCP to Claude Code?

Run this command in your terminal: claude mcp add protect-mcp -- npx -y protect-mcp

What are the best alternatives to Protect MCP?

The closest alternatives to Protect MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers