Data as of

Query MCP for Supabase for Cursor: Setup & Config

Cursor: Query MCP connects coding assistants to Supabase SQL, schema changes, project management, and user administration.

What you can do with Query MCP for Supabase in Cursor

Supabase SQL and administration in one stdio server, with explicit query-risk controls.

  • Administer hosted Supabase projects through the Management API.
  • Manage users through Supabase Auth Admin methods.

Before you start: Query MCP for Supabase in Cursor

  • Python 3.12+
  • uv for this launch command
  • Install the supabase-mcp-server package
  • A Supabase hosted project or local development instance

The README installs the package with uv pip install supabase-mcp-server before launching it. Packaged installs do not load project-local .env files. Claude Desktop requires an absolute executable path. Active maintenance has ended.

Query MCP for Supabase Cursor configuration

  1. Choose Cursor configuration scope

    For Query MCP for Supabase, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.

  2. Add Query MCP for Supabase to Cursor

    Use the supabase-mcp-server entry below in mcpServers. Keep Query MCP for Supabase's documented stdio connection fields and your other Cursor entries.

  3. Check Query MCP for Supabase in Cursor

    Query MCP for Supabase: Enable in Cursor’s MCP settings; inspect tools.

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

JSON
{
  "mcpServers": {
    "supabase-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "supabase-mcp-server"
      ],
      "env": {
        "QUERY_API_KEY": "<API key from thequery.dev>",
        "SUPABASE_PROJECT_REF": "<Project reference or local host and port>",
        "SUPABASE_DB_PASSWORD": "<Database password>",
        "SUPABASE_REGION": "<Hosting region for a remote project>",
        "SUPABASE_ACCESS_TOKEN": "<Optional Management API access token>",
        "SUPABASE_SERVICE_ROLE_KEY": "<Optional Auth Admin service-role key>"
      }
    }
  }
}

Troubleshooting Query MCP for Supabase in Cursor

  • Cursor must find uv for Query MCP for Supabase. Enable the project/user entry in MCP settings and inspect its tools.
  • Review QUERY_API_KEY, SUPABASE_ACCESS_TOKEN, SUPABASE_DB_PASSWORD, SUPABASE_PROJECT_REF, SUPABASE_REGION, SUPABASE_SERVICE_ROLE_KEY for Query MCP for Supabase before sharing project .cursor/mcp.json; project scope travels with the repository.
  • Query MCP for Supabase uses stdio here: Cursor must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: No longer actively maintained by its author.
  • Known limitation: Requires a separate Query API key.
  • Known limitation: Does not support arbitrary connection strings or session pooling.
  • General Cursor troubleshooting lives in the /clients/cursor guide.

Query MCP for Supabase — details. Cursor guide

Frequently asked questions

Cursor's Query MCP for Supabase entry belongs under mcpServers in .cursor/mcp.json (project) or ~/.cursor/mcp.json (user). Confirm the active scope in MCP settings.

Cursor's supabase-mcp-server example uses stdio.

Query MCP for Supabase's Cursor configuration invokes uv.

Cursor's Query MCP for Supabase example references QUERY_API_KEY, SUPABASE_ACCESS_TOKEN, SUPABASE_DB_PASSWORD, SUPABASE_PROJECT_REF, SUPABASE_REGION, SUPABASE_SERVICE_ROLE_KEY. Check these names if startup or authentication fails; the example alone does not distinguish required from optional values.

Yes. The README requires a Query API key from thequery.dev for every operation.

The input identifies Apache-2.0.