04 Apr 2025 · 9 minute read
By Greg Richardson, Engineering
MCP stands for Model Context Protocol. It standardizes how Large Language Models (LLMs) talk to platforms like Supabase.
An official Supabase MCP server has been launched. You can use this server to connect your favorite AI tools (such as Cursor or Claude) directly with Supabase.
Our MCP server connects your AI tools to Supabase so that they can perform tasks like launching databases, managing tables, fetching config, and querying data on your behalf.
MCP servers use Tools, which are a bit like "abilities". There are over 20 tools available in the Supabase MCP server.
You can:
For a full list of abilities, see Tools in the project README.
Configuration example for .cursor/mcp.json:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"<personal-access-token>"
]
}
}
}
You'll need to create a personal access token (PAT) for the <personal-access-token> field. This token authenticates the MCP server with your Supabase account.
Some clients expect a slightly modified JSON format, and Windows users will have to prefix this command with cmd /c. For detailed step-by-step instructions for each client and OS, see the MCP documentation.
Most large language models (LLMs) today support "tool calling" where the model can choose to invoke a developer-provided tool based on the context of the conversation. MCP standardizes the tool ecosystem by creating a protocol understood by both clients (eg. Cursor) and tool providers (eg. Supabase), while decoupling them from each other.
MCP also incorporates optional primitives beyond tool calling: resources and prompts. Resources allow servers to expose arbitrary data and content that can be read by clients and used as context for LLMs. Prompts allow servers to define reusable prompt templates that clients can surface to users and LLMs.
Supabase Edge Functions allow you to run custom, server side code from the edge network. The ability to create and deploy Edge Functions directly from your favorite AI assistant is on the roadmap.
The latest revision of the MCP spec now includes official authorization support. Future versions will allow you to authenticate with Supabase using a standard OAuth 2 login flow, eliminating the need to manually create a personal access token.
Currently the MCP server provides a single list_tables tool. Future improvements will provide better structured access to other database objects like views, triggers, functions, and policies.
Additional protections like auto-detecting destructive operations and requiring confirmation before executing them are planned, leveraging Supabase's database branching capability.
Check out the docs for the latest updates and examples. For issues or feature requests, open an issue on the GitHub repo.
Fetched March 31, 2026