supabase
mcp-supabase
Supabase MCP 服务器 — Postgres 直连 + Storage REST + Auth + Edge Functions + Management API。
功能特性
24 个工具,涵盖数据库、存储、认证、边缘函数和项目管理
Postgres 直连,通过
pg连接池(无需 Supabase JS 客户端)SSL 支持,适用于 Supabase 连接池
服务角色密钥,用于管理操作
访问令牌,用于 Management API
Related MCP server: Supabase MCP Server - Self-Hosted Edition
设置
cd mcp-supabase
npm install
cp .env.example .env # Edit with your credentials
node server.cjs环境变量
变量 | 必填 | 描述 |
| 是 | 来自 Supabase 控制台的 Postgres 连接字符串 |
| 是 | 用于 Storage/Auth 操作的服务角色密钥 |
| 是 | 项目引用 ID(来自控制台 URL) |
| 否 | 用于 Management API 的个人访问令牌 |
| 否 | 用于客户端操作的匿名密钥 |
工具
数据库
execute_sql— 运行任意 SQLlist_schemas— 列出数据库模式list_tables— 列出模式中的表get_schema— 获取表模式详情get_table_row_counts— 获取所有表的行数run_rpc— 调用 PostgreSQL 函数
存储
list_buckets— 列出存储桶create_bucket— 创建存储桶delete_bucket— 删除存储桶list_files— 列出桶中的文件upload_file— 上传文件download_file— 下载文件(base64)delete_file— 删除文件
认证
list_auth_users— 列出用户create_auth_user— 创建用户update_auth_user— 更新用户delete_auth_user— 删除用户
边缘函数
list_edge_functions— 列出已部署的函数invoke_edge_function— 调用函数
管理
list_projects— 列出所有项目get_project— 获取项目详情
MCP 配置
{
"mcpServers": {
"supabase": {
"command": "node",
"args": ["path/to/server.cjs"]
}
}
}安全说明
服务角色密钥具有管理员访问权限 — 请谨慎使用
切勿提交
.env或config.json在生产环境中使用环境变量
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables comprehensive management of self-hosted or cloud Supabase instances with 54+ tools for database operations, authentication, storage, real-time subscriptions, migrations, and monitoring through MCP protocol.
- FlicenseNot gradedqualityFmaintenanceEnables comprehensive management of self-hosted or cloud Supabase instances with 54+ tools for database operations, authentication, storage, real-time subscriptions, migrations, monitoring, and security auditing.7
- AlicenseNot gradedqualityDmaintenanceConnects Supabase projects to AI assistants, enabling them to manage database tables, execute SQL queries, and deploy Edge Functions through natural language. It provides a comprehensive suite of tools for project administration, including logs access, documentation search, and environment configuration.Apache 2.0
Related MCP Connectors
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Steph-ux/mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server