Supabase Management MCP server

Control Supabase projects and organizations.
Back to servers
Provider
Joshua Riley
Release date
Dec 06, 2024
Language
TypeScript
Package
Stats
1.5K downloads
41 stars

The Supabase MCP Server enables programmatic access to the Supabase Management API, allowing AI models and other clients to manage Supabase projects and organizations through a standardized interface. It serves as a bridge between AI systems and your Supabase resources.

Installation

You can set up the Supabase MCP Server by adding configuration to your Claude Config JSON file:

{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "y",
        "@joshuarileydev/supabase-mcp-server"
      ],
      "env": {
        "SUPABASE_API_KEY": "API_KEY_HERE"
      }
    }
  }
}

Make sure to replace API_KEY_HERE with your actual Supabase API key.

Usage

The MCP Server provides functionality for managing both Supabase projects and organizations.

Project Management

Listing Projects

Access a list of all your Supabase projects:

Ask Claude to list all your Supabase projects

Getting Project Details

Retrieve detailed information about a specific project:

Ask Claude to get details for a specific Supabase project

Creating Projects

Set up a new Supabase project:

Ask Claude to create a new Supabase project

Deleting Projects

Remove a Supabase project:

Ask Claude to delete a specific Supabase project

Retrieving API Keys

Get the API keys for a particular project:

Ask Claude to retrieve API keys for a Supabase project

Organization Management

Listing Organizations

View all your Supabase organizations:

Ask Claude to list all your Supabase organizations

Getting Organization Details

Access detailed information about a specific organization:

Ask Claude to get details for a specific Supabase organization

Creating Organizations

Set up a new Supabase organization:

Ask Claude to create a new Supabase organization

Environment Variables

The server requires the following environment variable:

  • SUPABASE_API_KEY: Your Supabase API key for authentication with the Supabase Management API

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later