如何将 Supabase 远程 MCP 连接到 Windsurf

约 1 分钟即可把 Supabase 的远程 MCP 服务端接入 Windsurf。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~992 tok30 tools
Streamable HTTPhttps://mcp.supabase.com/mcp

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "supabase": {
      "serverUrl": "https://mcp.supabase.com/mcp"
    }
  }
}

接入步骤

  1. 打开配置文件 — 编辑 ~/.codeium/windsurf/mcp_config.json。
  2. 添加服务端 — 在 mcpServers 中加入 "supabase": { "serverUrl": https://mcp.supabase.com/mcp }。
  3. 完成认证 — 首次调用时客户端会打开 Supabase 的 OAuth 授权页面——点击允许后工具即可用。
  4. 验证 — 在 在线 Inspector 中粘贴 https://mcp.supabase.com/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(30)

ToolSafetyDescriptionParameters
list_organizations
~31 tok
🟢 ReadList Supabase organizations.—
get_organization
~33 tok
🟢 ReadGet details of a Supabase organization.—
list_projects
~28 tok
🟢 ReadList Supabase projects.—
get_project
~31 tok
🟢 ReadGet details of a Supabase project.—
get_project_url
~33 tok
🟢 ReadGet the API URL of a Supabase project.—
get_publishable_keys
~35 tok
🟢 ReadGet publishable/anon API keys for a project.—
get_cost
~33 tok
🟢 ReadEstimate the cost of a new project or branch.—
confirm_cost
~35 tok
🟢 ReadConfirm a cost estimate before resource creation.—
create_project
~30 tok
🟠 WriteCreate a new Supabase project.—
pause_project
~29 tok
🟠 WritePause a Supabase project.—
restore_project
~32 tok
🟠 WriteRestore a paused Supabase project.—
list_tables
~31 tok
🟢 ReadList tables in a project database.—
list_extensions
~32 tok
🟢 ReadList installed Postgres extensions.—
list_migrations
~31 tok
🟢 ReadList applied database migrations.—
apply_migration
~35 tok
🟠 WriteApply a SQL migration to the project database.—
execute_sql
~35 tok
🔴 DestructiveExecute arbitrary SQL against the project database.—
get_logs
~32 tok
🟢 ReadRetrieve recent logs for a Supabase service.—
get_advisors
~34 tok
🟢 ReadGet security and performance advisor findings.—
generate_typescript_types
~38 tok
🟢 ReadGenerate TypeScript types from the database schema.—
search_docs
~31 tok
🟢 ReadSearch the Supabase documentation.—
create_branch
~33 tok
🟠 WriteCreate a development branch of a project.—
list_branches
~32 tok
🟢 ReadList development branches of a project.—
delete_branch
~30 tok
🔴 DestructiveDelete a development branch.—
merge_branch
~33 tok
🔴 DestructiveMerge a development branch into production.—
reset_branch
~33 tok
🔴 DestructiveReset a development branch to a prior state.—
rebase_branch
~34 tok
🟠 WriteRebase a development branch onto production.—
deploy_edge_function
~34 tok
🟠 WriteDeploy an edge function to a project.—
list_edge_functions
~31 tok
🟢 ReadList deployed edge functions.—
get_edge_function
~32 tok
🟢 ReadGet details of an edge function.—
create_storage_bucket
~31 tok
🟠 WriteCreate a storage bucket.—

更多连接指南