Supabase Schema & Migration MCP

Inspect Postgres tables, RLS policies, and Edge Functions with zero drift

Connects AI coding assistants to Supabase projects for schema introspection, SQL validation, and security advisor checks.

Install & Client JSON Configurations

All client configuration manifests are exposed directly below without hidden tabs for zero-click copying.

CLI Install Command
npx -y @supabase/mcp-server-supabase@latest --read-only
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--read-only",
        "--project-ref=your-project-ref"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_your_token"
      }
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--read-only",
        "--project-ref=your-project-ref"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_your_token"
      }
    }
  }
}
VS Code · .vscode/mcp.json
{
  "servers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--read-only",
        "--project-ref=your-project-ref"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_your_token"
      }
    }
  }
}

Full-Stack Database Synchronization

Frontend and API routes quickly drift out of sync when database migrations change column types or RLS policies. Supabase Schema & Migration MCP exposes live table schemas, advisor security warnings, and TypeScript type generation directly inside the IDE.

Security Recommendation

  • Scope MCP usage to staging or development branches whenever testing DDL migrations.
  • Run Supabase security advisors after every new public table creation.

Alternative Servers in This Category

Database MCP
Core Ecosystem

PostgreSQL Read-Only MCP

Inspect relational schemas and run safe EXPLAIN plans without mutation risk

stdioenv-connection-stringopen-source
Tool Surface5 tools
Reliability Score96 / 100
1120 tok · 14,200 starsInspect config
Database MCP
Rising Stack

SQLite Local Inspector MCP

Inspect embedded SQLite schemas and run local read-only queries fast

stdiononeopen-source
Tool Surface6 tools
Reliability Score95 / 100
980 tok · 12,100 starsInspect config
Database MCP
Long-Tail Niche

ClickHouse Analytics MCP

Columnar OLAP schema explorer and safe partition-aware analytical queries

stdiohttpapi-keyopen-source
Tool Surface8 tools
Reliability Score91 / 100
1580 tok · 1,680 starsInspect config