Skip to content

Summary

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

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

MCP: DBHub

by Bytebase

Featured

A universal database MCP server — one integration for PostgreSQL, MySQL, SQL Server, SQLite, and MariaDB.

MCP: PlanetScale

by PlanetScale

PlanetScale's official hosted MCP server — browse organizations, databases and branches, read schema, run guarded SQL, and pull Insights and schema recommendations.

MCP: PostgreSQL

by Model Context Protocol

Read-only PostgreSQL access with automatic schema inspection — the reference MCP server for Postgres.

Browse all MCP servers →