The most powerful way to connect Supabase to Cursor is through the Model Context Protocol (MCP). This allows the Cursor AI to directly "see" your database schema, run queries, and manage migrations without you having to copy-paste table definitions.
- Open the Cursor application on your computer.
- Click File from the toolbar, and select Preferences.
- Select Cursor Settings from the submenu.
- Click on the Tools & MCP (or just MCP) tab in the sidebar.
- Click the + Add Custom MCP (or New MCP Server) button.
- In the file that opened, delete everything and paste the following code exactly.
- Go back to the Cursor Settings tab. You should now see Supabase listed under "Installed MCP Servers", then click Connect.
- A browser window will open; log in to your Supabase account and select the project you want to use, then click Authorize Cursor.
- Once authorized, return to Cursor and ensure the status light for Supabase is Green.




