Supabase MCP server for AI agents

List Supabase projects, run SQL, check health and inspect edge functions and branches.

Auth
Access token
Tools
10
Triggers
0
Category
Developer tools, Infrastructure

Tools and triggers

  • List organizations

    SUPABASE_LIST_ORGANIZATIONS

    Lists the Supabase organizations the token can access, with their slugs.read-only

  • List organization members

    SUPABASE_LIST_ORGANIZATION_MEMBERS

    Lists the members of an organization with their roles.read-only

  • List projects

    SUPABASE_LIST_PROJECTS

    Lists all projects across the user's organizations, with their reference, region and status.read-only

  • Get a project

    SUPABASE_GET_PROJECT

    Returns one project's name, region, status and database host.read-only

  • Run a SQL query

    SUPABASE_RUN_SQL_QUERY

    Runs SQL against the project's Postgres database and returns the rows. Statements can change or delete data and schema.destructive

  • List edge functions

    SUPABASE_LIST_EDGE_FUNCTIONS

    Lists the project's edge functions with their slugs, status and versions.read-only

  • Get project API keys

    SUPABASE_GET_API_KEYS

    Returns the project's API keys (anon and service role). The service role key bypasses row-level security, so handle it with care.read-only

  • List branches

    SUPABASE_LIST_BRANCHES

    Lists the database branches of a project.read-only

  • Get project health

    SUPABASE_GET_PROJECT_HEALTH

    Checks whether the project's services (auth, db, realtime, rest, storage) are healthy.read-only

  • Generate TypeScript types

    SUPABASE_GENERATE_TYPESCRIPT_TYPES

    Returns TypeScript types for the project's database schema.read-only

Connect via MCP

Create an MCP server for Supabase in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.

terminal
claude mcp add --transport http supabase \
  "https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
  --header "x-api-key: ptm_…"

Connect via REST

Run a tool with one request. The response is { data, error, successful, log_id } for every tool.

terminal
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/SUPABASE_LIST_ORGANIZATIONS \
  -H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
  -d '{ "user_id": "alice", "arguments": {} }'

Supabase questions