# MCP Safeguard

> MCP Safeguard is an open-source MCP server. MCP server security scanner: detects prompt injection, credential leaks, SSRF, tool poisoning. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://gitlab.com/anasmohiuddinsyed/mcp-safeguard
- **MCP Registry name:** com.cognivators/mcp-safeguard
- **Listing updated:** 2026-11-13

## About

MCP server security scanner: detects prompt injection, credential leaks, SSRF, tool poisoning.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-safeguard -- uvx mcp-safeguard
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-safeguard": {
      "command": "uvx",
      "args": [
        "mcp-safeguard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-safeguard": {
      "command": "uvx",
      "args": [
        "mcp-safeguard"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-safeguard": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-safeguard"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-safeguard": {
      "command": "uvx",
      "args": [
        "mcp-safeguard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-safeguard": {
      "command": "uvx",
      "args": [
        "mcp-safeguard"
      ]
    }
  }
}
```

## FAQ

### Is MCP Safeguard free?

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

### How do I add MCP Safeguard to Claude Code?

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

## Where this comes from

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

---
Source: https://ai-powered.com/mcp/mcp-safeguard
