Supabase
Lets your AI agent manage Supabase tables, fetch project config and query data in your projects.
3.0k stars on GitHubby SupabaseLicense Apache-2.0Updated 18 days ago
How to install
This MCP has two ways to run: local or remote.
Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.
Paste in the terminal:
claude mcp add supabase -e SUPABASE_ACCESS_TOKEN="<your value>" -- npx -y @supabase/mcp-server-supabase
What to fill in
| Name | What it is | Required |
|---|---|---|
SUPABASE_ACCESS_TOKEN | Personal access token for Supabase API | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
List the tables in my project and their columns.
How many users signed up this week?
What it is
The Supabase MCP server connects your Supabase projects to AI assistants such as Cursor, Claude and Windsurf. They can manage tables, fetch config and query data. You log in to Supabase when your client first connects, and you can limit access by project, tool group or read-only mode.
What it can do
- Manage tables in your project
- Fetch project configuration, such as
get_project_url - Query data
- Feature groups such as database and docs
- Read-only mode with read_only=true
- Project-scoped mode with project_ref
When to use
- βΊWhen you want your agent to look at or change your Supabase database.
- βΊWhen you want to limit an agent to one project and read-only access.
- βΊWhen you want your agent to look up Supabase docs while it works.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
supabase-automationHelps your agent automate tasks in the Supabase database. It can query data, manage tables, and execute SQL. Useful for developers using Supabase.supabase-postgres-best-practicesHas your agent optimize Supabase database queries and design. It applies Postgres best practices. Essential for anyone wanting to improve database performance.setting-up-supabase-auth-emailsHelps your agent connect Supabase sign-up and login emails to PostHog email templates, in an order that will not break new sign-ups.Frequently asked questions
Is it official?
Yes. It is made by Supabase and listed in the MCP registry as com.supabase/mcp.
Is it free?
The server is open source under Apache 2.0. Your Supabase plan applies to your projects.
Is it safe to connect to a production project?
Read the Supabase security best practices first. You can use read-only mode and scope the server to one project.
Does it work locally or self-hosted?
Yes, but the CLI and self-hosted versions offer a limited set of tools and no OAuth 2.1.
Which clients work?
Cursor, Claude, Windsurf and other MCP clients. The Supabase docs have setup steps per client.
Can I limit what it can do?
Yes, with the URL options project_ref, read_only and features.
If it does not work
- βΊChoose the organization that contains your project when logging in.
- βΊUse the MCP connection tab in the Supabase dashboard to generate a custom URL.
- βΊRestart your AI client after changing the config.
5 new skills a week. 1 minute to read.