Configure @supabase/mcp-server-postgrest with Claude Desktop
mainTo use this server with Claude Desktop, add it to your mcpServers configuration file.
Config File Locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration Options:
apiUrl: The base URL of your PostgREST endpoint (e.g.,https://your-project-ref.supabase.co/rest/v1).apiKey: Your API key for authentication (optional).schema: The Postgres schema to serve the API from (e.g.,public).
{
"mcpServers": {
"todos": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-postgrest@latest",
"--apiUrl",
"https://your-project-ref.supabase.co/rest/v1",
"--apiKey",
"your-anon-key",
"--schema",
"public"
]
}
}
}