---
title: "Supabase MCP server: Postgres, migrations and edge functions"
description: "Install the Supabase MCP server in an Aldena project and agents query tables, apply migrations, read logs and advisors, and deploy edge functions."
url: "https://aldena.ai/mcp-servers/supabase"
---

# Let agents build and debug your Supabase backend from a project chat

Supabase MCP server. Install the Supabase MCP server in an Aldena project and agents query tables, apply migrations, read logs and advisors, and deploy edge functions.

- **Sign-in**: Browser sign-in
- **Installs as**: `supabase`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

Supabase gives each project a Postgres database with auth, storage, edge functions and logs around it. Its MCP server lets an agent work on that backend directly: list tables, extensions and migrations, run SQL and apply migrations, read logs and the security and performance advisors, generate TypeScript types, manage Edge Functions, search Supabase's docs, and create or pause projects, acting as the person who signed in.

In an Aldena project the server closes the loop between app code and database. An engineering agent adding a feature writes the migration, applies it to a development project, regenerates the TypeScript types and updates the code in its conversation's sandbox, then opens the pull request through the [GitHub connector](https://aldena.ai/integrations/github). When a bug report comes in, the agent queries the project's logs for the failing requests, checks the advisors for a missing index or policy, and proposes the fix. Creating a project or a branch can cost money, and Supabase quotes that cost before anything is created.

Keep the SQL and migration tools on ask in the project's [permissions](https://aldena.ai/features/human-in-the-loop). For other hosted Postgres, compare the [Neon MCP server](https://aldena.ai/mcp-servers/neon) or the [Prisma MCP server](https://aldena.ai/mcp-servers/prisma), and see the [PostgreSQL integration](https://aldena.ai/integrations/postgresql) for databases you run yourself.

## With Supabase, your agents can

- List tables, extensions and migrations in a Supabase project
- Run SQL and apply schema migrations to the database
- Query project logs and read security and performance advisors
- Generate TypeScript types from the database schema
- List, read and deploy Supabase Edge Functions

## Try asking

- “List the tables in our Supabase project and generate TypeScript types for them into src/types/database.ts on a branch.”
- “Check the Supabase advisors for our staging project and fix any table that is missing row level security in a migration.”
- “Query the Supabase logs for the last hour of 500 errors from the auth service and tell me what they have in common.”

## Server

- **Server URL**: `https://mcp.supabase.com/mcp`
- **Website**: [supabase.com](https://supabase.com)
- **MCP docs**: [Supabase MCP docs](https://supabase.com/docs/guides/ai-tools/mcp)

## How to connect Supabase

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install Supabase.** Search for Supabase and press Install. Aldena adds it as `supabase`.
3. **Sign in to Supabase.** Open the sign-in link Aldena shows and approve. The server then acts as you.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [InstantDB MCP server](https://aldena.ai/mcp-servers/instantdb): Manage apps, schema, and data in InstantDB.
- [Airtable MCP server](https://aldena.ai/mcp-servers/airtable): Read and update bases, tables, and records.
- [Neon MCP server](https://aldena.ai/mcp-servers/neon): Manage Postgres projects, branches, and queries.
- [Prisma MCP server](https://aldena.ai/mcp-servers/prisma): Manage Prisma Postgres databases and schema.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### Which Supabase tools does the marketplace install enable?

The marketplace installs Supabase's base URL, which turns on every feature group your connection supports apart from Storage: database, debugging, development, Edge Functions, account and docs. Branching is experimental and needs a paid plan. To narrow it, press Edit and add Supabase's features parameter to the URL.

### Can I keep the Supabase server read-only or scoped to one project?

Yes. Supabase reads options from the server URL: read_only=true runs every query as a read-only Postgres user, and project_ref limits the connection to one project and turns off the account tools. Press Edit on the server in Aldena and add them to the URL; a new URL reconnects.

### Should an agent connect Supabase to production data?

Supabase warns that connecting a model to your projects carries security risks and asks you to read its security best practices first. A common setup points agents at a development project, keeps execute_sql and apply_migration on ask, and ships schema changes to production as reviewed migrations.
