mcp-guard MCP Server

The local privacy firewall, prompt-injection shield, secret sanitizer, and token compressor for AI coding agents.

Local serverstdio

What is the mcp-guard MCP Server?

mcp-guard is an MCP project maintained in the sainitish1609/mcp-guard repository. The maintainer describes its purpose as “The local privacy firewall, prompt-injection shield, secret sanitizer, and token compressor for AI coding agents”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using mcp-guard. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the mcp-guard MCP Server

{
  "mcpServers": {
    "filesystem": {
      "command": "mcp-guard",
      "args": [
        "--redact-secrets",
        "--scan-injection",
        "--block-shell",
        "--",
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/username/projects"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.