Supabase MCP server
com.supabase · Updated
MCP server for interacting with the Supabase platform
At a glance
Supabase is an MCP server in the Databases & Storage category. It runs locally over stdio via `npx -y @supabase/mcp-server-supabase`, and needs SUPABASE_ACCESS_TOKEN. It scores A (95/100) on the MCP Skills Hub health score as of Oct 28, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install Supabase in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install Supabase in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add supabase -e 'SUPABASE_ACCESS_TOKEN=<SUPABASE_ACCESS_TOKEN>' -- npx -y @supabase/mcp-server-supabaseFill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Verify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes. It discovers them automatically.
How to install Supabase in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase" ], "env": { "SUPABASE_ACCESS_TOKEN": "<SUPABASE_ACCESS_TOKEN>" } } } }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install Supabase in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase" ], "env": { "SUPABASE_ACCESS_TOKEN": "<SUPABASE_ACCESS_TOKEN>" } } } }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install Supabase in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.supabase] command = "npx" args = ["-y", "@supabase/mcp-server-supabase"] env = { SUPABASE_ACCESS_TOKEN = "<SUPABASE_ACCESS_TOKEN>" }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install Supabase in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase" ], "env": { "SUPABASE_ACCESS_TOKEN": "<SUPABASE_ACCESS_TOKEN>" } } } }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install Supabase in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase" ], "env": { "SUPABASE_ACCESS_TOKEN": "<SUPABASE_ACCESS_TOKEN>" } } } }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
How to install Supabase in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "supabase": { "type": "stdio", "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase" ], "env": { "SUPABASE_ACCESS_TOKEN": "<SUPABASE_ACCESS_TOKEN>" } } } }Fill in your credentials
Replace <SUPABASE_ACCESS_TOKEN> with your real value. Keep secrets out of any config file you commit.
Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What does Supabase need from you?
API key — Personal access token for Supabase API
SUPABASE_ACCESS_TOKENrequiredsecretEnvironment variablePersonal access token for Supabase API
Pass secrets through your shell environment rather than committing them into a config file.
What tools does Supabase expose?
This server runs as a local package. We only query remote servers for their tool list — asking this one would mean executing it, so its tools are listed in the documentation below.
What the code can do
Read from the published package source — never executed. Parsed 18 of 18 source files.
The code this server ships can make network requests and read your environment variables.
This package ships bundled code— its dependencies are compiled into the published files. The capabilities below are really in what runs on your machine, but they may come from a bundled library rather than the author's own source.
How it was published
- Published by a verified CI identity (github trusted publishing) rather than a personal token.
- Has a provenance attestation tying this artifact to the commit it was built from.
- 2 npm maintainers · last published by GitHub Actions.
Maintainer of this package and think something here is wrong? Tell us and we'll correct it.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Runs code on your machine — Executes as a local process with your user's permissions, including filesystem access.
- Downloads at launch — The package is fetched from its registry each run unless you pin a version.
- Last commit today — Actively maintained.
- 3.0k GitHub stars — Community adoption signal.
- 100k weekly downloads — Regularly installed by other developers.
Client compatibility
Health score
A · 95Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%100%
Last commit 0 days ago.
- Adoption20%100%
2982 stars, 100128 weekly downloads.
- Transparency20%75%
3/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✗ discoverable tool list.
- Provenance15%100%
Package and registry entry point at the same repository.
- Packaging15%100%
Publishes a pinned version (0.14.0).
Documentation
Full READMESupabase MCP Server
Connect your Supabase projects to Cursor, Claude, Windsurf, and other AI assistants.
The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.
Setup
1. Follow our security best practices
Before setting up the MCP server, we recommend you read our security best practices to understand the risks of connecting an LLM to your Supabase projects and how to mitigate them.
2. Configure your MCP client
To configure the Supabase MCP server on your client, visit our setup documentation. You can also generate a custom MCP URL for your project by visiting the MCP connection tab in the Supabase dashboard.
Your MCP client will automatically prompt you to log in to Supabase during setup. Be sure to choose the organization that contains the project you wish to work with.
Most MCP clients require the following information:
{
"mcpServers": {
"supabase": {
"type": "http",
"url": "https://mcp.supabase.com/mcp"
}
}
}If you don't see your MCP client listed in our documentation, check your client's MCP documentation and copy the above MCP information into their expected format (json, yaml, etc).
CLI
If you're running Supabase locally with Supabase CLI, you can access the MCP server at http://localhost:54321/mcp. Currently, the MCP Server in CLI environments offers a limited subset of tools and no OAuth 2.1.
Excerpt — the full document is on GitHub.
Alternatives to Supabase
- supabaseC · 57Connect to your Supabase database to query data and schemas.
- read-only-local-mysql-mcp-serverA · 85MCP server for read-only MySQL database queries in Claude Desktop
- read-only-local-postgres-mcp-serverA · 83MCP server for read-only PostgreSQL database queries in Claude Desktop
- Kaiva Postgres MCPA · 85Read-only PostgreSQL MCP server. Drop-in replacement for the archived server-postgres.
Maintain Supabase? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/com-supabase-mcp)Catalog data refreshed . Something wrong? Report it.