supabase/mcp
Connect Supabase to your AI assistants
What it solves
AI assistants like Cursor, Claude, and Windsurf need a standardized way to interact with external services. Supabase MCP Server implements the Model Context Protocol (MCP), allowing these assistants to directly connect to Supabase projects. This enables tasks such as managing tables, fetching configuration, and querying data without leaving the assistant's interface.
How it works
The server is an HTTP endpoint (https://mcp.supabase.com/mcp) that speaks MCP. You configure your MCP client with that URL, and during setup it prompts you to log in to Supabase. It also works locally via the Supabase CLI (at http://localhost:54321/mcp) and in self-hosted setups, though those offer a limited tool subset and no OAuth. For developers using Vercel AI SDK, the package exports createToolSchemas() to get typed input/output schemas. For self-hosting, createSupabaseMcpHandler() lets you serve the tools from your own endpoint. An optional observer can collect request lifecycle facts for observability.
Who it's for
Developers who use Supabase and want to let AI assistants (Cursor, Claude, Windsurf, etc.) directly interact with their Supabase projects—querying data, managing tables, and retrieving config—without manual switching between tools.
Highlights
- Standard MCP protocol, so it works with any MCP-compatible AI client.
- Hosted endpoint with OAuth login, making setup simple.
- Also runs locally via Supabase CLI and can be self-hosted for custom deployments.
- Provides typed schemas (
createToolSchemas()) for Vercel AI SDK integration. - Exposes
createSupabaseMcpHandler()to embed the server in your own Node.js HTTP stack. - Supports an
observerhook to collect request lifecycle data and built-in facts. - Open-source under Apache 2.0.
Related
- Project
- Project
- Project
- Project
- Project