Self-Hosted Supabase MCP Server for Cursor

Hey guys,

Just wanted to share something I built for my own workflow: an MCP server for your self-hosted Supabase instances (like the one running locally with supabase start or a VPS hosted one).

It gives Cursor tools to:

  • Peek at your database schema (tables, extensions) and manage migrations.

  • Run SQL queries and check DB connections/stats.

  • Manage auth users (list, get, create, delete - careful with the create/update ones!).

  • Look at storage buckets and objects.

  • Check Realtime publications.

  • Generate TypeScript types.

If you’re running Supabase yourself and want to hook it up to Cursor, check it out:

:right_arrow: GitHub Repo: GitHub - HenkDz/selfhosted-supabase-mcp

The README has config examples for setting it up in Cursor’s .cursor/mcp.json. You basically just point it to the built server file (dist/index.js) and provide your Supabase URL/keys.

Hope someone else finds it useful!

What I love about building MCPs, with cursor is that I can build and test in the same chat, the only thing I do manually is restart the MCP server, Imagine the Agent can build and then restart the MCP? can we have that?