drio
Open app

Query MCP (Supabase MCP Server)

Source

Catalog onlyCatalog onlySTDIO

Overview

Supabase MCP Server is a tool that enables users to execute SQL queries, manage databases, access the Supabase Management API, and handle user authentication with built-in safety controls.

To use the Supabase MCP Server, install it via a package manager like pipx or uv, configure it with your Supabase project details, and connect it to your preferred MCP client such as Cursor or Windsurf.

  • Compatibility with various MCP clients supporting stdio protocol. - Control over read-only and read-write modes of SQL query execution. - Runtime SQL query validation with risk level assessment. - Robust transaction handling and automatic versioning of database schema changes. - Management of Supabase projects and users through the Supabase Management API.
  1. Executing complex SQL queries safely in a development environment.
  2. Managing user authentication and roles in Supabase projects.
  3. Automating database schema migrations and versioning.

Add to your AI client

Use these steps to connect Query MCP (Supabase MCP Server) in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "supabase-mcp-server-emanuelsistemas": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "supabase-mcp-server-emanuelsistemas": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "supabase-mcp-server-emanuelsistemas": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "supabase-mcp-server-emanuelsistemas": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "supabase-mcp-server-emanuelsistemas": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "supabase-mcp-server-emanuelsistemas": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-supabase-mcp-server-emanuelsistemas"
      ]
    }
  }
}