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.
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:
Cursor IDE or Codeium's Cascade (for paying users)
Quick Start
Installation
Configuration
Install dependencies and build the project:
In Cursor's MCP settings, add the server with this command:Replace:
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
Open Cursor Settings > Features > MCP
Click the "+ Add New MCP Server" button
Fill in the modal form:
Build the project first:
Get your Node.js path:
Add the server command:Replace:
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:
A prompt to approve/deny the tool call
The tool call arguments (expandable)
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
Create or edit ~/.codeium/windsurf/mcp_config.json:
Quick access to config:
Replace in the configuration:
In Cascade:
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
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
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
Node.js Path Issues
File Path Issues
MCP Not Detecting Tools
Permission Issues
Debug Mode
Add DEBUG=true before your command to see detailed logs:
Platform-Specific Notes
Windows Users
Linux Users
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.
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.
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:
Cursor IDE or Codeium's Cascade (for paying users)
Quick Start
Installation
Configuration
Install dependencies and build the project:
In Cursor's MCP settings, add the server with this command:Replace:
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
Open Cursor Settings > Features > MCP
Click the "+ Add New MCP Server" button
Fill in the modal form:
Build the project first:
Get your Node.js path:
Add the server command:Replace:
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:
A prompt to approve/deny the tool call
The tool call arguments (expandable)
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
Create or edit ~/.codeium/windsurf/mcp_config.json:
Quick access to config:
Replace in the configuration:
In Cascade:
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
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
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
Node.js Path Issues
File Path Issues
MCP Not Detecting Tools
Permission Issues
Debug Mode
Add DEBUG=true before your command to see detailed logs:
Platform-Specific Notes
Windows Users
Linux Users
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.