supabase-community/supabase-mcp logo

supabase-community/supabase-mcp

Free

Supabase 官方 MCP 服务器,将 AI 助手直接连接到你的 Supabase 项目,允许执行任务如管理表、获取配置和查询数据。

FreeFree tier
Type
Open Source
Company
Supabase

About supabase-community/supabase-mcp

Supabase MCP Server is an official Model Context Protocol server that connects AI assistants directly to Supabase projects. It enables LLMs to perform database management tasks such as creating and managing tables, fetching configuration, and querying data. The server supports integration with various AI assistants including Cursor, Claude, Windsurf, and others. It offers multiple deployment options: cloud via Supabase dashboard, local development via Supabase CLI, and self-hosted. The server uses OAuth 2.1 for authentication in the cloud version and provides security best practices to mitigate risks. Additionally, it includes an @supabase/mcp-server-supabase package for integration with the Vercel AI SDK.

Key Features

Connect to AI assistants like Cursor, Claude, Windsurf, and others
Manage tables, fetch config, and query data via natural language
Supports local development with Supabase CLI (limited tools, no OAuth)
Self-hosted option for custom environments (limited tools, no OAuth)
OAuth 2.1 authentication for cloud-hosted version
Custom MCP URL generation from Supabase dashboard for easy client setup
Integration with AI SDK's MCP client using @supabase/mcp-server-supabase package for static tools and TypeScript types
Security best practices guide and risk mitigation recommendations

Pros & Cons

Pros
  • Official Supabase solution with ongoing maintenance and updates
  • Easy setup with standard MCP clients (just a JSON config)
  • Supports multiple deployment options (cloud, local, self-hosted)
  • Uses standard MCP protocol for broad compatibility
  • Security-focused with published best practices
  • Provides TypeScript type safety for AI SDK integrations
Cons
  • CLI and self-hosted environments have limited tools and lack OAuth 2.1 authentication
  • Requires a Supabase project and authentication, adding setup overhead
  • Potential security risks when connecting LLMs directly to databases

Best For

Database management via AI assistants without manual SQLQuerying and exploring data in natural languageConfiguration management for Supabase projectsAutomating development workflows with AI-powered tools