# Guardvibe

> Guardvibe is an open-source MCP server for security. Deterministic security scanner for AI-written code with 670 rules and 39 tools. It runs locally on your machine and is started by your AI client.

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

## About

GuardVibe is aimed at developers who ship web apps built with AI coding agents. The pitch is that a model cannot know a CVE published after its training cutoff, cannot give the same result every run, cannot hold a whole repo in context and cannot objectively review its own code, so GuardVibe does those four things. Results are content-hashed so the same code gives the same findings, CVE rules for package versions are refreshed daily from GHSA, OSV.dev and CISA KEV, and cross-file taint and auth-coverage checks look across every route.

Rules are tuned to stacks agents generate, such as Next.js, Supabase, Stripe and Clerk, plus 68 AI and MCP security rules for things like tool-description prompt injection and excessive agent permissions. The `secure_prompt` tool rewrites a coding prompt before generation so security requirements are included, and `fix_code` returns concrete patches an agent can apply. There is also a CLI, a doctor command for AI host checks, a pre-commit hook, SARIF output for GitHub Actions, and compliance mapping for SOC2, PCI-DSS and HIPAA.

It runs locally via npx with no account, API keys or cloud, and is published under the Apache 2.0 licence.

## Features

- **Daily CVE rules:** Dependency rules refreshed from GHSA, OSV.dev and CISA KEV.
- **Deterministic results:** Same code gives the same findings on every run.
- **Whole-repo analysis:** Cross-file taint and auth-coverage checks, aware of sanitizers.
- **Prompt hardening:** secure_prompt adds severity-ranked security requirements before generation.
- **Auto-fix patches:** fix_code returns structured edits for common issues.
- **AI and MCP rules:** 68 rules for prompt injection, MCP tool abuse and agent permissions.
- **CI and hooks:** Pre-commit hook and SARIF export for GitHub Actions.

## Good for

- Scan AI-generated Next.js and Supabase code for auth gaps
- Catch vulnerable package versions published after a model's cutoff
- Harden a coding prompt before the agent runs
- Apply mechanical fixes for hardcoded keys or missing rate limits
- Upload SARIF results to a repository's Security tab

## Install

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

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

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": {
    "guardvibe": {
      "command": "npx",
      "args": [
        "-y",
        "guardvibe"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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 guardvibe -- npx -y guardvibe
```

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

```toml
[mcp_servers.guardvibe]
command = "npx"
args = ["-y", "guardvibe"]
```

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

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

Or run: gemini mcp add -s user guardvibe npx -- -y guardvibe

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

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

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

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

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

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": {
    "guardvibe": {
      "command": "npx",
      "args": [
        "-y",
        "guardvibe"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "guardvibe": {
      "command": "npx",
      "args": [
        "-y",
        "guardvibe"
      ]
    }
  }
}
```

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": {
    "guardvibe": {
      "command": "npx",
      "args": [
        "-y",
        "guardvibe"
      ]
    }
  }
}
```

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

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

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

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

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

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": {
    "guardvibe": {
      "command": "npx",
      "args": [
        "-y",
        "guardvibe"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `secure_prompt`: Analyse a coding prompt and embed security requirements before generation.
- `fix_code`: Return concrete patches and structured edits for findings.

## FAQ

### Does Guardvibe need an account or API key?

No. The README says it runs 100% locally with no API keys or cloud.

### How do I set Guardvibe up in Claude Code?

Run npx guardvibe init claude, which writes the MCP config, auto-scan hooks and security rules.

### Which clients does Guardvibe support?

Claude Code, Cursor, Gemini CLI, Codex, VS Code with Copilot, Windsurf and other MCP-compatible agents.

### How does Guardvibe compare with traditional SAST?

The README says it has fewer rules (about 670 versus 5000 or more) but is built for AI agents, and recommends traditional tools for deep AST analysis and enterprise dashboards.

### Is Guardvibe free?

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

### How do I add Guardvibe to Claude Code?

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

### What are the best alternatives to Guardvibe?

The closest alternatives to Guardvibe 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/guardvibe
