プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Supabase Rls Check

作者:Tthanh2k6バージョン 0.6.3i★ 0iパソコンで動くリポジトリ ↗
レジストリ名io.github.Tthanh2k6/supabase-rls-check

インストール方法

What it does

Read-only Supabase RLS checks: explain rules, analyze/diff SQL exports, scan public env vars.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category データベース・データセット

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6291 個の skill

Skill · 手順書

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6021 個の skill

Skill · 手順書

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

作者:gosom★ 8,2091 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Supabase Rls Check をインストールして。https://mcp.popnx.com/i/tthanh2k6-supabase-rls-check.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Supabase Rls Check を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "supabase-rls-check": { "command": "uvx", "args": [ "supabase-rls-check", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Supabase Rls Check のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "supabase-rls-check": {
          "command": "uvx",
          "args": [
            "supabase-rls-check",
            "mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Supabase Rls Check を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Supabase Rls Check を使っていると言うか、回答に Supabase Rls Check のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Supabase Rls Check につなげません

Supabase Rls Check はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Supabase Rls Check につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · データベース・データセット の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Supabase Rls Check を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user supabase-rls-check -- uvx supabase-rls-check mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Supabase Rls Check のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user supabase-rls-check -- uvx supabase-rls-check mcp
  4. Claude Code で /mcp と入力

    Supabase Rls Check が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Supabase Rls Check を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Supabase Rls Check を使っていると言うか、回答に Supabase Rls Check のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Supabase Rls Check を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "supabase-rls-check": { "command": "uvx", "args": [ "supabase-rls-check", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Supabase Rls Check のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Supabase Rls Check を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Supabase Rls Check を使っていると言うか、回答に Supabase Rls Check のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Supabase Rls Check を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "supabase-rls-check": { "type": "stdio", "command": "uvx", "args": [ "supabase-rls-check", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Supabase Rls Check のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Supabase Rls Check を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Supabase Rls Check を使っていると言うか、回答に Supabase Rls Check のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Supabase Rls Check を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user supabase-rls-check -- uvx supabase-rls-check mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "supabase-rls-check": {
      "command": "uvx",
      "args": [
        "supabase-rls-check",
        "mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "supabase-rls-check": {
      "command": "uvx",
      "args": [
        "supabase-rls-check",
        "mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "supabase-rls-check": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "supabase-rls-check",
        "mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
267/週
接続方法
パソコンで動く
最新バージョンi
0.6.3
レジストリ公開日i
2026年11月13日
コードの最終更新i
2026年11月16日
作者
Tthanh2k6
パッケージ
pypi: supabase-rls-check
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月18日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Tthanh2k6 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:一昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に supabase-rls-check@0.6.3 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月16日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/tthanh2k6-supabase-rls-check.svg)](https://mcp.popnx.com/en/servers/tthanh2k6-supabase-rls-check)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

データベース・データセットのほかのサーバーとの比較i

  • このカテゴリのほかの1233件のうち0%よりスターが多い
  • このカテゴリのほかの1233件のうち88%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1233件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Supabase Rls Checkは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は一昨日、最新バージョン(0.6.3)がレジストリに届いたのは5 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Supabase

MCP server for interacting with the Supabase platform

作者:supabase広く使われている↓ 24.6万/週★ 3018 リポジトリ全体のスター今日更新

パソコンでもクラウドでも✓ 提供元 · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

作者:neondatabase成長中★ 66612 日前更新

クラウドで動く✓ 提供元 · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

作者:dbcodeio初期↓ 118/週★ 367 リポジトリ全体のスター2 か月前更新

パソコンで動く✓ 提供元 · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

作者:keboola成長中↓ 1421/週★ 84一昨日更新

パソコンでもクラウドでも✓ 提供元 · keboola.com
似たものと比べる
これ
Supabase Rls Check
QueryWeaverSupabaseNeonDBCodeKeboola MCP
動く場所パソコンにインストールが必要パソコンにインストールが必要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要パソコンにインストールが必要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえはいいいえいいえいいえ
Claude で + から追加いいえいいえはいはいいいえいいえ
基本チェック3/33/35/55/52/35/5
ライセンスMITAGPL-3.0Apache-2.0MITNOASSERTIONMIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

supabase-rls-check

A command-line tool that reads PostgreSQL catalog metadata from a Supabase project and flags Row Level Security (RLS) mistakes: tables without RLS, USING (true) policies, SECURITY DEFINER functions callable by anon, public Storage buckets and 13 other patterns. It also scans a local app folder for leaked service_role keys. It never needs a database password or a service_role key, and it never reads table rows. It also ships as an MCP server and a GitHub Action. Python 3.11+, PostgreSQL 15+.

It is for people who ship a Supabase app with the anon key in the browser and want to check what that key can reach. It is a review aid, not a penetration test (see Limitations).

pipx install supabase-rls-check      # or: uvx supabase-rls-check --help

supabase-rls-check report --from demo/todo_ai.csv --out-dir demo --project "todo-ai (fictional demo)" --i-own-this-project

The second command runs on the fictional dataset in demo/todo_ai.csv:

rule,schema_name,object_name,policy_name

rls_disabled,public,todos, policy_true,public,profiles,read_every_profile public_bucket,storage,todo-attachments,

It writes demo/report.md, demo/report.html and demo/fix.sql. The Markdown report contains this table:

SeverityFinding / objectEvidence
HighUnconditional policy expression: public.profilespolicy_true: read_every_profile
HighRow security is disabled: public.todosrls_disabled
MediumStorage bucket is public: storage.todo-attachmentspublic_bucket

fix.sql is a review template that starts with BEGIN; and ends with ROLLBACK;. It enables RLS on profiles and todos and leaves a commented example policy for you to adapt.

Install

pipx install supabase-rls-check

pipx install "supabase-rls-check[mcp]" # adds the MCP server (mcp>=1.10) pip install -e ".[dev]" # from a source checkout

Usage

1. Export catalog metadata with check.sql
supabase-rls-check sql --print-sql > check.sql

Paste check.sql into the Supabase SQL Editor, adjust the sensitive-table name pattern if needed, run it, and export the single result set as CSV or JSON (columns rule,schema_name,object_name,policy_name,basis). The query reads catalogs only, never application rows. The query file is also at src/supabase_rls_check/sql/check.sql.

Validate and normalize the export:

supabase-rls-check sql --from export.csv --out sql_results.json --i-own-this-project
2. Optional: check anonymous read access with probe

probe asks your project, with the public key only, which tables an unauthenticated visitor can read. With --site it also looks for a service_role JWT in your frontend.

supabase-rls-check probe \

--url https://YOUR_PROJECT.supabase.co \ --anon-key YOUR_ANON_OR_PUBLISHABLE_KEY \ --site https://your-app.example \ --out probe_results.json \ --i-own-this-project

  • Pass the project origin to --url, not /rest/v1/.
  • Only anon JWTs and sb_publishable_ keys are accepted. service_role and authenticated tokens are rejected before any request is sent.
  • If OpenAPI discovery is off on PostgREST, name the tables yourself with --tables todos profiles.
  • Set SUPABASE_ANON_KEY instead of --anon-key to keep the key out of shell history.

It adds two findings: anon_readable (High; column names and visible row count only) and service_role_exposed (Critical; a JWT with role = "service_role" found in the page HTML or a same-origin script).

3. Build the report
supabase-rls-check report \

--from sql_results.json probe_results.json \ --out-dir review_out \ --project "My Supabase App" \ --i-own-this-project

Output in review_out/:

  • report.html: standalone, works offline, A4 landscape print stylesheet for Save as PDF.
  • report.md: summary for issues or pull requests.
  • fix.sql: commented review template wrapped in BEGIN; ... ROLLBACK;. The tool never runs it. Replace user_id with your ownership column and test on staging first.

Add --lang vi for Vietnamese text. A Vietnamese demo is in demo/vi/report.md.

Scan your app folder for leaked secrets

scan-env reads local files only, needs no network and no consent flag, and masks every secret it prints (first 6 characters, then …, then last 4).

supabase-rls-check scan-env . --out envscan.json

supabase-rls-check report --from sql_results.json envscan.json --out-dir review_out --project "My Supabase App" --i-own-this-project

It reads .env, .env.*, app.json, app.config.*, eas.json, AI agent and MCP config files (.claude/settings.json, .claude/settings.local.json, .cursor/mcp.json, .mcp.json, .vscode/mcp.json) and client source files (*.js, *.jsx, *.ts, *.tsx, *.mjs, *.cjs, *.vue, *.svelte). It skips node_modules, .git, virtualenvs, build output (dist, build, web-build, android/app/build, ios/build, ios/Pods), binary files and files over 2 MB.

It reports:

  • public_env_service_role (Critical) and public_env_secret_key (High): secrets in variables that get bundled into the client (EXPO_PUBLIC_, NEXT_PUBLIC_, VITE_, REACT_APP_, PUBLIC_, NUXT_PUBLIC_).
  • service_role_in_client_code and db_url_in_client_code (both Critical): service_role JWTs, sb_secret_ keys or Postgres URLs with a password in client files. supabase/functions/, server/, api/, scripts/ and backend/ are excluded.
  • agent_config_secret (Critical): the same secrets in agent or MCP config files, reported with the file path and, for valid JSON, the key path.

The anon JWT and sb_publishable_ keys belong in a client app and are never reported. Matching is line by line, so obfuscated, split or encoded keys can be missed.

Explain a rule, run the MCP server
supabase-rls-check explain rls_disabled

supabase-rls-check explain definer_anon_exec supabase-rls-check mcp # needs the [mcp] extra; stdio transport

The MCP server has four local, read-only tools: analyze_sql_export(path), explain_rule(rule), scan_public_env(path) and diff_results(old_path, new_path). probe is not exposed, so an AI client never handles your API key or makes HTTP requests through this tool.

Compare two runs with diff
supabase-rls-check diff \

--old baseline_results.json \ --new sql_results.json \ --out diff.json \ --fail-on-new high

diff lists findings that are new or resolved between two local CSV or JSON files. With --fail-on-new (critical, high, medium or low) it exits 1 when a new finding at or above that severity appears. A finding is keyed by (rule, schema_name, object_name, policy_name, basis). basis says why a heuristic rule fired, for example table name matches pattern 'payment' or table comment tag 'pii'. Adding a pii comment to a table therefore shows up as a new finding, and the earlier pattern-based one as resolved. JSON files without a basis key still load, with basis set to "".

One consequence: a baseline exported before 0.6.1 lists an extension-owned table with an empty basis. The first diff against it reports that table as new (with owned by extension ) and the old entry as resolved, so --fail-on-new high exits 1 once. Export the baseline again with 0.6.1 or later to clear it.

GitHub Action

The repository is a composite action. It runs check.sql with psql inside a default_transaction_read_only session, writes report.md, report.html and fix.sql, adds a summary table to the job page, and fails the job when a finding is at or above fail-on. Unlike the flow above, it needs a Postgres connection string. Store it as a repository secret and point it at staging or a read-only role. The action refuses to run unless i-own-this-project is "true". Outputs: findings (total) and failing (at or above fail-on).

name: RLS check

on: [pull_request] jobs: rls: runs-on: ubuntu-latest steps:

  • uses: Tthanh2k6/supabase-rls-check@main with: database-url: ${{ secrets.STAGING_DATABASE_URL }} i-own-this-project: "true" fail-on: High # Critical, High, Medium, Low or none
  • uses: actions/upload-artifact@v4 if: always() with: name: rls-report path: rls-report/

To catch schema drift outside pull requests, run check.sql on a schedule and diff it against a baseline, for example .rls-baseline.json committed to the repository:

name: RLS drift check

on: pull_request: schedule:

  • cron: "0 6 * * *"

jobs: drift: runs-on: ubuntu-latest steps:

  • uses: actions/checkout@v4
  • uses: actions/setup-python@v5 with: python-version: "3.12"
  • name: Run check.sql and diff against baseline env: DATABASE_URL: ${{ secrets.STAGING_DATABASE_URL }} run: | python -m pip install supabase-rls-check supabase-rls-check sql --print-sql > check.sql PGOPTIONS='-c default_transaction_read_only=on' \ psql "$DATABASE_URL" -v ON_ERROR_STOP=1 --csv -f check.sql > current.csv supabase-rls-check sql --from current.csv --out current.json --i-own-this-project supabase-rls-check diff \ --old .rls-baseline.json \ --new current.json \ --out diff.json \ --fail-on-new high
  • uses: actions/upload-artifact@v4 if: always() with: name: rls-diff path: | current.json diff.json

Rules

check.sql has 17 rules. It queries PostgreSQL 15+ system catalogs and storage.buckets in one read-only query. The table also lists two scan-env rules that read local files.

Rule IDSeverityWhat it flags
rls_disabledHighTable or partitioned table in public with RLS off. If an extension owns the table (for example PostGIS spatial_ref_sys), it is still reported with basis = owned by extension , and fix.sql suggests moving the extension to an extensions schema, because ENABLE ROW LEVEL SECURITY fails there with "must be owner" (see supabase/supabase discussion #52767). Detection uses pg_depend (deptype = 'e') and covers direct extension members only. Some extensions cannot be relocated, so check first.
policy_trueHighPolicy in public with USING (true) or WITH CHECK (true).
policy_true_writableCriticalPermissive UPDATE, DELETE or ALL policy for anon, authenticated or public with USING (true), on a table where anon or authenticated holds UPDATE or DELETE. Anyone with that role can change or delete every row.
sensitive_anon_policyHighPolicy granted to anon or public on a table whose name matches user, profile, order, payment, invoice, customer, patient, secret, token or document, or that has a pii table comment. basis records which one matched.
definer_anon_execHighNon-trigger SECURITY DEFINER function in public that anon can execute (callable at /rest/v1/rpc/*).
definer_search_pathHighSECURITY DEFINER function in public with no fixed search_path.
view_not_invokerHighView in public without security_invoker, so it runs with the owner's privileges.
public_bucketMediumStorage bucket with public = true.
public_bucket_listableMedium

冒頭だけを表示しています。続きはリポジトリで読めます