Skip to main content
Glama
Steph-ux

supabase

by Steph-ux

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

环境变量

变量

必填

描述

DATABASE_URL

来自 Supabase 控制台的 Postgres 连接字符串

SUPABASE_SERVICE_ROLE_KEY

用于 Storage/Auth 操作的服务角色密钥

SUPABASE_PROJECT_REF

项目引用 ID(来自控制台 URL)

SUPABASE_ACCESS_TOKEN

用于 Management API 的个人访问令牌

SUPABASE_ANON_KEY

用于客户端操作的匿名密钥

工具

数据库

  • execute_sql — 运行任意 SQL

  • list_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"]
    }
  }
}

安全说明

  • 服务角色密钥具有管理员访问权限 — 请谨慎使用

  • 切勿提交 .envconfig.json

  • 在生产环境中使用环境变量

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables IDE access to Supabase databases with SQL query execution, schema management, Auth admin operations, and built-in safety controls to prevent accidental destructive actions.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Connects 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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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