Skip to main content
Glama

Server Details

Check Supabase SQL for who can read and write each table: RLS gaps, open policies, grants, fix SQL.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A4.5/5.0

Scored across 2 tools

Disambiguation5/5

The two tools are a clean pipeline: one emits a read-only catalog SQL query, the other analyzes migration SQL or that catalog JSON. Their triggers (live project vs. migration SQL) are explicitly distinguished, so an agent can pick correctly with no overlap.

Naming Consistency4/5

Both names share the `deadbolt_` prefix and snake_case convention, which makes them obviously a matched pair. Minor deviation: `catalog_query` is a noun phrase while `check_supabase_access` is verb-led, but the grouping is still readable.

Tool Count4/5

Two tools is thin in absolute terms, but they form a deliberate inspect-then-analyze workflow for a narrow security-audit purpose, so neither is padding. Slightly under-scoped only because a lot of capability is packed into a single analysis tool.

Completeness4/5

Coverage of the stated domain is strong: both the live-database state and migration-file paths are handled, and the analysis returns findings plus ready-to-run fix SQL, which closes the loop. Gaps are minor — no dedicated tool for verifying post-fix state or for exporting a standalone report, though replaying the SQL effectively serves verification.

Available Tools

2 tools
deadbolt_catalog_queryGet the read-only SQL that snapshots a live Supabase database for DeadboltA
Read-onlyIdempotent
Inspect

Use when you need to check a live Supabase project rather than migration files: returns a read-only SQL query that reads table RLS settings, grants for anon and authenticated, policies, SECURITY DEFINER functions and storage buckets (never row data) and returns one JSON value. Run it with the user's Supabase SQL Editor or a Supabase MCP execute_sql tool, then pass the JSON to deadbolt_check_supabase_access.

Inputs: no named parameters.

deadbolt_check_supabase_accessCheck who can read and write Supabase tables (RLS, policies, grants)A
Read-onlyIdempotent
Inspect

Use when you write, review or are about to apply Supabase / PostgreSQL migration SQL (CREATE TABLE, RLS, CREATE POLICY, GRANT, views, SECURITY DEFINER functions, storage buckets), or when a user asks whether their Supabase data is exposed, whether RLS is set up right, or why a query returns 42501 permission denied or no rows. Replays the SQL with real Postgres rules and returns, per table, what signed-out (anon) and signed-in (authenticated) users can SELECT/INSERT/UPDATE/DELETE (all rows, own rows, some rows, none, or denied for a missing grant), plus findings with severity and ready-to-run fix SQL: RLS off, policies written but RLS never enabled, using(true) writes, personal columns readable by anyone, views that bypass RLS, SECURITY DEFINER functions anyone can call, user_metadata in policies, public bucket listing, grants missing after the Oct 30 2026 default change. Also accepts the JSON produced by deadbolt_catalog_query for the live database. Deterministic; never connects to any database. Up to 200,000 characters.

Inputs: sql (required), project_created_before_2026_10_30.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Read-only Supabase Row Level Security review. Analyzes an exported catalog query (no keys needed) for RLS turned off, policies that are just true, anon-callable SECURITY DEFINER functions, views exposing auth.users, public Storage buckets and more, and explains each rule.
      5
      192 PyPI
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Audits PostgreSQL/Supabase schemas for security issues like missing RLS, permissive policies, and sensitive data exposure during AI conversations.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents to audit Supabase or Postgres databases for Row Level Security and multi-tenant isolation holes, reading tables, grants, policies and functions for static findings and optionally probing those policies inside a rolled-back transaction. It reports each hole with an explanation and a fix, so an agent can verify the migrations it just wrote before declaring them done.
      1
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources