# Supabase MCP for Claude

> Lets Claude manage and query your Supabase database for you.

- **What it does:** Lets Claude work directly with your Supabase database, so it can create tables, read your project settings and look up data without you opening the dashboard. Since it touches your real database, read the security advice before using it.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_885430f427a8834015830bf5`
- **Creator:** @orbit.builders on Instagram
- **Safety:** Checked by Orbit: use with care. LLM gets write access to real database; docs warn of security risks.
- **Last updated:** 2026-11-25
- **Page:** https://orbitinbox.app/s/supabase-mcp-for-claude

## Skill

---
name: supabase-mcp-server
description: Use when you want Claude to manage your Supabase tables, fetch config and query data without opening the dashboard; it connects your Supabase project to Claude through Supabase's official MCP server.
---

# Supabase MCP for Claude

## What it does
This is Supabase's official MCP (Model Context Protocol) server. It connects your Supabase project to Claude and other AI assistants (Cursor, Windsurf, etc.) so they can manage tables, fetch project config, and query data directly, without you opening the Supabase dashboard. The repo also ships a second server, `@supabase/mcp-server-postgrest`, which lets your own app's users connect to your REST API through MCP. The hosted endpoint is `https://mcp.supabase.com/mcp`; there are also limited-tool versions for local Supabase CLI and self-hosted Supabase.

## What you need
- A Supabase account and project.
- An MCP-capable AI assistant (the source lists Claude, Cursor, Windsurf).
- For local development: Supabase CLI (optional, limited tool set, no OAuth 2.1).
- For self-hosting the MCP endpoint: self-hosted Supabase (Docker) and a Node.js environment to run the `@supabase/mcp-server-supabase` package.
- You will be prompted to log in to Supabase during setup and must choose the organization that owns the project you want to connect.

## Setup

1. Before connecting, read Supabase's security best practices for this MCP server (connecting an LLM to your database has real risk):
   https://supabase.com/docs/guides/ai-tools/mcp#security-risks

2. Add the MCP server to your client's config. The source gives this configuration:

```json
{
  "mcpServers": {
    "supabase": {
      "type": "http",
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}
```

   For Claude Code, you can register the same server with:

```
claude mcp add --transport http supabase https://mcp.supabase.com/mcp
```

   If your client isn't listed in Supabase's setup docs, copy the JSON above into whatever format your client expects (JSON, YAML, etc.):
   https://supabase.com/docs/guides/getting-started/mcp#step-2-configure-your-ai-tool

3. The source shows that MCP URLs can be scoped to a project and restricted to read-only, combined with feature groups, for example:

```
https://mcp.supabase.com/mcp?project_ref=<project-ref>&read_only=true&features=database,docs
```

4. Local Supabase CLI users can reach a limited version of the server at:

```
http://localhost:54321/mcp
```

5. Self-hosted Supabase users should follow:
   https://supabase.com/docs/guides/self-hosting/enable-mcp

6. You can also generate a custom MCP URL (with project and feature options) from the MCP connection tab in your Supabase dashboard:
   https://supabase.com/dashboard/project/_?showConnect=true&connectTab=mcp

This tool can read and modify data in your Supabase project. Only connect it to projects you own or are authorized to manage, and use the read-only option while you get familiar with it.

## How to use it with Claude
- "List the tables in my Supabase project."
- "Fetch the config for this Supabase project."
- "Query the users table and show me the first 20 rows."
- "Show me the full list of available Supabase MCP tools." (see https://supabase.com/mcp#available-tools)
- "Set up the PostgREST MCP server so my app's users can connect to my REST API."

## Credits
Made by supabase (Supabase MCP Server), packaged by Orbit.
https://github.com/supabase/mcp — license: Apache-2.0

Shared by @orbit.builders, credited on Orbit.