
Airlock RLS
Scan a deployed site for an exposed Supabase service_role key and audit its RLS
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.1.1
- Listing updated
- 2 days ago
About Airlock RLS
Airlock RLS is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add airlock-rls-mcp -- npx -y airlock-rls-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"airlock-rls-mcp": {
"command": "npx",
"args": [
"-y",
"airlock-rls-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"airlock-rls-mcp": {
"command": "npx",
"args": [
"-y",
"airlock-rls-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"airlock-rls-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"airlock-rls-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"airlock-rls-mcp": {
"command": "npx",
"args": [
"-y",
"airlock-rls-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"airlock-rls-mcp": {
"command": "npx",
"args": [
"-y",
"airlock-rls-mcp"
]
}
}
}Tools this server provides (10)
Taken from the project documentation; the running server may differ.
- 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
What it does
- 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
Pricing
Open source
MIT licensed; hosted Airlock Monitor is a paid tier, price not listed
Prices change. Check shipsealed.com before you buy.
Airlock RLS 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 to Airlock RLS

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools
Agent Roast
MCP serverOffline review that flags agent changes which weaken tests, assertions or CI
Runs locally- Open source
- 4 Hacker News points
- Developer tools

Midplane
MCP serverPostgres gateway for AI agents with table grants, column masking and approval for writes
Runs locally- Open source
- 5 GitHub stars
- Databases

Leash
MCP serverReview what your AI touched, approve risky actions and undo supported changes
- 1 tool
- Remote
- Free
- 1 GitHub star
- Security
Zero-log MCP server with 49 tools for AI guardrails, secret scanning and EU compliance
- 49 tools
- Remote
- Freemium
- Security

SecureCloud
MCP serverSentinelOne and IT security catalog, prices, quotes and checkout links for Israel
- 7 tools
- Remote
- Free
- Security