Supabase MCP Server
Connects AI assistants to Supabase projects to inspect databases, run queries, and work with project resources through MCP.
Connect MCP
Copy the setup for your client. YourAgents does not run it or ask for tokens.
After adding the server, sign in through your client and review the requested permissions. This connection is restricted to read-only access.
Codex
Run the command in your terminal, then sign in if prompted.
codex mcp add supabase-readonly --url https://mcp.supabase.com/mcp\?read_only\=true\&features\=database,docs
codex mcp login supabase-readonly
Claude Code
Run the command in your terminal, then sign in if prompted.
claude mcp add --transport http supabase-readonly https://mcp.supabase.com/mcp\?read_only\=true\&features\=database,docs
# Claude Code: /mcp
Cursor · .cursor/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"mcpServers": {
"supabase-readonly": {
"url": "https://mcp.supabase.com/mcp?read_only=true&features=database,docs"
}
}
}
VS Code · .vscode/mcp.json
If you already have a config file, merge only this server entry and keep the other settings.
{
"servers": {
"supabase-readonly": {
"type": "http",
"url": "https://mcp.supabase.com/mcp?read_only=true&features=database,docs"
}
}
}
Description
Supabase MCP Server is the official Model Context Protocol connection between AI clients and Supabase projects. It exposes approved database and project operations as tools an assistant can invoke. The server can inspect database structure and execute SQL queries. Depending on enabled tool groups, it can also provide documentation, debugging information, and development operations involving functions or project branches. The hosted endpoint at mcp.supabase.com uses Supabase account authorization. Connections can be scoped to a single project, made read-only, and limited to selected groups of tools. A Supabase account and suitable permissions are required. Connecting production databases creates risks of data exposure and unintended changes, so the vendor recommends restricted access and reviewing tool calls. Supabase infrastructure costs are separate.