Supabase MCP Server
A powerful MCP server for Supabase that provides interactive tools and React widgets for exploring and querying your Supabase database.
README
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 displayschema(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:
- Schema Explorer (
schema-explorer) - Browse database tables and schemas - Table Viewer (
table-viewer) - View and explore table data - 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/serverto create tools, resources, and widgets - Client-side: Uses
mcp-use/clientto 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。