Supabase Security
FreeMaintainedMCP server that lets AI coding agents (Claude Code, Cursor, Cline) audit Supabase projects for security misconfigurations AND apply the fixes — without leaving
About
MCP server that lets AI coding agents (Claude Code, Cursor, Cline) audit Supabase projects for security misconfigurations AND apply the fixes — without leaving the agent. Tools: audit_project, list_findings, preview_fix (BEGIN/ROLLBACK safety), apply_fix (with confirmation), apply_all_fixes (transactional bulk). Closes the audit-fix loop entirely in the agent — other Supabase scanners only report.
README
The only Supabase security tool that closes the loop in your AI agent. Audit, preview the fix, and apply it — without leaving Claude / Cursor / Cline.
You: audit my supabase project rkmrsefraqssuyuniyco
Claude: Found 17 critical leaks. Want me to apply all SQL fixes?
Run preview_fix on each first?
You: preview them all, then apply if safe.
Claude: [previews each]
All 17 fixes preview cleanly. Applying...
Done. Re-audited: 0 critical findings remaining.
Other Supabase scanners (SupaExplorer, AuditYourApp, Vibe App Scanner) report. None of them remediate. This one does.
Tools
| Tool | What it does |
|---|---|
audit_project |
Scan a project. Returns JSON findings. Caches for follow-up tools. |
list_findings |
List cached findings, optionally filter by severity. |
preview_fix |
Wrap the fix SQL in BEGIN; ... ROLLBACK; and verify it would run. Safe. |
apply_fix |
Actually apply one finding's fix. Requires confirm: true. Re-audits to verify. |
apply_all_fixes |
Bulk-apply at or above a severity. Single transaction — all or nothing. |
Install
Claude Desktop / Claude Code
Add to your MCP config (~/.claude.json or claude_desktop_config.json):
{
"mcpServers": {
"supabase-security": {
"command": "npx",
"args": ["-y", "@perufitlife/supabase-security-mcp@latest"],
"env": {
"SUPABASE_ACCESS_TOKEN": "sbp_your_personal_access_token"
}
}
}
}
Get a token at https://supabase.com/dashboard/account/tokens (read+write to your projects).
Cursor
Settings → MCP → Add new MCP server → paste the same JSON object as above.
Cline / Continue / etc.
Anything that supports MCP stdio servers will work — point it at npx -y @perufitlife/supabase-security-mcp@latest with the env var set.
Safety model
- Never auto-applies. Every
apply_fixandapply_all_fixescall requiresconfirm: true. - Preview before apply.
preview_fixruns the SQL insideBEGIN; ... ROLLBACK;so you see if it would error before touching state. - All-or-nothing bulk apply.
apply_all_fixesruns everything in a single transaction. If any statement fails, the entire change rolls back. - Re-audit after apply. Every
apply_fixre-runs the audit and reports whether the finding is actually gone — protects against fix-that-doesn't-fix. - Read-only by default for
audit_project. Token can be a read-only PAT if you only want to scan, never remediate. (Forapply_fix, you need write access.)
What it scans
Inherits all checks from supabase-security-skill:
- Tables with RLS disabled and direct anon grants
SECURITY DEFINERfunctions executable by anon- Public storage buckets
- Default privileges still granting CRUD to anon
- Auth signups with autoconfirm enabled
- Defense-in-depth: RLS-locked tables with stale anon grants
Why MCP and not just a CLI
CLIs are great. They're not in your AI agent's context. When you're vibing with Claude in your IDE, asking "is my supabase tight?" should get an actual scan, not a "you should run this command on your laptop."
The flow this enables:
- "Add a
subscriptionstable to my schema." → agent does it - "Now scan for security issues." → agent calls
audit_project - Agent notices the new table has no RLS.
- "Want to fix?" →
preview_fix, thenapply_fixafter you say yes.
That round-trip is the actual product. The audit is just step 2.
Roadmap
- Cron job audit (
pg_cron) - Edge function secrets scan
- Storage object-level RLS scan
- HTML report generation as a tool (returns base64 + filename)
- CORS configuration check
License
MIT.
Install Supabase Security in Claude Desktop, Claude Code & Cursor
unyly install supabase-security-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add supabase-security-mcp --env SUPABASE_ACCESS_TOKEN="" -- npx -y @perufitlife/supabase-security-mcpStep-by-step: how to install Supabase Security
FAQ
Is Supabase Security MCP free?
Yes, Supabase Security MCP is free — one-click install via Unyly at no cost.
Does Supabase Security need an API key?
Yes, it requires environment variables: SUPABASE_ACCESS_TOKEN. Unyly injects them into the config during install.
Is Supabase Security hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Supabase Security in Claude Desktop, Claude Code or Cursor?
Open Supabase Security on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Supabase Security with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
