Supabase MCP Server

Supabase MCP Server

A powerful MCP server for Supabase that provides interactive tools and React widgets for exploring and querying your Supabase database.

Category
Visit Server

README

Supabase MCP Server

Supabase MCP Server

A powerful Model Context Protocol (MCP) server for Supabase, built with mcp-use. This server provides interactive tools and beautiful React widgets for exploring and querying your Supabase database.

šŸš€ Built with mcp-use

This MCP server is powered by mcp-use, a modern framework for building MCP servers with:

  • Type-safe server creation - Build MCP servers with full TypeScript support
  • React widget support - Create interactive UI components using the OpenAI Apps SDK
  • Simplified client connections - Easily connect to other MCP servers without LangChain
  • Built-in development tools - Hot reload, build, and deploy commands
  • Zero boilerplate - Focus on your tools, not infrastructure

Features

  • šŸ” Database Schema Explorer - Browse all tables in your Supabase database with an interactive UI
  • šŸ“Š Table Viewer - Display and explore table data with a beautiful data table widget
  • šŸ”Ž SQL Query Executor - Run read-only SQL queries and view results in an interactive widget
  • šŸŽØ React Widgets - Rich, interactive UI components built with React and Tailwind CSS
  • šŸ” Secure Authentication - Uses Supabase Personal Access Tokens for secure access

Prerequisites

  • Node.js 18+ and yarn
  • A Supabase project
  • A Supabase Personal Access Token (generate one here)

Installation

# Install dependencies
yarn install

Configuration

Set the following required environment variables:

# Required: Your Supabase Personal Access Token
export ACCESS_TOKEN="your-access-token"

# Required: Content Security Policy URLs for widget loading => required by ChatGPT
export CSP_URLS="https://supabase.com,https://mcp.supabase.com,https://*.mcp-use.com,https://*.supabase.co"

Development

mcp-use provides convenient development commands:

# Start development server with hot reload
yarn dev

# Build for production
yarn build

# Start production server
yarn start

# Deploy the server
yarn deploy

Available Tools

list-tables

List all tables in your Supabase database. Opens an interactive schema explorer widget.

Parameters:

  • schemas (optional): Array of schema names to include (default: ["public"])

Widget: schema-explorer - Interactive table browser with schema information

show-table

Display data from a specific table. Opens a data table viewer widget.

Parameters:

  • tableName (required): Name of the table to display
  • schema (optional): Schema name (default: "public")
  • limit (optional): Maximum number of rows to fetch (default: 100)

Widget: table-viewer - Interactive data table with sorting and filtering

execute-sql

Execute read-only SQL queries on your Supabase database. Opens a query results widget.

Parameters:

  • query (required): SQL query to execute

Widget: query-results - Interactive query results viewer with syntax highlighting

Available Resources

supabase://project-url

Get the API URL for your Supabase project.

UI Widgets

This server includes three custom React widgets built with mcp-use:

  1. Schema Explorer (schema-explorer) - Browse database tables and schemas
  2. Table Viewer (table-viewer) - View and explore table data
  3. Query Results (query-results) - Display SQL query results

All widgets are built with:

  • React 19
  • Tailwind CSS
  • Radix UI components
  • Lucide React icons

Architecture

This server demonstrates the power of mcp-use:

  • Server-side: Uses mcp-use/server to create tools, resources, and widgets
  • Client-side: Uses mcp-use/client to connect to Supabase's official MCP server
  • No LangChain: Direct MCP client connections without external dependencies
  • Type-safe: Full TypeScript support with Zod schemas

Project Structure

.
ā”œā”€ā”€ index.ts                 # Main server file using [mcp-use](https://github.com/mcp-use/mcp-use)
ā”œā”€ā”€ resources/               # React widget components
│   ā”œā”€ā”€ components/         # Reusable UI components
│   ā”œā”€ā”€ schema-explorer/    # Schema explorer widget
│   ā”œā”€ā”€ table-viewer/       # Table viewer widget
│   ā”œā”€ā”€ supabase-status/    # Display Supabase status for a certain time window
│   └── query-results/      # Query results widget
└── package.json            # Dependencies including [mcp-use](https://github.com/mcp-use/mcp-use)

License

MIT

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