---
title: "Supabase MCP server – install in Claude Desktop and Cursor"
summary: "Supabase's official MCP server that lets an agent inspect schemas, run read queries, and reason about your Postgres database."
canonical: https://unlocksaas.com/mcp-tools/supabase
updated: 2026-05-22
publisher: "Unlock SaaS"
author: "Maryan"
license: All rights reserved. Quotation with attribution permitted.
---

# Supabase MCP server

> Supabase's official MCP server that lets an agent inspect schemas, run read queries, and reason about your Postgres database.

- Vendor: Supabase
- Vendor URL: https://supabase.com/docs
- Category: Indie SaaS infrastructure
- Distribution: npm package (runs locally)
- Install handle: @supabase/mcp-server-supabase
- Official: yes
- Access: Requires a Supabase access token. Scope the token to read-only when possible.

## TL;DR

Supabase's official MCP server gives the assistant a structured view into a Supabase project. Schema introspection, project metadata, and scoped query access. The right server when your indie SaaS lives on Supabase and you want Claude to help you write a migration, diagnose a slow query, or design a new table without copy-pasting schema diagrams.

## Why an indie SaaS founder cares

Most post-launch pre-revenue indie SaaS founders are running Supabase. This MCP turns the assistant into a competent collaborator on your database – it can read the schema, explain a row-level-security policy, or draft a migration grounded in what your tables actually look like today.

## What an agent can do with it

- **Introspect the schema** – Read table, column, and index definitions across the project's schemas.
- **Read project metadata** – Pull project, branch, and environment metadata the agent has permission to see.
- **Run scoped queries** – Execute read queries under the access scope you configure for the server.

## Install in Claude Desktop

```json
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server-supabase"]
    }
  }
}
```

## Install in Cursor

```json
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server-supabase"]
    }
  }
}
```

## FAQ

**Can the agent destroy data?**

Only if the access token you configure grants write permissions. Scope the token narrowly and start with read-only.

**Does it work with self-hosted Supabase?**

Read the latest docs – official support targets hosted Supabase first.

Last verified: 2026-05-22.

---

Canonical URL: https://unlocksaas.com/mcp-tools/supabase
Publisher: Unlock SaaS (https://unlocksaas.com)
Contact: maryan@unlocksaas.com