supabase
mcp-supabase
Supabase MCP サーバー — Postgres ダイレクト + Storage REST + Auth + Edge Functions + Management API。
特徴
24 のツールでデータベース、ストレージ、認証、Edge Functions、プロジェクト管理をカバー
Direct Postgres は
pgプール経由(Supabase JS クライアントは不要)SSL サポート(Supabase プーラー向け)
Service role key(管理操作用)
Access token(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 操作用の Service role key |
| はい | プロジェクト参照 ID(ダッシュボード URL から) |
| いいえ | Management API 用の Personal access token |
| いいえ | クライアント側操作用の Anonymous 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— ユーザーを削除する
Edge Functions
list_edge_functions— デプロイ済みの関数を一覧表示するinvoke_edge_function— 関数を呼び出す
管理
list_projects— すべてのプロジェクトを一覧表示するget_project— プロジェクトの詳細を取得する
MCP 設定
{
"mcpServers": {
"supabase": {
"command": "node",
"args": ["path/to/server.cjs"]
}
}
}セキュリティ上の注意
Service role key は管理者アクセス権を持つ — 注意して使用する
.envやconfig.jsonを絶対にコミットしない本番環境では環境変数を使用する
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Backend for AI-built apps: database, auth, files, email, AI, payments, deploy, realtime. 170+ tools.
The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.
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
- AlicenseNot gradedqualityDmaintenanceProvides secure access to Supabase databases via PostgREST API and management tools for projects, schemas, branches, logs, and code generation.MIT