Skip to content
MCP server

MCP Guardian

Security, cost, and health governance proxy for MCP infrastructure

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
2.3.21
Listing updated
5 days ago

About MCP Guardian

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

Install

Run in a terminal

claude mcp add mcp-guardian --env ALERT_WEBHOOK_URL='<ALERT_WEBHOOK_URL>' -- npx -y @mcp-guardian/server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-guardian": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-guardian/server"
      ],
      "env": {
        "ALERT_WEBHOOK_URL": "<ALERT_WEBHOOK_URL>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-guardian": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-guardian/server"
      ],
      "env": {
        "ALERT_WEBHOOK_URL": "<ALERT_WEBHOOK_URL>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-guardian": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mcp-guardian/server"
      ],
      "env": {
        "ALERT_WEBHOOK_URL": "<ALERT_WEBHOOK_URL>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "mcp-guardian": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-guardian/server"
      ],
      "env": {
        "ALERT_WEBHOOK_URL": "<ALERT_WEBHOOK_URL>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "mcp-guardian": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-guardian/server"
      ],
      "env": {
        "ALERT_WEBHOOK_URL": "<ALERT_WEBHOOK_URL>"
      }
    }
  }
}

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

Configuration

  • MCP_GUARDIAN_DB_PATHPath to SQLite history database
  • ALERT_WEBHOOK_URLSlack or Discord webhook for critical alerts
  • METRICS_ENABLEDExpose Prometheus metrics

Pricing

Open source

MCP Guardian FAQ

Is MCP Guardian free?

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

How do I add MCP Guardian to Claude Code?

Run this command in your terminal: claude mcp add mcp-guardian --env ALERT_WEBHOOK_URL='<ALERT_WEBHOOK_URL>' -- npx -y @mcp-guardian/server

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers