Supabase MCP Server

MCP server for Supabase CRUD operations

Local serverstdioTypeScript

What is the Supabase MCP Server?

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

Configuration and credentials

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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

MCP server for Supabase CRUD operations Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.