supabase-mcp-server

supabase-mcp-server

Enables LLMs to interact with Supabase services including Database, Auth, Storage, and Edge Functions through the Model Context Protocol. It provides tools for CRUD operations, user management, file storage, and invoking functions.

Category
Visit Server

README

Supabase MCP Server

An MCP (Model Context Protocol) server that enables LLMs to interact with Supabase services including Database, Auth, Storage, and Edge Functions.

Setup

  1. Install dependencies:

    npm install
    
  2. Copy .env.example to .env and fill in your Supabase credentials:

    cp .env.example .env
    
  3. Build:

    npm run build
    
  4. Run:

    npm start
    

Environment Variables

Variable Required Description
SUPABASE_URL Yes Your Supabase project URL
SUPABASE_SERVICE_ROLE_KEY Yes Service role key (found in Project Settings > API)
TRANSPORT No Transport mode: stdio (default) or http

MCP Client Configuration

Add to your MCP client config (e.g., Claude Desktop):

{
  "mcpServers": {
    "supabase": {
      "command": "node",
      "args": ["/path/to/supabase-mcp-server/dist/index.js"],
      "env": {
        "SUPABASE_URL": "https://your-project.supabase.co",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key"
      }
    }
  }
}

Available Tools

Database (7 tools)

  • supabase_query - Select rows with filters, ordering, pagination
  • supabase_insert - Insert one or more rows
  • supabase_update - Update rows matching filters
  • supabase_delete - Delete rows matching filters
  • supabase_upsert - Insert or update on conflict
  • supabase_rpc - Call a Postgres function
  • supabase_list_tables - List tables in the database

Auth (5 tools)

  • supabase_auth_list_users - List users with pagination
  • supabase_auth_get_user - Get user by ID
  • supabase_auth_create_user - Create a new user
  • supabase_auth_update_user - Update user details
  • supabase_auth_delete_user - Delete a user

Storage (8 tools)

  • supabase_storage_list_buckets - List storage buckets
  • supabase_storage_create_bucket - Create a bucket
  • supabase_storage_list_files - List files in a bucket
  • supabase_storage_upload - Upload a file (base64)
  • supabase_storage_download - Download a file (base64)
  • supabase_storage_delete - Delete files
  • supabase_storage_get_public_url - Get public URL
  • supabase_storage_move - Move/rename a file

Edge Functions (1 tool)

  • supabase_functions_invoke - Invoke an Edge Function

Development

npm run dev    # Run with tsx (hot reload)
npm run build  # Compile TypeScript
npm start      # Run compiled output

Testing with MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured