AutomataGet Started

Neon MCP server with per-table permissions

Let Claude, ChatGPT, and Cursor query your Neon 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

Neon already has an MCP server. Why another one?

The official Neon MCP server manages projects, branches, and migrations through the Neon API and runs SQL. You can pin it to a project and turn on read-only mode, and Neon’s own README says it is meant for local development and IDE integrations, not production. It has no setting for which tables the AI may read.

Automata connects to the same Neon 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

    Customer records, 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 Neon organization, and revoking their token leaves everyone else connected.

  • Hide legacy tables that confuse the AI

    Old schemas, archive 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 Neon MCP scopes by project. Automata scopes by table.

Both connect Claude and ChatGPT to Neon over a remote endpoint. They differ in what the AI can reach, who you can safely hand it to, and what they are built for.

Official Neon MCP compared with Automata
CapabilityOfficial Neon MCPAutomata
Which tables the AI can readEvery table the connected role can reachOnly the tables on the token allowlist
Sharing with someone elseThey sign in with a Neon account that can reach the projectSend a scoped token; no Neon account needed
Revoking accessRemove their access to the Neon projectRevoke one token; other clients keep working
What the AI can doSQL, projects, branches, and migrations through the Neon APIRead queries; writes only if you enable them, capped by row count
Intended useLocal development and IDE integrations, per Neon’s READMERead-only analytics on live data, with every plan checked

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

Token scope

Enforced server-side

Neon tables

automata_reader@main · neon.tech

  • public.orders

    Commerce · 312k rows

    Read
  • public.invoices

    Billing · 212k rows

    Read
  • public.events

    Product analytics · 9.4M rows

    Read
  • public.customers

    Contains personal data

    Blocked
  • archive.orders_2019

    Legacy · unused since 2021

    Blocked

Enabled tools

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

Out-of-scope query refused

public.customers · 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

Neon 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 Neon to Claude in three steps

  1. 1

    Create a read-only role

    In the Neon SQL Editor, create a role that can only SELECT the tables you want the AI to analyze. Don’t connect as the database owner: 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.invoices,
      public.events to automata_reader;
  2. 2

    Copy the connection string

    In the Neon console, open Connect, pick your branch, database, and the new role, and turn off connection pooling to get the direct host. The string already includes sslmode=require.

  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.

Tip: point the connection at a Neon read replica so AI-written queries never compete with production traffic.

Use cases

What you can ask once Neon is connected

  • “Break down monthly recurring revenue by plan for the last six months.”
  • “Which signup cohorts have the lowest week-4 retention?”
  • “What share of orders were refunded in each region last month?”
  • “Compare this week’s signups with the average week this quarter.”

FAQ

Neon MCP questions

Does the official Neon MCP support per-table permissions?

No. It can be pinned to a project and switched to read-only, but it has no table allowlist, so the AI can read every table the connected role can reach. Automata adds that allowlist per connector token.

Can I use Automata and the official Neon MCP together?

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

Can I share a Neon 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 work with Neon branches?

Yes. Each branch has its own connection string, so add one Automata connection per branch you want the AI to reach, such as main for live analytics or a copy for experiments.

Which Neon connection string should I use?

The direct (non-pooled) string from Connect in the Neon console, with your read-only role as the user. It already includes sslmode=require. Neon’s pooled endpoint runs PgBouncer in transaction mode, which has not been tested with Automata.

Does it work with scale to zero?

Yes. A suspended Neon compute starts when Automata connects, so the first query after an idle period can take a little longer.

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 Neon tables it needs, not your whole database.

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