# Gadriel AI Security Harness

> Gadriel AI Security Harness is a freemium MCP server for security. Local security scanner for AI-written code: SAST, secrets, dependencies and config. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $30 a month
- **Platforms:** vscode, CLI
- **Website:** https://gadriel.ai/code-security
- **Repository:** https://github.com/gadriel-ai/gadriel-copilot-plugin
- **MCP Registry name:** io.github.Gadriel-ai/gadriel
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

Gadriel works while the code is being written. It runs in the editor through MCP and flags problems before they reach git, and the code is scanned on your machine, with no upload. The README lists more than 3,000 rules and AI-specific risks such as prompt injection and the OWASP LLM Top 10. On first run it registers an anonymous device credential with app.gadriel.ai, which GADRIEL_NO_ANONYMOUS_AUTH=1 turns off.

The GitHub repository packages it for Copilot with repository instructions, slash prompts like /gadriel-scan and /gadriel-fix, and eight reviewer agents. Copilot has no edit-time hook, so scans there run on request; Cursor and Codex can block each edit. Claude Code, Windsurf and the VS Code extension are supported too.

The scanner is proprietary though the plugin repo is Apache-2.0.

## Features

- **Many scan types:** SAST, SCA, secrets, IaC, containers, APIs and configuration.
- **AI-risk rules:** Covers prompt injection and OWASP LLM Top 10.
- **Local scanning:** Code is not uploaded.
- **Editor integrations:** Copilot, Claude Code, Cursor, Windsurf and VS Code.
- **Fix assistance:** A tool proposes fixes for a finding.
- **Compliance mapping:** Findings mapped to frameworks such as EU AI Act and NIST AI RMF.

## Good for

- Scan a repo from Copilot Chat and summarise findings
- Catch hard-coded secrets as an assistant writes code
- Check dependencies against vulnerability feeds
- Add inline guardrails in Cursor

## Install

### Claude Code (Terminal)

```sh
claude mcp add gadriel -- npx -y gadriel
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gadriel": {
      "command": "npx",
      "args": [
        "-y",
        "gadriel"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "gadriel": {
      "command": "npx",
      "args": [
        "-y",
        "gadriel"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "gadriel": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gadriel"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "gadriel": {
      "command": "npx",
      "args": [
        "-y",
        "gadriel"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "gadriel": {
      "command": "npx",
      "args": [
        "-y",
        "gadriel"
      ]
    }
  }
}
```

## Tools

- `validate_file`: Scans a file.
- `findings_for_path`: Returns findings for a path.
- `fix_finding`: Proposes a fix for a finding.
- `validate_buffer`: Scans unsaved editor content.

## FAQ

### Does my code leave my machine?

The README says code is scanned locally and never uploaded.

### Is there a free tier?

Yes, free for individual developers with unlimited local scans; Team is $30 per developer per month.

### Can I opt out of device registration?

Yes, set GADRIEL_NO_ANONYMOUS_AUTH=1.

### How do I run the MCP server?

npx -y gadriel@1.7.0 code mcp, or install the VS Code extension.

### Is Gadriel AI Security Harness free?

Gadriel AI Security Harness has a free plan, with paid plans for more usage or features. Paid plans start at $30 a month.

### How do I add Gadriel AI Security Harness to Claude Code?

Run this command in your terminal: claude mcp add gadriel -- npx -y gadriel

### What are the best alternatives to Gadriel AI Security Harness?

The closest alternatives to Gadriel AI Security Harness are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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-2): 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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/gadriel-ai-security-harness
