Supabase MCP Server πŸš€

by Quegenx

12 197 downloads Not rated yet

About

# Supabase MCP Server πŸš€ [![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) [![Supabase](https://img.shields.io/badge/Supabase-3ECF8E?style=for-the-badge&logo=supabase&logoColor=white)](https://supabase.com/)…

Explore

- Policies: list_realtime_policies, create_realtime_policy, update_realtime_policy, delete_realtime_policy
- Channels: list_realtime_channels, manage_realtime_channels, send_realtime_message, get_realtime_messages
- Management: manage_realtime_status, manage_realtime_views

- Node.js >= 16.x
- npm >= 8.x
- A Supabase project with:
- Project ID
- Database password
- PostgreSQL connection string
- Cursor IDE or Codeium's Cascade (for paying users)


npm install

1. Install dependencies and build the project:

bash
npm install
npm run build

2. In Cursor's MCP settings, add the server with this command:
bash
/opt/homebrew/bin/node /path/to/dist/index.js postgresql://postgres.[PROJECT-ID]:[PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:5432/postgres
``

Replace:
-
/path/to/dist/index.js with your actual path
-
[PROJECT-ID] with your Supabase project ID
-
[PASSWORD]` with your database password

Note: Keep your database credentials secure and never commit them to version control.

Once configured, the MCP server provides all database management tools through Cursor's Composer. Simply describe what you want to do with your database, and the AI will use the appropriate commands.

Examples:
- πŸ“‹ "Show me all tables in my database"
- βž• "Create a new users table with id, name, and email columns"
- πŸ” "Add an index on the email column of the users table"

The Composer Agent will automatically detect and use relevant tools when you describe your database tasks. For example:

- "List all tables in my database"
- "Create a new users table"
- "Add an index to the email column"

When the agent uses a tool, you'll see:
1. A prompt to approve/deny the tool call
2. The tool call arguments (expandable)
3. The response after approval

Note: For stdio servers like this one, the command should be a valid shell command. If you need environment variables, consider using a wrapper script.

TypeScript
Supabase
PostgreSQL
Node.js
MCP
Windsurf

> πŸ”₯ A powerful Model Context Protocol (MCP) server that provides full administrative control over your Supabase PostgreSQL database through both Cursor's Composer and Codeium's Cascade. This tool enables seamless database management with comprehensive features for table operations, record management, schema modifications, and more.

<div align="center">
Supabase
</div>

πŸ“š Table of Contents

- Prerequisites - Quick Start - Integrations - Features - Usage - Security Notes - Troubleshooting - Contributing - License

πŸ”§ Prerequisites

- Node.js >= 16.x
- npm >= 8.x
- A Supabase project with:
- Project ID
- Database password
- PostgreSQL connection string
- Cursor IDE or Codeium's Cascade (for paying users)

πŸš€ Quick Start

πŸ“₯ Installation

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.