# Code Guard MCP

> Code Guard MCP is an open-source MCP server for security. Security scan for AI-generated code: injection, SSRF, secrets, weak crypto, unsafe deserialization. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mlawsonking/mcp/tree/HEAD/code-guard-mcp
- **MCP Registry name:** io.github.mlawsonking/code-guard-mcp
- **Categories:** security
- **Listing updated:** 2026-11-13

## About

Security scan for AI-generated code: injection, SSRF, secrets, weak crypto, unsafe deserialization.

## Install

### Claude Code (Terminal)

```sh
claude mcp add code-guard-mcp -- npx -y @mlawsonking/code-guard-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "code-guard-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-guard-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "code-guard-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-guard-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "code-guard-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Code Guard MCP free?

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

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

Run this command in your terminal: claude mcp add code-guard-mcp -- npx -y @mlawsonking/code-guard-mcp

### What are the best alternatives to Code Guard MCP?

The closest alternatives to Code Guard MCP are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/code-guard-mcp
