# GuardLayer

> GuardLayer is a free MCP server for security. Security checks for Next.js and Supabase apps, run from your AI agent. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://www.guardlayer.io/mcp
- **Repository:** https://github.com/solvionholdings/guardlayer-plugin
- **MCP Registry name:** io.github.solvionholdings/guardlayer
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

GuardLayer targets a specific failure of AI-built apps: tables created in the Supabase dashboard, row-level security switched off by hand, and policies that look protective but pass for anyone who can sign up. Its check goes beyond reading code by also examining a snapshot of the live project.

The flow is split in three. One tool scans code the agent sends, looking for service role keys in client code or NEXT_PUBLIC_ and VITE_ variables, missing or open RLS in migrations, and API routes, Server Actions and Edge Functions that never check the caller. Another provides a read-only SQL query for catalog metadata only, with no rows. A third checks that snapshot along with Auth settings and, given the previous result's keys, reports what closed, what is new and what remains open.

The site says nothing sent is stored, and fixes go in a migration rather than turning RLS off.

## Features

- **Code scan:** Flags leaked service keys, open RLS and unguarded routes with a fix for each.
- **Metadata-only snapshot:** A read-only query returns catalog data, never table rows.
- **Live project check:** Reviews policies, grants, buckets and Auth settings together.
- **Fix confirmation:** Compares results to show which findings closed.
- **Plugin and skill:** A Claude Code plugin adds a skill that tells the agent when to use it.

## Good for

- Review a Supabase project before deploying
- Verify that a claimed fix actually closed a leak
- Catch policies that only check for a signed-in user
- Audit an AI-generated app for exposed service role keys

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http guardlayer https://www.guardlayer.io/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://www.guardlayer.io/api/mcp
```

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

```json
{
  "mcpServers": {
    "guardlayer": {
      "url": "https://www.guardlayer.io/api/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "guardlayer": {
      "type": "http",
      "url": "https://www.guardlayer.io/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "guardlayer": {
      "serverUrl": "https://www.guardlayer.io/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "guardlayer": {
      "type": "http",
      "url": "https://www.guardlayer.io/api/mcp"
    }
  }
}
```

## Tools

- `scan_files`: Static scan of code sent by the agent
- `get_supabase_snapshot_sql`: Read-only SQL that reads the project's catalog
- `check_supabase_snapshot`: Check a snapshot with Auth settings and compare to a prior result

## FAQ

### Does GuardLayer see my database or keys?

The site says no: your agent runs a read-only query returning catalog metadata and sends only that JSON.

### Is anything stored?

The site says code and snapshots are checked in memory and discarded.

### Is it free?

The page describes it as free.

### Which clients can use it?

Claude Code, Cursor and any client supporting remote MCP over HTTP.

### Is GuardLayer free?

Yes. GuardLayer is free to use.

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

Run this command in your terminal: claude mcp add --transport http guardlayer https://www.guardlayer.io/api/mcp

### What are the best alternatives to GuardLayer?

The closest alternatives to GuardLayer 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/guardlayer
