AutomataGet Started

Supabase MCP server with per-table permissions

Let Claude, ChatGPT, and Cursor query your Supabase database through only the tables you choose. Sensitive tables, legacy clutter, and everything else stay out of reach.

100% Free· Open source

Example of the Claude chat app using the Automata PostgreSQL MCP server. The user asks Claude how monthly recurring revenue changed by plan over the last six months. Claude checks the database, lists the three tables in scope, is refused when it tries to query user_profiles because that table is outside the token's scope, then queries subscriptions and reports that Team revenue grew 76 percent while Starter has slipped since July.

The gap

Supabase already has an MCP server. Why another one?

The official Supabase MCP server is built for building. It manages tables, migrations, branches, edge functions, and logs, and you can limit it to one project and turn on read-only mode. What it cannot do is limit which tables the AI sees: read-only mode stops changes, not reads, so every table in the project is still fair game.

Automata connects to the same Supabase Postgres database with a connection string and adds a table allowlist to each connector token. Every query is checked against its plan before it runs, and tables off the list never show up at all. Keep the official server for development; use Automata when the AI should only see part of your data.

When you need it

Why per-table permissions matter

  • Keep sensitive tables away from the AI

    auth.users, payment details, and internal notes never reach the model. Tables off the token are hidden from list-tables, and any query that touches one is refused before it runs.

  • Share access without sharing everything

    Give a teammate, contractor, or client a token for just the tables they need. They don’t need a seat in your Supabase organization, and revoking their token leaves everyone else connected.

  • Hide legacy tables that confuse the AI

    Old schemas, backup copies, and orders_v2 tables send the model to the wrong place. Scope the token to the tables that matter, and the AI works from a clean schema.

Compared

The official Supabase MCP scopes by project. Automata scopes by table.

Both connect Claude and ChatGPT to Supabase over a remote endpoint. They differ in what the AI can reach and who you can safely hand it to.

Official Supabase MCP compared with Automata
CapabilityOfficial Supabase MCPAutomata
Which tables the AI can readEvery table in the projectOnly the tables on the token allowlist
Sharing with someone elseThey sign in with a Supabase account that can reach the projectSend a scoped token; no Supabase account needed
Revoking accessRemove their access to the Supabase projectRevoke one token; other clients keep working
What the AI can doSQL, migrations, edge functions, branches, and project settingsRead queries; writes only if you enable them, capped by row count
Query checksRead-only mode, if you turn it onRead-only by default, and every plan checked against the allowlist

Comparing more servers? See the best PostgreSQL MCP servers in 2026, compared.

Token scope

Enforced server-side

Supabase tables

automata_reader · pooler.supabase.com

  • public.orders

    Commerce · 312k rows

    Read
  • public.subscriptions

    Billing · 48k rows

    Read
  • public.events

    Product analytics · 9.4M rows

    Read
  • auth.users

    Emails and sign-in data

    Blocked
  • public.orders_v1_backup

    Legacy · unused since 2023

    Blocked

Enabled tools

  • list-tables
  • describe-table
  • run-query
  • run-statement

Out-of-scope query refused

auth.users · table_outside_token_scope

Run it your way

Free, open source, and yours to inspect.

The control layer protecting your messages and data should not be a black box. Read the code, verify the checks, and deploy Automata wherever your security model requires.

Recommended

Railway

One-click deploy

Skip local setup entirely. Provision the full stack, including Postgres, Redis, and volumes, on Railway in a few minutes.

  • No local Docker required
  • Managed Postgres, Redis, and volumes
  • Add or remove connectors anytime
Deploy on Railway

Self-hosted

Free, forever

Run the Nuxt control plane and Postgres on your machine, VPS, or homelab. Add the WhatsApp or Telegram services only when you need those connectors.

  • MIT licensed source
  • Unlimited scoped connections
  • Credentials stay on your infrastructure
Open the repository

Hosted

Free tier available

Use the same connector and permission model without operating the services yourself. Free for one connection; Pro is $19/month after a 7-day trial.

  • Managed setup and updates
  • The same granular scopes
  • Direct access to the Automata team
Sign up for hosted

Comparing Automata with other tools? Read Muse vs Grok Bot, Best WhatsApp MCPs, Best Postgres MCPs, Automata vs Nango, Automata vs Composio, or see all comparisons.

