Supabase MCP Server

Databasestdiov0.3.0
代码仓库

Official Supabase MCP server for database and backend integration. Enables AI agents to query PostgreSQL databases, manage tables and schemas, handle authentication users, interact with storage buckets, and invoke edge functions. Provides full access to Supabase project management including migrations and type generation.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server"
      ],
      "env": {
        "SUPABASE_URL": "<YOUR_SUPABASE_URL>",
        "SUPABASE_SERVICE_ROLE_KEY": "<YOUR_SUPABASE_SERVICE_ROLE_KEY>"
      }
    }
  }
}

工具 (4)

execute_sql

Execute a SQL query against the Supabase PostgreSQL database.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "SQL query to execute"
    },
    "params": {
      "type": "array",
      "description": "Query parameters for parameterized queries"
    }
  }
}

list_tables

List all tables in the database with their schemas and row counts.

{
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "description": "Schema name (default public)"
    }
  }
}

get_table_schema

Get the column definitions and constraints for a specific table.

{
  "type": "object",
  "required": [
    "table"
  ],
  "properties": {
    "table": {
      "type": "string",
      "description": "Table name"
    },
    "schema": {
      "type": "string",
      "description": "Schema name (default public)"
    }
  }
}

manage_storage

Upload, download, or list files in Supabase Storage buckets.

{
  "type": "object",
  "required": [
    "action",
    "bucket"
  ],
  "properties": {
    "path": {
      "type": "string",
      "description": "File path within the bucket"
    },
    "action": {
      "type": "string",
      "description": "Action to perform (list, upload, download, delete)"
    },
    "bucket": {
      "type": "string",
      "description": "Storage bucket name"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Supabase (@supabase)
代码仓库
https://github.com/supabase-community/supabase-mcp
许可证
Apache-2.0
版本
0.3.0
星标
2,706
最后更新
2026年5月25日