Supabase
MCP server by supabase Verified · supabase.com
Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
Install Supabase
Built from the published package, never by AI.
claude mcp add supabase -e SUPABASE_ACCESS_TOKEN=YOUR_SUPABASE_ACCESS_TOKEN -- npx -y @supabase/mcp-server-supabaseRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"supabase": {
"env": {
"SUPABASE_ACCESS_TOKEN": "YOUR_SUPABASE_ACCESS_TOKEN"
},
"args": [
"-y",
"@supabase/mcp-server-supabase"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"supabase": {
"env": {
"SUPABASE_ACCESS_TOKEN": "YOUR_SUPABASE_ACCESS_TOKEN"
},
"args": [
"-y",
"@supabase/mcp-server-supabase"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"supabase": {
"env": {
"SUPABASE_ACCESS_TOKEN": "YOUR_SUPABASE_ACCESS_TOKEN"
},
"args": [
"-y",
"@supabase/mcp-server-supabase"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add supabase --env SUPABASE_ACCESS_TOKEN=YOUR_SUPABASE_ACCESS_TOKEN -- npx -y @supabase/mcp-server-supabase{
"mcpServers": {
"supabase": {
"env": {
"SUPABASE_ACCESS_TOKEN": "YOUR_SUPABASE_ACCESS_TOKEN"
},
"args": [
"-y",
"@supabase/mcp-server-supabase"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add supabase npx -y @supabase/mcp-server-supabaseGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the supabase block.
About
The Supabase MCP server connects AI assistants directly to your Supabase projects. The source says it lets assistants perform tasks such as managing tables, fetching config, and querying data. A hosted endpoint is available at https://mcp.supabase.com/mcp, and your MCP client prompts you to log in to Supabase during setup. You choose the organization that contains the project you want to work with.
The server can also run locally through the Supabase CLI at http://localhost:54321/mcp, or on a self-hosted Supabase instance. Both of those offer a limited subset of tools and no OAuth 2.1. The project is aimed at developers who want an AI assistant to work with their Supabase projects. The source also describes an option to read Supabase tools from the AI SDK MCP client and a way to self-host the MCP endpoint.
Written from the project's README and checked against it.
Tools it gives your assistant
get_project_urlTakes a project ID and returns the project URL.
What you need
- A Supabase account
- An MCP client such as Cursor, Claude or Windsurf
- A Supabase organization that contains the project you want to use
| Setting | Needed | What it is |
|---|---|---|
SUPABASE_Environment variable, secret | Required | Personal access token for Supabase API |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Use Supabase to get the URL of my project
- List the tables in my Supabase database
- Show me the configuration for my Supabase project
Good to know
- The CLI and self-hosted versions offer a limited subset of tools.
- The CLI and self-hosted versions do not support OAuth 2.1.
- The server does not send structuredContent in tool results.
- The @supabase/mcp-server-postgrest package is deprecated and no longer maintained.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Supabase
All alternatives →ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Query databases from AI coding agents using the connections already set up in DBX. The dbx MCP server suits developers who use Claude Code, Cursor, Windsurf, or another MCP-compatible agent.
Compare with ArcadeDB MCP Server, DBHub or MCP Toolbox for Databases
Supabase: common questions
How do I connect the Supabase MCP server to my AI assistant?
Add the server URL https://mcp.supabase.com/mcp to your MCP client configuration. The client will prompt you to log in to Supabase during setup.
Can I use the Supabase MCP server with a local Supabase instance?
Yes. If you run Supabase locally with the Supabase CLI, the MCP server is available at http://localhost:54321/mcp. It offers a limited subset of tools.
Can I restrict the Supabase MCP server to read-only access?
The source says the server accepts a read_only=true URL parameter, and the AI SDK client has a readOnly option that excludes mutating tools.
How do I install Supabase?
In Claude Code run claude mcp add supabase -e SUPABASE_ACCESS_TOKEN=YOUR_SUPABASE_ACCESS_TOKEN -- npx -y @supabase/mcp-server-supabase. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Supabase the official server?
Supabase is published by supabase.com from its verified domain in the official MCP Registry.
Is Supabase free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Supabase safe to use?
It scores 97 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Supabase?
Similar MCP servers: ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases, MCP Toolbox for Databases.
Does Supabase work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
