supabase
A powerful Model Context Protocol (MCP) server for Supabase, built with https://github.com/mcp-use/mcp-use. This server provides interactive tools and beautiful React widgets for exploring and querying your Supabase database.
claude mcp add --transport stdio mcp-use-supabase-mcp-server node index.ts \ --env CSP_URLS="Comma-separated CSP URLs required by widgets (e.g., https://supabase.com,https://mcp.supabase.com)" \ --env ACCESS_TOKEN="Your Supabase Personal Access Token"
How to use
This Supabase MCP Server provides an interactive suite of tools to explore and query your Supabase database directly through MCP widgets. The server exposes a Schema Explorer to browse all tables and schemas, a Table Viewer to inspect and interact with table data, and a SQL Query Executor to run read-only queries with results displayed in a dedicated widget. Each tool renders as a React widget built with Tailwind CSS and Radix UI components, allowing you to navigate schemas, view data, and run queries in a unified UI without leaving the MCP environment. The client connects directly to Supabase without LangChain, emphasizing type-safety and a streamlined development experience via mcp-use’s tooling.
How to install
Prerequisites:
- Node.js 18+ (with yarn)
- A Supabase project
- A valid Supabase Personal Access Token
Installation steps:
- Clone the repository or install via npm/yarn as appropriate for your project.
- Install dependencies: yarn install
- Set required environment variables (see later under Configuration).
- Start the development server: yarn dev
- Open the UI in your browser (the dev server will provide the local URL).
- When deploying, build for production and start the production server as needed (e.g., yarn build then yarn start).
Notes:
- Ensure your environment variables are correctly set before starting the server.
- The MCP widgets rely on React, Tailwind CSS, and the OpenAI Apps SDK within the mcp-use framework.
Additional notes
Environment variables:
- ACCESS_TOKEN: Your Supabase Personal Access Token. This enables secure access to your Supabase project.
- CSP_URLS: Content Security Policy URLs required for loading widgets. Example: https://supabase.com,https://mcp.supabase.com,https://*.mcp-use.com,https://*.supabase.co
Tips:
- Use the development commands provided by mcp-use to hot-reload and test widgets during development.
- If widgets fail to load, verify CSP_URLS and ACCESS_TOKEN are correct and that the Supabase project allows access with the provided token.
- The available tools (list-tables, show-table, execute-sql) correspond to interactive widgets: schema-explorer, table-viewer, and query-results respectively.
Related MCP Servers
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud