beta

Supabase MCP Server Config

MCP Servers

MCP configuration for connecting Claude Code to a Supabase PostgreSQL database.

2103/23/2026
json1 file
mcp-config.json817 B
# Supabase MCP Server

## Installation
```bash
npx @anthropic-ai/create-mcp-server supabase-mcp
```

## Configuration (.mcp.json)
```json
{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": ["-y", "@supabase/mcp-server"],
      "env": {
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_SERVICE_KEY": "your-service-key"
      }
    }
  }
}
```

## Available Tools
- query — execute SQL queries
- list_tables — list all tables
- describe_table — get table schema
- insert — insert rows
- update — update rows
- delete — delete rows

## Usage Tips
- Use the service key, not the anon key
- The MCP server has full database access — be careful
- Use it for schema exploration and data queries
- Don't use it for migrations — use Drizzle/Prisma for that