MCP Safety Warden
Proxy that scans, profiles and gates tool calls of any MCP server
MCP Safety Warden is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Version
- 1.7.18
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcpsafetywarden -- uvx mcpsafetywardenAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcpsafetywarden": {
"command": "uvx",
"args": [
"mcpsafetywarden"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcpsafetywarden": {
"command": "uvx",
"args": [
"mcpsafetywarden"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcpsafetywarden": {
"command": "uvx",
"args": [
"mcpsafetywarden"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcpsafetywarden": {
"type": "stdio",
"command": "uvx",
"args": [
"mcpsafetywarden"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcpsafetywarden -- uvx mcpsafetywardenOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcpsafetywarden]
command = "uvx"
args = ["mcpsafetywarden"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcpsafetywarden": {
"command": "uvx",
"args": [
"mcpsafetywarden"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Or run: gemini mcp add -s user mcpsafetywarden uvx -- mcpsafetywarden
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcpsafetywarden": { "command": "uvx", "args": [ "mcpsafetywarden" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About MCP Safety Warden
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.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
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
What it does
- 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
Pricing
Open source
MCP Safety Warden 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.


