# Supabase (MCP Server)

> Manage Supabase databases, migrations, edge functions and logs

- Type: MCP server
- Publisher: Supabase (official)
- Categories: Development, Data & Analytics
- Website: https://supabase.com/docs/guides/getting-started/mcp
- Source: https://github.com/supabase-community/supabase-mcp
- Transport: streamable-http
- Server URL: https://mcp.supabase.com/mcp
- Sign-in: oauth
- GitHub stars: 2900
- Listed: 2025-04-04

## About

Supabase's official MCP server connects AI assistants to Supabase projects for table management, SQL execution, migrations, edge functions, logs, advisors and docs search. The hosted server uses OAuth dynamic client registration and supports read-only mode, project scoping and feature-group filtering via URL parameters.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.supabase.com/mcp as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

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

   config.toml:

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

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "supabase",
           "server_url": "https://mcp.supabase.com/mcp",
           "authorization": os.environ["SUPABASE_API_KEY"],
           "require_approval": "never",
       }],
       input="List the tables in my Supabase project",
   )
   print(response.output_text)
   ```

## Tools

- `list_tables`
- `execute_sql`
- `apply_migration`
- `list_migrations`
- `get_logs`
- `get_advisors`
- `generate_typescript_types`
- `deploy_edge_function`
- `list_edge_functions`
- `search_docs`

## Example prompts

- "List the tables in my Supabase project"
- "Create a migration that adds a profiles table with RLS"
- "Generate TypeScript types for my database"
- "Check the security advisors for my project"

## Also available as

- plugin: [Supabase](https://chatgptplugins.directory/plugins/supabase.md)
- app: [Supabase](https://chatgptplugins.directory/apps/supabase.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent
- [Atlassian Rovo (Jira & Confluence)](https://chatgptplugins.directory/mcp/atlassian-rovo.md): Work with Jira issues and Confluence pages through Atlassian's hosted MCP

---
Source: https://chatgptplugins.directory/mcp/supabase · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
