Supabase MCP Server

Supabase MCP Server

supabase-mcp-server-quegenx•byquegenx

A Model Context Protocol server that gives AI assistants administrative control over a Supabase PostgreSQL database, covering tables, records, schema, security, storage and realtime features.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides tools for table management, including listing, creating, dropping and renaming tables, and adding, dropping or altering columns.
  • •Offers record operations to fetch, create, update and delete records.
  • •Includes tools for indexes, constraints, database functions, triggers, security policies and roles.
  • •Supports storage buckets and files, realtime policies and channels, user management and custom SQL queries.

BEST FOR

  • •Developers who want to manage their Supabase database with natural language commands inside Cursor's Composer.
  • •Users of Codeium's Cascade (Windsurf) who need database management tools available to their agent.
  • •Teams performing schema and security changes such as creating tables, indexes, functions, policies and roles.

ABOUT SUPABASE-MCP-SERVER-QUEGENX

Supabase MCP Server is cataloged as an MCP server attributed to quegenx. A Model Context Protocol server that gives AI assistants administrative control over a Supabase PostgreSQL database, covering tables, records, schema, security, storage and realtime features. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Supabase MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server execute custom SQL queries?

Yes, it includes a query tool for executing custom SQL queries.

Does it support realtime features?

Yes, it provides realtime policies, channels, and management tools.

Upstream README

View this exact version on GitHub

README.md · 1eb565e2d6aa · Fetched 2026-11-13 10:08:13 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Supabase MCP Server 🚀

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.

Supabase

📚 Table of Contents

🔧 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

# Clone the repository
git clone https://github.com/Quegenx/supabase-mcp-server.git
cd supabase-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

⚙️ Configuration

  1. Install dependencies and build the project:

    npm install
    npm run build
    
  2. In Cursor's MCP settings, add the server with this command:

    /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.

🎯 Integrations

Cursor MCP Integration

The Model Context Protocol (MCP) allows you to provide custom tools to agentic LLMs in Cursor. This server can be integrated with Cursor's Composer feature, providing direct access to all database management tools through natural language commands.

Setting up in Cursor

  1. Open Cursor Settings > Features > MCP

  2. Click the "+ Add New MCP Server" button

  3. Fill in the modal form:

    • Name: "Supabase MCP" (or any nickname you prefer)
    • Type: command (stdio transport)
    • Command: Your full command string with connection details
  4. Build the project first:

    npm install
    npm run build
    
  5. Get your Node.js path:

    # On Mac/Linux
    which node
    # On Windows
    where node
    
  6. Add the server command:

    /path/to/node /path/to/dist/index.js postgresql://postgres.[PROJECT-ID]:[PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:5432/postgres
    

    Replace:

    • /path/to/node with your actual Node.js path (from step 5)
    • /path/to/dist/index.js with your actual path to the built JavaScript file
    • [PROJECT-ID] with your Supabase project ID
    • [PASSWORD] with your database password
  7. Click "Add Server" and then click the refresh button in the top right corner

Using the Tools in Cursor

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.

Windsurf/Cascade Integration

This MCP server also supports Codeium's Cascade (Windsurf) integration. Note that this feature is currently only available for paying individual users (not available for Teams or Enterprise users).

Setting up with Cascade

  1. Create or edit ~/.codeium/windsurf/mcp_config.json:

    {
      "mcpServers": {
        "supabase-mcp": {
          "command": "/path/to/node",
          "args": [
            "/path/to/dist/index.js",
            "postgresql://postgres.[PROJECT-ID]:[PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:5432/postgres"
          ]
        }
      }
    }
    
  2. Quick access to config:

    • Find the toolbar above the Cascade input
    • Click the hammer icon
    • Click "Configure" to open mcp_config.json
  3. Replace in the configuration:

    • /path/to/node with your actual Node.js path
    • /path/to/dist/index.js with your actual path
    • [PROJECT-ID] with your Supabase project ID
    • [PASSWORD] with your database password
  4. In Cascade:

    • Click the hammer icon in the toolbar
    • Click "Configure" to verify your setup
    • Click "Refresh" to load the MCP server
    • Click the server name to see available tools

