Supabase MCPSupabase MCP
Supabase 官方 MCP server(Apache-2.0,仓现名 supabase/mcp):编码 agent 直接查 schema、 跑迁移、看日志。安全口径一句话:它的 SQL 执行面是真的——按「能改库的凭据」设防,裁剪不是沙箱。
Supabase's official MCP server (Apache-2.0, repo now supabase/mcp): agents inspect schema, run migrations, read logs. Security in one line: its SQL execution surface is real — defend as if it can change your database; tool trimming is not a sandbox.
适合与不适合When to use it, when not to
适合:Supabase 栈项目的 agent 开发流(schema/迁移/日志一条龙)。 不适合:要硬只读边界;非 Supabase 项目(它不是通用数据库 server)。
Fits: agent dev flows on the Supabase stack (schema/migrations/logs in one lane). Not a fit: hard read-only boundaries; non-Supabase projects (it is not a generic database server).
中文生态China availability 国产 / 国内可直接用 / 备案状态 · 快照domestic / direct access / CAC filing · snapshot 2026-10-21
- 出品属地Origin
- 国外出品foreign-made Supabase Inc.(美国)。Supabase Inc. (US).
- 国内使用Direct access
- 直连不可达direct blocked github.com 直连实测 000(波动,同日代理可达 200);supabase.com 直连未单独测。github.com measured 000 direct (fluctuating; 200 via proxy the same day); supabase.com not individually measured.
- 备案状态CAC filing
- 未见于备案名单not in filing list:未见于网信办公示名单(2026-10-21 检索);该产品未面向大陆公众提供服务,备案不适用。not in the CAC public registry (searched 2026-10-21); the product does not serve the mainland public, so filing does not apply.
备案信息以网信办《生成式人工智能服务已备案信息》公示名单为准(按批次滚动更新,本站只抄编号不解读);「大陆可直连」是本站从大陆网络直连实测的结果,不是厂商承诺。GitHub 类站点当日实测有波动,口径写在依据里。Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
固定坐标系Fixed coordinate system
11 个维度dimensions, 与同分区其他对象逐项可比each comparable item by item against others in the same section.
- 模型与开放条件Model & openness
它自己不调模型——被 MCP 客户端调用的接口实现。它把 Supabase 平台能力 (项目、数据库查询、迁移、日志、文档检索)包装成工具给编码 agent 用。
It calls no model itself — an interface implementation called by MCP clients. It wraps Supabase platform capabilities (projects, database queries, migrations, logs, docs retrieval) as tools for coding agents.
- 运行位置Where it runs
双形态:本地 npx 进程(stdio)+ 官方托管远程线;GitHub 2,983★, 最近推送 2026-10-29(GitHub API 核验)。
Two forms: local npx process (stdio) + an official hosted remote line; GitHub 2,983★, last push 2026-10-29 (GitHub API verified).
- 本地文件Local files
本地形态不直接读写你本机项目文件(那是 filesystem server 的活)—— 它操作的是 Supabase 云端项目:表、迁移、日志。
In the local form it does not directly read or write your local project files (that is the filesystem server's job) — it operates on Supabase cloud projects: tables, migrations, logs.
- 关机后的任务Tasks after shutdown
本地 stdio 随客户端生死;远程托管形态在 Supabase 侧。无后台任务语义。
Local stdio lives and dies with the client; the hosted remote form lives on Supabase's side. No background-task semantics.
- 工具与扩展Tools & extensions
数据库查询/迁移、项目管理、日志与诊断、docs 检索等; 工具可按需裁剪(官方支持选择性启用工具组);完整清单以仓 README 为准。
Database queries/migrations, project management, logs and diagnostics, docs retrieval, etc.; tools can be trimmed on demand (the official side supports selectively enabling tool groups); the complete inventory follows the repo README.
- 上下文与记忆Context & memory
无 server 侧跨会话记忆——状态在 Supabase 项目本身(schema、数据)。
No server-side cross-session memory — state lives in the Supabase project itself (schema, data).
- 权限与限制Permissions & limits
凭据=Supabase 访问令牌,权限面大:能连项目级 API(含 SQL 执行面)。 官方提供工具裁剪与只读类工具区分,但 SQL 写/DDL 能力真实存在—— 接 agent 前按「给它一个能改库的凭据」这个最坏假设设防。
Credential = Supabase access token, a large permission surface: it can reach project-level APIs (including the SQL execution surface). The official side offers tool trimming and read-only tool distinctions, but SQL write/DDL capabilities genuinely exist — before hooking up an agent, defend on the worst-case assumption "you gave it a credential that can modify the database".
- 适合什么任务Best for
适合:编码 agent 直接管自家 Supabase 项目(查 schema、跑迁移、看日志)。 不适合:要「只读保险」的硬边界(裁剪能收窄但不是沙箱);非 Supabase 栈项目。
Fits: coding agents directly managing your own Supabase projects (inspect schema, run migrations, read logs). Not a fit: hard boundaries needing "read-only insurance" (trimming narrows but is not a sandbox); non-Supabase-stack projects.
- 传输方式Transport
本地 stdio(npx 起进程)为主;官方另有托管远程端点线(细节以官方文档为准,未逐条核验)。 核验:仓 README 与 GitHub API(2026-10-21)。
Local stdio (npx starting a process) is primary; the official side also has a hosted remote endpoint line (details follow the official docs, not verified item by item). Verified: repo README and GitHub API (2026-10-21).
- 认证机制Authentication
Supabase 访问令牌(scope 可选配);本地形态环境变量/参数传 token。 令牌轮换与最小权限实践官方文档有指引——未逐条核验细节。
Supabase access token (scopes configurable); the local form passes the token via env var/parameter. The official docs give guidance on token rotation and least-privilege practices — details not verified item by item.
- 权限范围Permission scope
项目级:读 schema、执行 SQL(含写/DDL)、管迁移、看日志。 工具组裁剪可缩小暴露面;无工具级人工审批机制的官方说明。
Project level: read schema, execute SQL (including writes/DDL), manage migrations, read logs. Tool-group trimming can shrink the exposure surface; no official docs for a tool-level human approval mechanism.
头号误解Top misconception
- 把工具裁剪当安全沙箱——SQL 执行面真实存在,凭据权限才是边界Treating tool trimming as a security sandbox — the SQL execution surface is real; credentials are the boundary
- 用旧仓名 mcp-server-supabase——现 redirect 到 supabase/mcp(2026-10-21 直抓)Using the old repo name mcp-server-supabase — it now redirects to supabase/mcp (direct-fetched 2026-10-21)
- 把它当本地数据库工具——它连的是 Supabase 云端项目,本地库不在作用域Treating it as a local database tool — it connects to Supabase cloud projects; local databases are out of scope
未知项清单Known unknowns
- 托管远程端点的当前状态与差异(未逐条核验)
- 工具组裁剪的完整矩阵(未逐条清点)
- 令牌 scope 粒度细节(未逐条核验)
- The current status and differences of the hosted remote endpoint (not verified item by item)
- The complete tool-group trimming matrix (not enumerated item by item)
- Token scope granularity details (not verified item by item)
证据来源Evidence sources
判断可回到以下一手源复核。本站核验日Every judgement can be rechecked against the primary sources below. Verified on 2026-10-30,内容更新日content updated on 2026-10-21。
| 类型Type | 名称Name | 链接Link |
|---|---|---|
| repo | supabase/mcp · 仓库(Apache-2.0;2,983★,最近推送 2026-10-29,GitHub API 核验)supabase/mcp · repository (Apache-2.0; 2,983★, last push 2026-10-29, GitHub API verified) | https://github.com/supabase/mcp |
| changelog | supabase/mcp · Releases(changelog)supabase/mcp · Releases (changelog) | https://github.com/supabase/mcp/releases |
| docs | Supabase · 官方文档 MCP 线Supabase · official docs MCP line | https://supabase.com/docs/guides/getting-started/mcp |
实测记录Measured runs
本档未在真实客户端逐项跑通;工具清单与权限来自官方 README。
This site has not completed measured runs. The test protocol is at protocols/mcp/_protocol.md.
相关条目Related entries
- GitHub MCP ServerGitHub MCP Server同为「双形态+工具裁剪」设计对照:GitHub 有强制 read-only 开关,Supabase 无同级开关。A "two-forms + tool-trimming" design contrast: GitHub has a mandatory read-only switch, Supabase has no equivalent switch.
- CursorCursor另一层 · AI 编程Other layer · AI coding
- Claude Code IDE 扩展Claude Code (IDE extension)另一层 · AI 编程Other layer · AI coding
本页由This page is generated from the ai-handbook 数据层生成(CC BY 4.0)。data layer (CC BY 4.0).
方法论与坐标系定义见仓库内For the methodology and coordinate definitions, see METHODOLOGY.md.