# Airlock RLS

> Airlock RLS is an open-source MCP server for security. Scan a deployed site for an exposed Supabase service_role key and audit its RLS. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://shipsealed.com
- **Repository:** https://github.com/mateuszingano/airlock-rls-mcp
- **MCP Registry name:** io.github.mateuszingano/airlock-rls-mcp
- **Categories:** security, databases
- **Listing updated:** 2026-11-15

## About

The most common vibe-coding mistake it targets is a `service_role` key shipped to the browser, which lets anyone who reads it bypass every Row Level Security policy. One tool takes a public URL and reads the page and its JS bundles for a service_role JWT or an `sb_secret_` key, never printing the full key. Another audits a Postgres database for RLS-off tables, always-true policies and anon or authenticated tenant leaks, reading only catalog metadata such as `pg_tables` and `pg_policies`, so a read-only role is enough and no row data is touched.

Findings can come back as readable text or as structured JSON grouped by severity, which suits agents that iterate and fix. Two offline helpers explain a finding kind such as `rls_disabled` or `permissive_true` and generate the SQL to fix it for a named table.

The local tools need no account. A second group talks to the hosted Airlock Monitor and needs an API key; it starts audit runs on connected Supabase projects and downloads a signed attestation (Ed25519 and SHA-256) that anyone can verify on the ShipSealed site. The package is a thin wrapper around the open-source Airlock RLS engine and needs Node.js 18 or newer.

## Features

- **Exposed key scan:** Reads a public URL and its bundles for service_role keys without credentials.
- **Read-only RLS audit:** Checks catalog metadata only, never row data.
- **Structured findings:** Returns JSON grouped by severity for agents to act on.
- **Finding explanations:** Explains what a finding means and how to fix it.
- **Fix SQL generation:** Produces ready-to-paste SQL for a specific table and policy.
- **Monitor integration:** Runs hosted audits and fetches signed attestations with an API key.

## Good for

- Check a freshly deployed app for a leaked master key
- Audit RLS on a Supabase database while an agent builds it
- Turn audit findings into migration SQL
- Have a client verify a signed audit attestation
- Triage cross-tenant read leaks by severity

## Install

### Claude Code (Terminal)

```sh
claude mcp add airlock-rls-mcp -- npx -y airlock-rls-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "airlock-rls-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-rls-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "airlock-rls-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-rls-mcp"
      ]
    }
  }
}
```

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

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

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

```json
{
  "mcpServers": {
    "airlock-rls-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-rls-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "airlock-rls-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-rls-mcp"
      ]
    }
  }
}
```

## Tools

- `scan_site_for_exposed_key`: Scan a deployed URL for an exposed Supabase service_role key
- `audit_supabase_rls`: Audit a Postgres database for RLS problems and return a summary
- `get_findings`: Return the audit as structured JSON grouped by severity
- `explain_finding`: Explain a finding kind and how to fix it
- `generate_fix`: Return SQL to fix a specific finding
- `list_monitor_projects`: List Supabase projects connected to Monitor
- `start_monitor_run`: Start an RLS audit and DAST run on a connected project
- `get_monitor_run`: Check the status of a run
- `get_monitor_findings`: Get findings and suggested fixes from a completed run
- `get_monitor_attestation`: Download the signed attestation for a completed run

## FAQ

### Do I need an account?

Not for the five local tools. The Monitor tools need an API key from the Monitor dashboard.

### Does the audit read my data?

No. It reads only catalog metadata such as pg_tables, pg_policies and grants.

### Will it print the exposed key?

No, the scan never prints the full key.

### What does it run on?

Node.js 18 or newer, started with npx airlock-rls-mcp.

### Is Airlock RLS free?

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

### How do I add Airlock RLS to Claude Code?

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

### What are the best alternatives to Airlock RLS?

The closest alternatives to Airlock RLS are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/airlock-rls
