# vibe-shield — security scanner for AI-generated code

> vibe-shield — security scanner for AI-generated code is a free MCP server for security. Static scanner for leaked secrets, unguarded routes and missing RLS in AI-written code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, VS Code
- **Repository:** https://github.com/avivgerz-hue/vibe-shield
- **MCP Registry name:** io.github.avivgerz-hue/vibe-shield
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The motivating case in the README is a delete endpoint an agent wrote that works, yet has no authentication, builds SQL by concatenating request data, and trusts a user id from the request body. The scanner flags all three and prints a grade, with rule ids such as VSB-AUTH-001 and VSB-DB-007 and an explain command for each.

Version 2 groups its rules into eight areas: client exposure, auth and route protection, database and RLS, AI and web sinks, infrastructure, dependency hygiene, secrets and cryptography, and agent or MCP integrity. It also builds a heuristic inventory of route methods, guard signals, SQL tables and RLS signals. The README says these signals do not prove a guard or policy works and that an A+ score is not a security certification.

A fix-prompt option writes a file for your coding agent with severity, CWE, location, snippet and remediation steps per finding, and reports can be written as Markdown or HTML. A one-command setup configures several coding agents, and a fail-on flag gates CI. The scanner is offline and read-only by default. One caution from the README: use the scoped package name, because the unscoped npm name belongs to an unrelated project.

## Features

- **Rule catalogue:** About 80 rules across eight areas, with CWE and OWASP mappings in reports.
- **Attack-surface inventory:** Lists routes, guard signals, SQL tables, RLS signals and MCP files.
- **Fix prompt for agents:** Writes a machine-readable remediation file for your coding agent.
- **Report formats:** Markdown, HTML and GitHub-format output.
- **CI gate:** Fails builds above a chosen severity.
- **Multi-agent setup:** One command configures Claude Code, Cursor, Codex, Copilot, Zed and others.

## Good for

- Scan an AI-generated project before shipping
- Hand a fix list back to the agent that wrote the bug
- Fail CI when critical findings appear
- Check Supabase-style tables for missing row-level security
- Audit agent skills and MCP config files

## Install

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

```sh
claude mcp add vibe-shield -- npx -y @vibefoundry/vibe-shield
```

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": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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 vibe-shield -- npx -y @vibefoundry/vibe-shield
```

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

```toml
[mcp_servers.vibe-shield]
command = "npx"
args = ["-y", "@vibefoundry/vibe-shield"]
```

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user vibe-shield npx -- -y @vibefoundry/vibe-shield

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

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": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
```

## FAQ

### How do I run vibe-shield — security scanner for AI-generated code?

Run npx -y @vibefoundry/vibe-shield scan in your project. Use the scoped name, because the unscoped npm package is unrelated.

### Does the scan send code anywhere?

The README says the scanner itself is offline and read-only by default; only npx may need network access to download it.

### Does a good score mean the app is secure?

No. The README says an A+ applies only to the rules and files examined and is not a certification.

### Which agents does setup cover?

Claude Code, OpenCode, Codex, Cursor, Windsurf, Copilot, Cline, Roo Code and Zed.

### Is vibe-shield — security scanner for AI-generated code free?

Yes. vibe-shield — security scanner for AI-generated code is free to use.

### How do I add vibe-shield — security scanner for AI-generated code to Claude Code?

Run this command in your terminal: claude mcp add vibe-shield -- npx -y @vibefoundry/vibe-shield

### What are the best alternatives to vibe-shield — security scanner for AI-generated code?

The closest alternatives to vibe-shield — security scanner for AI-generated code 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/vibe-shield-security-scanner-for-ai-generated-code
