S

Supabase MCP

RLS-safe Postgres, storage, and auth from Supabase

Supabase·
Featured
·No reviews yet
Repo Docs
Share:

About

Read data from your Supabase project — Postgres queries via the Data API, storage buckets, and auth users — with Row Level Security applied. Give the assistant access to your database schema so it can generate accurate, RLS-aware SQL and TypeScript client code.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

query
Run a read-only SQL query
list_tables
List tables in the connected database
describe_table
Return column info for a table

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Supabase MCP.

What is the Supabase MCP and what does it do?
The Supabase MCP provides access to your Supabase project's Postgres database, storage buckets, and authentication users. It applies Row Level Security (RLS) to ensure data access is secure and controlled. It enables an assistant to generate RLS-aware SQL and TypeScript client code.
How do I configure the Supabase MCP in an MCP client like Claude Desktop?
To configure the Supabase MCP, you will typically need to provide the client with your Supabase project's API URL and anon key. These credentials allow the client to interact with your Supabase project. Consult the documentation for your specific MCP client for detailed setup instructions.
Does the Supabase MCP require an API key or other credentials?
Yes, the Supabase MCP uses OAuth for authentication. This typically involves using your Supabase project's API URL and a public (anon) API key to establish a secure connection. The underlying Supabase project's RLS policies will govern data access.
What key capabilities does the Supabase MCP expose?
The Supabase MCP exposes capabilities to query your Postgres database via the Data API, access data in storage buckets, and manage authentication users. It is designed to facilitate the generation of RLS-safe SQL and TypeScript client code, leveraging your defined database schema.
What is a realistic limitation or prerequisite for using the Supabase MCP?
A key prerequisite for using the Supabase MCP is having an existing Supabase project with a defined database schema and configured Row Level Security policies. The MCP relies on these existing configurations to ensure secure and controlled data access for the assistant.

Install Supabase MCP

Server URL

https://mcp.supabase.com/mcp

Claude Desktop

Add this to claude_desktop_config.json.

{
  "mcpServers": {
    "supabase": {
      "url": "https://mcp.supabase.com/mcp",
      "transport": "http",
      "authType": "oauth"
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "supabase": {
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "supabase": {
      "type": "http",
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.