Supabase MCP Server

Enables Cursor and Windsurf to manage Supabase databases and execute SQL queries safely.

Local serverstdioPython★ 10

What is the Supabase MCP Server?

Enables Cursor and Windsurf to manage Supabase databases and execute SQL queries safely.

The short version

  • Functionality — Enables operations not possible with SQL alone (invites, magic links, MFA)
  • Accuracy — More reliable then creating and executing raw SQL queries on auth schemas
  • Simplicity — Offers clear methods with proper validation and error handling
  • Response format:
  • All methods return structured Python objects instead of raw dictionaries
  • Object attributes can be accessed using dot notation (e.g., user.id instead of user["id"])

What it needs from you

Installing the server requires the following on your system: - Python 3.12+ - PostgresSQL 16+ If you plan to install via uv, ensure it's installed.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_user_by_idRetrieve a user by their ID
list_usersList all users with pagination
create_userCreate a new user
delete_userDelete a user by their ID
invite_user_by_emailSend an invite link to a user's email
generate_linkGenerate an email link for various authentication purposes
update_user_by_idUpdate user attributes by ID
delete_factorDelete a factor on a user (currently not implemented in SDK)

Configuration

Installing the server requires the following on your system: - Python 3.12+ - PostgresSQL 16+ If you plan to install via uv, ensure it's installed.

VariableDescriptionRequired
SUPABASE_PROJECT_REFConfiguration value read at startup.Optional
SUPABASE_DB_PASSWORDConfiguration value read at startup.Optional
SUPABASE_REGIONConfiguration value read at startup.Optional
SUPABASE_ACCESS_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use Supabase to get user by id.”
  • “Use Supabase to list users.”
  • “Use Supabase to create user.”

Frequently asked questions

The server is compatible with Cursor, Windsurf, Cline and any other Model Context Protocol (MCP) client that supports the `stdio` protocol.