# Deadbolt

> Deadbolt is a free MCP server for databases. Check Supabase SQL for who can read and write each table, with fix SQL. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API
- **Website:** https://deadbolt.clawhard.com
- **MCP Registry name:** com.clawhard/deadbolt
- **Categories:** databases, security
- **Listing updated:** 2026-11-14

## About

Deadbolt answers one question about a Supabase project: what can signed-out and signed-in users do to each table? You give it migration SQL or a read-only catalog snapshot, and it returns a per-table matrix of select, insert, update and delete access, the leaks ranked by severity, and SQL to fix them. The site says it never connects to your database, needs no keys and uploads nothing; the catalog query reads settings, grants and policies, not rows.

It replays your SQL in order (create, alter, drop, grant, revoke, default privileges) and applies Postgres policy semantics, where permissive policies OR together, restrictive ones AND and WITH CHECK governs new rows. The leaks it names include RLS off, policies written but not enabled, `using (true)` writes, views that skip RLS, security definer functions anyone can call, `user_metadata` in policies, public bucket listing, and missing grants after Supabase's 30 October 2026 change to default grants.

The MCP server exposes `deadbolt_check_supabase_access` and `deadbolt_catalog_query`, so an agent can check migrations before applying them. There is no login or key.

## Features

- **Access matrix:** Shows per table what signed-out and signed-in users can select, insert, update and delete.
- **Leak detection:** Flags RLS gaps, open policies, leaky views, risky functions and missing grants.
- **Fix SQL:** Writes the statements to close each finding.
- **Postgres semantics:** Replays SQL in order and applies permissive and restrictive policy rules.
- **No database access:** Reads only what you paste; no keys or connection.

## Good for

- Review migrations for RLS gaps before applying them
- Find out why a new table returns permission denied (42501)
- Audit a live Supabase project via the read-only catalog query
- Check whether a view bypasses row level security

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http deadbolt https://deadbolt.clawhard.com/mcp
```

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

```sh
https://deadbolt.clawhard.com/mcp
```

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

```json
{
  "mcpServers": {
    "deadbolt": {
      "url": "https://deadbolt.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "deadbolt": {
      "type": "http",
      "url": "https://deadbolt.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "deadbolt": {
      "serverUrl": "https://deadbolt.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "deadbolt": {
      "type": "http",
      "url": "https://deadbolt.clawhard.com/mcp"
    }
  }
}
```

## Tools

- `deadbolt_check_supabase_access`: Check Supabase SQL for who can read and write each table and return findings with fix SQL
- `deadbolt_catalog_query`: Returns the read-only catalog query to run in the Supabase SQL Editor

## FAQ

### Does it connect to my database?

No. It only reads what you paste, and the catalog query returns no row data.

### Do I need an account or key?

No. The MCP server needs no key or login.

### Is a table with RLS on and no policies safe?

Per the site, it is locked: the API returns no rows and rejects writes for anon and signed-in users.

### Why did new tables stop being readable?

The site says that since 30 October 2026 new Supabase projects no longer grant new public tables to anon and authenticated, so policies need a GRANT too.

### Is Deadbolt free?

Yes. Deadbolt is free to use.

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

Run this command in your terminal: claude mcp add --transport http deadbolt https://deadbolt.clawhard.com/mcp

### What are the best alternatives to Deadbolt?

The closest alternatives to Deadbolt 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/deadbolt
