Supabase MCP Server

MCP server for Supabase CRUD operations

Local serverstdioTypeScript

What is the Supabase MCP server?

Supabase MCP server exists for a simple reason — assistants are far more useful when they can act on Supabase directly instead of describing what you should do. MCP server for Supabase CRUD operations.

What you get

A Model Context Protocol (MCP) server that allows Claude and other LLMs to interact with Supabase to perform CRUD operations on Postgres tables.

  • Database operations:
  • Query data with filters

Setting it up

The server ships on npm as supabase-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Supabase is connected, these are the calls the assistant has available:

  • Parameters — - table (string): Name of the table to query

Configuration and credentials

You will need 5 environment variables: SUPABASE_URL, SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY, MCP_API_KEY, MCP_SERVER_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js (v16 or newer) - npm or yarn - Supabase project with API keys

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the supabase mcp server does with a few real requests.

Choosing this one

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Supabase's toolset — Parameters — is a fair guide to whether it matches your workflow. It is maintained by cappahccino; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Supabase's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
Parameters- table (string): Name of the table to query

How to install the Supabase MCP server

{
  "mcpServers": {
    "supabase-2": {
      "command": "npx",
      "args": ["-y", "supabase-mcp"],
      "env": {
        "SUPABASE_URL": "your-value",
        "SUPABASE_ANON_KEY": "your-value",
        "SUPABASE_SERVICE_ROLE_KEY": "your-value",
        "MCP_API_KEY": "your-value",
        "MCP_SERVER_HOST": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (v16 or newer) - npm or yarn - Supabase project with API keys
VariableDescriptionRequired
SUPABASE_URLEndpoint or connection string the server talks to.Yes
SUPABASE_ANON_KEYCredential the server authenticates with.Yes
SUPABASE_SERVICE_ROLE_KEYCredential the server authenticates with.Yes
MCP_API_KEYCredential the server authenticates with.Yes
MCP_SERVER_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Supabase to Parameters.

Frequently asked questions

It connects Supabase to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Parameters) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Supabase directly.