Reference

Supabase MCP tools

The same tools as the PostgreSQL MCP, each limited to the tables on the token. Disabled tools are never registered, so the AI cannot even try them.

  • get-database-inforead

    Returns the server version, database name, connecting role, and the token table scope.

  • list-tablesread

    Lists only the tables in scope, with schema and name filters.

  • describe-tableread

    Returns columns, keys, constraints, indexes, and comments for one in-scope table.

  • run-queryread

    Runs one SELECT, WITH, VALUES, or TABLE statement in a read-only transaction, with paged results and a timeout, or returns its plan without running it.

  • run-statementwrite

    Runs one INSERT, UPDATE, DELETE, or MERGE. Disabled by default; oversized changes roll back in full.

Full parameters are in the MCP tools reference.

Setup

Connect Supabase to Claude in three steps

  1. 1

    Create a read-only role

    In the Supabase SQL Editor, create a role that can only SELECT the tables you want the AI to analyze. Don’t connect as postgres: the role is the real security boundary.

    create role automata_reader login password '<strong-password>';
    grant usage on schema public to automata_reader;
    grant select on public.orders, public.subscriptions,
      public.events to automata_reader;
  2. 2

    Copy the Session pooler string

    In the dashboard, open Connect and copy the Session pooler connection string, then swap in your role as automata_reader.<project-ref>. Direct db.<ref>.supabase.co hosts are IPv6-only and fail on hosts like Railway.

  3. 3

    Choose tables and add the MCP URL

    Paste the string into Automata, create a connector token with a table allowlist, and add the URL to Claude, ChatGPT, or Cursor. Start with get-database-info to confirm it works.

Claude Code
claude mcp add --transport http automata \
  https://mcp.getautomata.app/mcp/<connector-token>

In Claude.ai or Claude Desktop, open Settings → Customize → Connectors → Add → Add custom connector and paste the same URL. Clients that prefer headers can use /mcp with Authorization: Bearer. See all clients.

Use the Session pooler on port 5432, not the Transaction pooler on port 6543, which has not been tested with Automata.

Use cases

What you can ask once Supabase is connected

  • “Which plans drove most of last month’s new subscriptions?”
  • “Show weekly active users from the events table for the last eight weeks.”
  • “What share of orders were refunded in each country last quarter?”
  • “Which customers upgraded within 30 days of signing up?”

FAQ

Supabase MCP questions

Does the official Supabase MCP support per-table permissions?

No. It can be limited to one project and switched to read-only, but it has no table allowlist, so the AI can read every table in the project. Automata adds that allowlist per connector token.

Can I use Automata and the official Supabase MCP together?

Yes. They do different jobs. Use the official server while you build, for migrations, branches, and edge functions. Use Automata to give Claude or ChatGPT, or another person, read access to specific tables.

How do I keep auth.users and other sensitive tables private?

Leave them off the token’s table list, and don’t grant your database role access to them. Automata hides tables outside the token from list-tables and refuses any query whose plan touches one.

Can I share a Supabase connection with a teammate or client?

Yes. Create a separate connector token for them with only the tables they need. They paste the URL into their own AI client, never see your connection string or your other tables, and you can revoke their token without affecting anyone else.

Does it respect row-level security?

Automata connects as the role in your connection string, so your RLS policies apply to that role unless it bypasses RLS. The connection’s dashboard warns when the role is a superuser or bypasses RLS.

Which Supabase connection string should I use?

The Session pooler string from Connect in the Supabase dashboard, with your own role as the user name, such as automata_reader.<project-ref>. The direct database host is IPv6-only, so it fails on deployments without outbound IPv6 unless you buy Supabase’s IPv4 add-on.

Can the AI change my data?

Only if you allow it. New tokens start with read tools enabled and run-statement disabled. When you enable it, it accepts only INSERT, UPDATE, DELETE, or MERGE, and rolls back changes over the row limit.

Is it free?

Yes. Automata is MIT licensed and free to self-host, including a one-click Railway template. The hosted version at mcp.getautomata.app is free for one connection, with telemetry always on; Pro is $19/month after a 7-day trial.

Give your AI the Supabase tables it needs, not your whole project.

Deploy the free MCP server in minutes and scope each token to exactly the tables it should read.