[Home](/index.md) › [MCP servers](/mcp.md) › Supabase MCP server

# Supabase MCP server

MCP server

- 27 callable tools
- 6 capabilities

[Installation guide](https://supabase.com/docs/guides/ai-tools/mcp)

## Overview

Supabase publishes this MCP server, which connects AI assistants to Supabase projects. It works with Supabase databases, Edge Functions, storage, branches and project settings.

### Capabilities

- Query and change Postgres tables and run SQL
- Apply and list database migrations
- Deploy and inspect Edge Functions
- Create, merge and manage project branches and projects
- Search Supabase documentation
- Read project logs and security and performance advisors

## Works with

The products your agent can work with through this server.

- [Supabase](/tools/supabase.md): Open-source Postgres platform

## Tools

The callable functions your agent uses to work with this server.

### `list_tables`

List all tables in the database

### `list_extensions`

List available/installed Postgres extensions

### `list_migrations`

List database migrations

### `apply_migration`

Apply a database migration

### `execute_sql`

Execute SQL queries

### `query_logs`

Run a read-only SQL query against project logs to filter, aggregate, or join across log fields.

### `get_advisors`

Get security and performance advisors

### `get_project_url`

Get the API URL for a project

### `get_publishable_keys`

Get publishable and legacy anon API keys for a project

### `generate_typescript_types`

Generate TypeScript types from schema

### `list_edge_functions`

List all Edge Functions

### `get_edge_function`

Get a specific Edge Function

### `deploy_edge_function`

Deploy an Edge Function

### `create_edge_function_secret`

When available, request secret entry in the Supabase Dashboard.

### `list_projects`

/ get_project - List or get project details

### `create_project`

/ pause_project / restore_project - Manage projects

### `list_organizations`

/ get_organization - Organization management

### `get_cost`

/ confirm_cost - Cost information for tools that use the legacy cost confirmation workflow

### `search_docs`

Search Supabase documentation

### `create_branch`

/ list_branches / delete_branch - Branch management

### `merge_branch`

/ reset_branch / rebase_branch - Branch operations

### `submit_feedback`

Send feedback about Supabase tools to the Supabase team

### `delete_feedback`

Delete feedback using the token returned by submit_feedback

### `list_notebooks`

/ get_notebook - List or get project notebooks

### `create_notebook`

Create a notebook with Markdown, database, and log cells

### `run_notebook`

Run up to 50 query cells in a notebook, or only selected cells

### `delete_notebook`

Delete a notebook. See Notebook confirmations.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Supabase MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http supabase https://mcp.supabase.com/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Supabase MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=supabase&config=eyJ1cmwiOiJodHRwczovL21jcC5zdXBhYmFzZS5jb20vbWNwIn0%3D)

```json
{
  "mcpServers": {
    "supabase": {
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}
```

### Add Supabase MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "supabase": {
      "type": "http",
      "url": "https://mcp.supabase.com/mcp"
    }
  }
}
```

### Add Supabase MCP server to Codex

Run this in your terminal:

```sh
codex mcp add supabase --url https://mcp.supabase.com/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.supabase]
url = "https://mcp.supabase.com/mcp"
```

If the server uses OAuth, sign in with `codex mcp login supabase`.

### Add Supabase MCP server to Claude

Add it as a custom connector with this URL:

```
https://mcp.supabase.com/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Supabase MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://mcp.supabase.com/mcp
```

[Read the installation guide](https://supabase.com/docs/guides/ai-tools/mcp)

## Sources

Documentation and source code reviewed on 10 November 2026.

- [supabase.com/docs/guides/ai-tools/mcp](https://supabase.com/docs/guides/ai-tools/mcp)
