supabasedatabasepostgresbackendofficial

Summary

Manage your Supabase project from an agent — run SQL, inspect tables, manage branches, and generate types.

Features

  • Run SQL and inspect tables
  • Manage migrations and branches
  • Generate TypeScript types
  • Read-only and project-scoped modes
  • Official Supabase server

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "Supabase" tools will be available.
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--read-only",
        "--project-ref=YOUR_PROJECT_REF"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "your-personal-access-token"
      }
    }
  }
}

Description

Supabase's official MCP server. It connects an agent to a Supabase project so it can query and inspect the database, manage migrations and branches, generate TypeScript types, and administer project resources. Supports a read-only mode and project scoping for safety.

Related MCP Servers

Browse all MCP servers →