Important Notes for Cascade Users

  • Only tools functionality is supported (no prompts or resources)
  • MCP tool calls will consume credits regardless of success or failure
  • Image output is not supported
  • Only stdio transport type is supported
  • Tool calls can invoke code written by arbitrary server implementers
  • Cascade does not assume liability for MCP tool call failures

✨ Features

🎯 Available Database Tools

Table Management

  • Tables: list_tables, create_table, drop_table, rename_table
  • Columns: add_column, drop_column, alter_column
  • Records: fetch_records, create_record, update_record, delete_record

Indexes & Constraints

  • Indexes: list_indexes, create_index, delete_index, update_index
  • Constraints: list_constraints, add_constraint, remove_constraint, update_constraint

Database Functions & Triggers

  • Functions: list_functions, create_function, update_function, delete_function
  • Triggers: list_triggers, create_trigger, update_trigger, delete_trigger

Security & Access Control

  • Policies: list_policies, create_policy, update_policy, delete_policy
  • Roles: list_roles, create_role, update_role, delete_role

Storage Management

  • Buckets: list_buckets, create_bucket, delete_bucket
  • Files: delete_file, bulk_delete_files
  • Folders: list_folders

Data Types & Publications

  • Enumerated Types: list_enumerated_types, create_enumerated_type, update_enumerated_type, delete_enumerated_type
  • Publications: list_publications, create_publication, update_publication, delete_publication

Realtime Features

  • 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

User Management

  • Auth: list_users, create_user, update_user, delete_user

Direct SQL Access

  • Query: query - Execute custom SQL queries

🚀 Key Benefits

  • Natural Language Control: Manage your Supabase database through simple conversational commands
  • Comprehensive Coverage: Full suite of tools covering tables, records, indexes, functions, security, and more
  • Seamless Integration: Works directly within Cursor's Composer and Codeium's Cascade
  • Developer Friendly: Reduces context switching between IDE and database management tools
  • Secure Access: Maintains your database security with proper authentication

📁 Project Structure

supabase-mcp-server/
├── dist/                    # Compiled JavaScript files
│   ├── index.d.ts          # TypeScript declarations
│   └── index.js            # Main JavaScript file
├── src/                    # Source code
│   └── index.ts           # Main TypeScript file
├── package.json           # Project configuration
├── package-lock.json      # Dependency lock file
└── tsconfig.json         # TypeScript configuration

💡 Usage

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"

🔒 Security Notes

  • 🔐 Keep your database connection string secure
  • ⚠️ Never commit sensitive credentials to version control
  • 👮 Use appropriate access controls and permissions
  • 🛡️ Validate and sanitize all inputs to prevent SQL injection

🛠️ Troubleshooting

Common Connection Issues

  1. Node.js Path Issues

    • Ensure you're using the correct Node.js path
    • On Mac/Linux: Use which node to find the correct path
    • On Windows: Use where node to find the correct path
    • Replace /usr/local/bin/node with your actual Node.js path
  2. File Path Issues

    • Use absolute paths instead of relative paths
    • On Mac/Linux: Use pwd in the project directory to get the full path
    • On Windows: Use cd to get the full path
    • Example: /Users/username/projects/supabase-mcp-server/dist/index.js
  3. MCP Not Detecting Tools

    • Click the refresh button in Cursor's MCP settings
    • Ensure the server is running (no error messages)
    • Check if your connection string is correct
    • Verify your Supabase credentials are valid
  4. Permission Issues

    • Make sure the dist directory exists (run npm run build)
    • Check file permissions (chmod +x on Unix systems)
    • Run npm install with appropriate permissions

Debug Mode

Add DEBUG=true before your command to see detailed logs:

DEBUG=true /usr/local/bin/node /path/to/dist/index.js [connection-string]

Platform-Specific Notes

Windows Users

# Use this format for the command
"C:\\Program Files\\nodejs\\node.exe" "C:\\path\\to\\dist\\index.js" "postgresql://..."

Linux Users

# Find Node.js path
which node

# Make script executable
chmod +x /path/to/dist/index.js

If you're still experiencing issues, please open an issue with:

  • Your operating system
  • Node.js version (node --version)
  • Full error message
  • Steps to reproduce

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License


Built with ❤️ for the Cursor community

Cursor • Supabase • GitHub

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Supabase MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/supabase-mcp-server-quegenx)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage