Supabase MCP Server π
About
# Supabase MCP Server π [](https://www.typescriptlang.org/) [](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:
bashnpm 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.
> π₯ 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">

</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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



