Skip to content
MCP server

vibe-shield — security scanner for AI-generated code

Static scanner for leaked secrets, unguarded routes and missing RLS in AI-written code

Runs locally

vibe-shield — security scanner for AI-generated code is a free MCP server for security. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, VS Code
Runs
Locally
Version
2.1.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add vibe-shield -- npx -y @vibefoundry/vibe-shield

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "vibe-shield": {
      "command": "npx",
      "args": [
        "-y",
        "@vibefoundry/vibe-shield"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

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

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.

What it does

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

Pricing

Free

Free npm package; no price listed

vibe-shield — security scanner for AI-generated code 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.

How AIPoweredBot checks servers