# MCP Safety Warden

> MCP Safety Warden is an open-source MCP server for security. Proxy that scans, profiles and gates tool calls of any MCP server. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/gautamvarmadatla/mcpsafetywarden
- **MCP Registry name:** io.github.gautamvarmadatla/mcpsafetywarden
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

It wraps an existing MCP server (stdio, SSE or streamable HTTP) as a proxy, or audits a server you do not own without making a tool call. Behavioral profiling classifies each tool by effect, retry safety and destructiveness, with latency p50/p95 and failure rates tracked on every proxied call.

Security scanning uses a five-stage pipeline called mcpsafety+ and optional Cisco AI Defense, Snyk, Kali and Burp Suite integrations, plus source scanning from GitHub for entropy, taint flow and rug-pull detection through a SHA-256 hash. On execution, arguments are scanned for 20+ attack categories, outputs for injection in two layers, and flagged responses are quarantined and never returned to the agent. Secrets passed at registration become opaque cref_ identifiers.

It needs Python 3.10+. An LLM key (Anthropic, OpenAI, Gemini or Ollama) is recommended; without one it falls back to rule-based mode. State is kept in a local SQLite database, and a CLI offers 24 subcommands with --json output.

## Features

- **Proxy mode:** Wraps any MCP server so each call passes safety checks.
- **Audit mode:** Runs a security audit without making a tool call.
- **Argument scanning:** Checks calls against 20+ attack categories before forwarding.
- **Output quarantine:** Injection-flagged responses are stored for review, not returned.
- **Drift detection:** Alerts on description swaps, schema changes and tool removal.
- **Credential protection:** Secrets are replaced by cref_ identifiers.

## Good for

- Vet a third-party MCP server before adopting it
- Gate risky tool calls with per-tool policies
- Detect rug-pull changes
- Add safety checks to CI with --json and --yes

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcpsafetywarden -- uvx mcpsafetywarden
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcpsafetywarden -- uvx mcpsafetywarden
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcpsafetywarden]
command = "uvx"
args = ["mcpsafetywarden"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcpsafetywarden uvx -- mcpsafetywarden

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcpsafetywarden": {
      "command": "uvx",
      "args": [
        "mcpsafetywarden"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `security_scan_server`: Run a security scan on a server, optionally from a GitHub URL
- `register_server`: Register a server to wrap
- `onboard_server`: Onboard and profile a server

## FAQ

### Does MCP Safety Warden need an LLM key?

Recommended but not required; without one it runs rule-based only.

### What Python version?

3.10 or later.

### Can MCP Safety Warden inspect stdio servers needing local setup?

Not by running them; use --github-url for a source scan instead.

### Where does MCP Safety Warden store data?

In a local SQLite database, overridable with MCP_DB_PATH.

### Is MCP Safety Warden free?

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

### How do I add MCP Safety Warden to Claude Code?

Run this command in your terminal: claude mcp add mcpsafetywarden -- uvx mcpsafetywarden

### What are the best alternatives to MCP Safety Warden?

The closest alternatives to MCP Safety Warden 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mcp-safety-warden
