Back
Marketplace/Supabase

TL;DR

Supabase is a Databases MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent database, auth, storage via Supabase. Install in 1 minute with mcpizy install supabase-mcp.

⚡

Supabase

Verified 10 tools Supports hosted execution →

Databases

Last updated May 30, 2026 · By MCPizy team

Database, auth, storage via Supabase

Official homepage

Run Supabase without any local install

Connect your Supabase account once — MCPizy stores the credentials encrypted and uses them whenever you run a recipe in managed mode.

Checking connection…

Install Supabase

Via MCPizy CLI (recommended):
mcpizy install supabase-mcp
Or run directly:
npx -y supabase-mcp
View on GitHub

Tools exposed

10 tools available
list_tables

List all tables in one or more schemas of the project

Inputs

  • schemasstring[]optional
list_extensions

List all Postgres extensions installed in the database

list_migrations

List all migrations applied to the project

apply_migration

Apply a SQL migration (DDL). Use this for schema changes

Inputs

  • namestringrequired
  • querystringrequired
execute_sql

Execute raw SQL (DML/queries)

Inputs

  • querystringrequired
get_logs

Fetch logs for a service (api, postgres, auth, storage, realtime)

Inputs

  • servicestringrequired
get_advisors

Get security and performance advisors for the project

Inputs

  • typestringrequired
list_edge_functions

List all Edge Functions in the project

deploy_edge_function

Deploy a new or updated Edge Function

Inputs

  • namestringrequired
  • filesobject[]required
generate_typescript_types

Generate TypeScript types from the current schema

Configuration

Works identically across clients. Only the config file path differs.

Claude Code~/.claude.json
{
  "mcpServers": {
    "supabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--access-token",
        "${SUPABASE_ACCESS_TOKEN}"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_..."
      }
    }
  }
}
Cursor.cursor/mcp.json
{
  "mcpServers": {
    "supabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--access-token",
        "${SUPABASE_ACCESS_TOKEN}"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_..."
      }
    }
  }
}
Windsurf~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "supabase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "--access-token",
        "${SUPABASE_ACCESS_TOKEN}"
      ],
      "env": {
        "SUPABASE_ACCESS_TOKEN": "sbp_..."
      }
    }
  }
}

Authentication setup

  1. 1

    Create a personal access token

    Get it SUPABASE_ACCESS_TOKEN
  2. 2

    Copy your project ref from the project settings page

    Get it SUPABASE_PROJECT_REF

What you can do with Supabase MCP

Paste any of these prompts into Claude Code, Cursor or another MCP-compatible client.

“List every table in the public schema and summarise the columns of `users`”

Uses: list_tables

“Create a new `invoices` table with columns id, user_id, amount, status — generate the migration”

Uses: apply_migration

“Run `SELECT COUNT(*) FROM auth.users` and show me the result”

Uses: execute_sql

“Deploy an Edge Function named `hello` that returns `Hello, world`”

Uses: deploy_edge_function

“Audit my database for security issues and generate fresh TypeScript types”

Uses: get_advisors, generate_typescript_types

Why Supabase MCP matters

Supabase MCP turns the Supabase dashboard into an agent-callable surface. Instead of clicking through the SQL editor or copying schemas into prompts, your AI runs `list_tables`, `apply_migration`, `execute_sql`, `deploy_edge_function` directly — same primitives, same auth model. The server uses a personal access token (not a project anon key), which means anything you can do as the project owner, the agent can do too. That power is the point and the risk.

We use Supabase MCP for three things daily. First, schema reconciliation: "look at my Postgres schema, compare to the Prisma model in `/db/schema.prisma`, and generate the migration." The agent reads both, drafts the SQL, and applies it after we approve. Second, on-call: "logs from the auth service in the last hour — anything 5xx?" The agent calls `get_logs` and `get_advisors` and surfaces the actual rows. Third, type generation: `generate_typescript_types` regenerates the `Database` type after every migration so the front-end stays in sync.

The honest comparison: Supabase MCP is far more capable than the bare Postgres MCP because it covers the whole platform (auth, storage, realtime, edge functions, advisors). If you're only using Postgres, the lower-surface postgres MCP is faster and has a smaller blast radius. If you're using Supabase end-to-end and want one tool that mirrors the dashboard, this is the right server. Token cost on schema operations is moderate (~1-3k tokens per table inspected); migration generation can spike to 5-10k on complex schemas.

Common pitfalls

The personal access token has full project rights — there is no read-only mode. Treat the MCP exactly like giving someone your Supabase dashboard password. For production, scope a separate project for the agent or run in a managed sandbox.

`apply_migration` and `execute_sql` are different code paths: migrations get versioned and tracked; raw SQL doesn't. If the agent runs DDL via `execute_sql`, the migration history will drift and `db diff` will misbehave. Tell the agent explicitly which to use.

Edge Function deploys via MCP skip the local CLI's import map resolution. If your function imports relative URLs or non-jsr deps, deploy will silently strip them. Test with `supabase functions serve` first, then deploy via MCP.

The advisor tool returns warnings as JSON — agents tend to flag every advisor item as critical. Ask for explicit severity filtering ("only show ERROR-level advisors") to avoid noise.

How Supabase MCP compares

Honest pros/cons against the closest databases MCP servers.

ServerStrengthsTrade-offs
Postgres MCPSmaller blast radius, faster, works with any PostgresNo auth/storage/edge-functions — only DB
Neon MCPBranching primitives (database branches), serverless PostgresNo auth/storage layers — pure DB platform
PlanetScale MCPMySQL with branching, schema diff workflowMySQL only, no row-level security primitive

Works with

Claude Code
Claude Desktop
Cursor
Windsurf
VS Code + Copilot
Any MCP Client

More Databases MCPs

⚡

DynamoDB

AWS DynamoDB NoSQL database operations

🐬

MariaDB

MariaDB relational database server

🪳

CockroachDB

Distributed SQL database for cloud apps

🗃️

SQLite

Local SQLite database access and management

Alternatives to Supabase

If Supabase doesn't fit your stack, these Databases MCP servers solve similar problems.

🔵

Neo4j

Graph database queries

🔍

Elasticsearch

Full-text search and analytics engine

🎯

Qdrant

Vector similarity search engine

Key Takeaways

  • Supabase exposes 10 tools for databases workflows in Claude Code, Cursor and Windsurf.
  • Authentication: 2 steps (SUPABASE_ACCESS_TOKEN, SUPABASE_PROJECT_REF).
  • Install in 1 command: mcpizy install supabase-mcp — config written to your client automatically.
  • Free and open source (GitHub source linked above) — verified compatible with every MCP client (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code + Copilot).
  • Best use case: "List every table in the public schema and summarise the columns of `users`".

Frequently asked questions

What is the Supabase MCP server?

The Supabase MCP server is an Databases Model Context Protocol server that lets Claude Code, Cursor, Windsurf, VS Code with Copilot, and other MCP-compatible AI agents database, auth, storage via Supabase. It exposes Supabase's capabilities as tools the AI can call directly from your editor or CLI.

How do I install Supabase MCP with Claude Code?

The fastest way is the MCPizy CLI: run `mcpizy install supabase-mcp` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y supabase-mcp` and restarting Claude Code.

Is Supabase MCP free?

Yes. The Supabase MCP server is free and open source (see the GitHub repository linked on this page). You may still need a Supabase account or API key to connect the server to the underlying service, but the MCP layer itself has no MCPizy subscription cost.

Does Supabase MCP work with Cursor and Windsurf?

Yes. Any MCP-compatible client works — including Claude Code, Claude Desktop, Cursor (via `.cursor/mcp.json`), Windsurf, VS Code with Copilot Chat, and custom agents built on the MCP SDK. The same install command targets all of them; only the config file path differs.

What can I do with Supabase MCP?

Once installed, your AI agent can database, auth, storage via Supabase directly inside your conversation. Typical use cases include asking Claude Code or Cursor to run Supabase operations, inspect results, chain Supabase with other MCP servers (see our Workflow Recipes), and automate repetitive databases tasks without leaving your editor.

Manage all your MCPs in one place

Monitor usage, track costs, and discover new MCPs.

Get Started Free