Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Guard

MCP server by emiliaprotocol Verified · npm:@emilia-protocol

MCP Guard is a fail-closed middleware for MCP tool calls that refuses consequential actions without a valid receipt. It is for teams that want approval enforced before a protected tool runs.

  • Score 85
  • 521 stars
  • 52 a week
  • Apache-2.0
  • Updated

Install MCP Guard

Built from the published package, never by AI.

claude mcp add mcp-guard -- npx -y @emilia-protocol/mcp-guard

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Guard in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-guard block.

About

MCP Guard is an MCP server package from the EMILIA Protocol project. It acts as middleware in front of a protected tool. It refuses a call unless a receipt is present, binds the receipt to the exact action, and admits a matching call once. It also parses receipts strictly and treats untrusted tool metadata with escalation only.

The source describes the package as the exact local runtime for protecting one declared consequential MCP action. The examples bind an approval to fields such as amount, currency, vendor, and destination, and refuse changed details, replays, and forged evidence. The source says production use needs enrolled credentials, durable shared state, and the wrapper on every path to the real provider credential. It is aimed at developers who want to guard actions such as payments, repository deletion, or production deployments.

Written from the project's README and checked against it.

What you need

  • Node.js 20.19 or newer
  • npm

Try asking

  • Check that this payment tool call has a valid receipt before it runs
  • Refuse this release action if the approval no longer matches the amount
  • Guard the production deploy tool so it needs a fresh approval

Good to know

  • The bundled examples are a local demonstration with generated keys, in-memory consumption, and mock tools
  • Production needs enrolled credentials, durable shared state, and the wrapper on every path to the provider credential
  • Gate cannot constrain a bypass path
  • A valid approval does not establish that bank details are legitimate

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Gate consequential MCP tool calls
  • Require approval before payments run
  • Block replayed or changed approvals
  • Protect production deployment tools

Alternatives to MCP Guard

All alternatives →
Agentmesh MCP Proxy microsoft
94

Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.

AAA Local 6.6k
Bla qybaihe
94

Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.

AAA Local 7.3k
Bla Agents qybaihe
94

Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.

AAA Local 11k/wk
MCP Auth zgeoff
94

A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner

AAC Local 44k/wk
Agentos MCP Server microsoft
94

Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.

AAA Local 6.6k
Convex MCP Gateway tfohlmeister
93

Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.

AAC Local 37k/wk

Compare with Agentmesh MCP Proxy, Bla or Bla Agents

MCP Guard: common questions

What does MCP Guard protect against?

The source says the example refuses calls without approval, changed payment details, replayed approvals, and forged evidence. It also says a valid approval does not confirm that bank details are legitimate.

What does fail-closed mean here?

In the source, the protected tool refuses a call when no receipt is present. Gate also reserves authority before provider entry and escalates when authority is missing, stale, or too narrow.

Does MCP Guard need a production approval system to test?

No. The source says the bundled examples generate demonstration signing keys and invoke mock tools. Production use needs enrolled credentials and durable shared state.

How do I install MCP Guard?

In Claude Code run claude mcp add mcp-guard -- npx -y @emilia-protocol/mcp-guard. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Guard the official server?

MCP Guard is published by npm:@emilia-protocol from its verified domain in the official MCP Registry.

Is MCP Guard free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is MCP Guard safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Guard?

Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.

Does MCP Guard work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Guard Install

Add to stack

Loading.