Back to Supabase

Supabase Plugin for AI Coding Agents

apps/docs/content/guides/ai-tools/plugins.mdx

1.26.082.6 KB
Original Source

The Supabase Plugin for AI Coding Agents gives your AI coding agent everything it needs to work with Supabase. It bundles the Supabase MCP server and Supabase agent skills so your agent can query your database, manage migrations, deploy Edge Functions, and follow Supabase and Postgres best practices — without manual configuration.

Quick installation

bash
npx plugins add supabase-community/supabase-plugin

The plugins package auto-detects your installed AI coding agents and installs the Supabase plugin to all of them with one command. Use --yes to skip the confirmation prompt.

Or, follow the manual installation steps for your specific agent.

Why use the plugin?

Plugins for AI coding agents are packages of AI agent extensions. A single plugin can bundle any combination of:

  • MCP servers — external tool integrations that let your agent interact with services like Supabase
  • Skills — procedural knowledge and context your agent loads on demand to work more accurately
  • Hooks — event handlers that run at agent lifecycle points (e.g. before or after a tool call)
  • Agents — specialized sub-agents with specific personas and tool configurations
  • Slash commands — custom commands you can invoke directly in chat

Bundling the MCP server and agent skills into a single plugin means you can set up both in one step. You can also install them separately if you prefer. You can install the plugin globally to use it across all your projects, or per project to keep it isolated.

What's included

Supabase MCP server

The Supabase MCP server connects your AI coding agent directly to your Supabase projects. Once authenticated, your agent can query your database, manage migrations, deploy Edge Functions, and more — see the full list of available tools.

Supabase agent skills

Skills provide your agent with Supabase-specific procedural knowledge:

  • supabase — Core guidance for working with Supabase products (Database, Auth, Edge Functions, Storage, Realtime)
  • supabase-postgres-best-practices — Postgres query optimization, schema design, connection management, and RLS patterns

For a full list of available skills and supported agents, see Agent Skills.

Manual installation

Alternatively, choose your AI coding agent and follow the installation steps:

<AgentPluginsPanel />