Supabase MCP Server Config
MCP ServersMCP configuration for connecting Claude Code to a Supabase PostgreSQL database.
2303/23/2026
Version 1
PublishedInitial version
Created 3/23/2026
Initial version — no previous version to compare
mcp-server
# 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