
Supabase MCP Server

2025.02.17
0
Python数据库管理IDE 集成数据库开发效率
Supabase MCP Server 是一个实现 Supabase MCP 协议的服务器,允许 Cursor 和 Windsurf 这两种 IDE 直接与 Supabase PostgreSQL 数据库进行交互。它提供了一套数据库管理工具,通过 MCP 协议与这些 IDE 无缝协作。
View on GitHub
Overview
基本能力
产品定位
Supabase MCP Server 旨在为开发人员提供一个便捷的工具,使他们能够在 Cursor 和 Windsurf 这两种 IDE 中直接管理和操作 Supabase PostgreSQL 数据库。
核心功能
- 支持 Windsurf 和 Cursor IDE
- 支持本地 Supabase 项目和生产环境 Supabase 项目
- 内置数据库探索工具,提供模式洞察
- 安全的只读数据库访问
- SQL 查询验证
适用场景
- 在 IDE 中直接管理和操作 Supabase 数据库
- 开发过程中快速查询和验证数据库
- 数据库模式探索和分析
工具列表
- 数据库探索工具:提供数据库模式的洞察和分析
- SQL 查询验证工具:验证 SQL 查询的正确性
常见问题解答
- 如果在安装过程中遇到
psycopg2
编译错误,请确保已先安装 PostgreSQL
使用教程
使用依赖
Mac 系统
- 安装 PostgreSQL 16+
brew install postgresql@16
- 安装 uv 包管理器
pip install uv
Windows 系统
- 从 https://www.postgresql.org/download/windows/ 下载并安装 PostgreSQL 16+
- 安装 uv 包管理器
pip install uv
安装教程
- 克隆仓库并设置环境
git clone https://github.com/alexander-zuev/supabase-mcp-server.git
cd supabase-mcp-server
# 创建并激活虚拟环境
uv venv
# Mac/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
- 安装依赖
uv sync
调试方式
- 启动开发服务器
mcp dev main.py
- 启动本地 Supabase 实例
supabase start