drio
Open app

Supabase MCP Server

Source

Supabase Model Context Protocol (MCP) server for CRUD operations and Edge Functions

Catalog onlyCatalog onlySTDIO

Overview

Supabase MCP Server is a Model Context Protocol (MCP) server that enables Claude and other LLMs to interact with Supabase for performing CRUD operations on Postgres tables and invoking Edge Functions.

To use the Supabase MCP Server, clone the repository, install dependencies, configure your Supabase credentials in a .env file, build the project, and start the server. Then, connect it with Claude by adding the server URL in its settings.

  • Perform CRUD operations: Query, insert, update, and delete data in Postgres tables. - Invoke Edge Functions with payloads. - API documentation for easy integration.
  1. Querying user data from a profiles table.
  2. Inserting new products into a products table.
  3. Updating user statuses based on login activity.
  4. Deleting expired sessions from a sessions table.
  5. Invoking Edge Functions for processing payments.

Add to your AI client

Use these steps to connect 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": {
    "sb-mcp-cappahccino": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sb-mcp-cappahccino"
      ]
    }
  }
}

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": {
    "sb-mcp-cappahccino": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sb-mcp-cappahccino"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

VS Code (Copilot)

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

.vscode/mcp.json

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

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

What are the prerequisites to run the Supabase MCP Server?

You need Node.js (v16 or newer), npm or yarn, and a Supabase project with API keys.

Is there any security measure in place?

Yes, all endpoints require an API key in the `x-api-key` header, and the server uses the Supabase service role key for database operations.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3662,"uuid":"84c4acfd-9fbf-4d30-8b6d-0b1f6c09e94a","name":"SB-MCP","title":"Supabase MCP Server","description":"Supabase Model Context Protocol (MCP) server for CRUD operations and Edge Functions","avatar_url":"https://avatars.githubusercontent.com/u/107144872?v=4","created_at":"2025-03-20T22:33:58.183Z","updated_at":"2025-03-20T22:40:16.191Z","status":"created","author_name":"Cappahccino","author_avatar_url":"https://avatars.githubusercontent.com/u/107144872?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Cappahccino/SB-MCP","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 20:13:22\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]