Skip to content
portward

Guide · checked

Read-only database access in Claude for a whole team: five ways, compared

If only you ask, use your database vendor's connector in read-only mode. If your team already has Metabase, use its MCP server. If several people who have no database account need different views, the choice is between writing a role per person yourself and using a tool that does it for you. This page compares the five common ways, with what each one's own docs say.

Portward wrote this page and makes one of the tools it mentions. Each claim about another company links to the page it came from. Found an error? Write to admin@portward.ai and we'll correct it and update the date.

The short version

Five ways to give a team read-only database access in Claude. Checked 2026-11-24.
OptionBest forWhat a teammate needsPer-person scopeRows and sensitive numbersRecord of what the AI readWho runs itWatch out for
Shared read-only loginOne technical person, or a team that's fine with one viewThe login (shared)No: everyone shares one viewPostgres row security and column grants, written per role by you[12][11]The database sees one user for everyoneYour databaseA guard in the MCP server is not the boundary; the login's grants are[5][6]
Vendor connectorSupabase, Neon, PlanetScaleThe developer, on that vendor's databaseAn account at the vendorFollows the vendor account; PlanetScale lets a member's role limit what they can grant[3]Not offered as a per-person featurePlanetScale tags MCP queries for its Insights view; Supabase and Neon describe none for users[3][1][2]The vendorRuns with the developer's own access on Supabase; Neon advises against production[1][2]
Open-source MCP serverDBHub, Postgres MCP Pro, pgEdgeDevelopers who want to run and configure it themselvesAccess to a server someone runs, or their own setuppgEdge: one database entry per user, so each can use their own role[8]pgEdge with Postgres row security[8]Varies; not a per-person record by defaultYouYou maintain it; a read-only check inside a server has been bypassed[6]
Metabase MCPTeams that already use MetabaseA Metabase accountYes: each request runs with that person's Metabase permissions[9]Row- and column-level permissions are on Pro and Enterprise[10]On Pro and Enterprise, admins can see how people use the MCP server[9]You or Metabase Cloud[10]Needs a Metabase account per person[9]
Portward Team (scoped access per person)Teammates with no database account who each need a different viewTheir own sign-in to Portward; no database loginA set of tables, columns and rows per personRow rules, and a totals-only level for sensitive numbersA receipt per answer, and a log of what each person's AI app was sentPortward (hosted)PostgreSQL and MySQL today; Portward can technically see what passes through

Numbers in brackets point to the sources at the end. Scroll sideways on a small screen. Portward is not only for databases: it applies the same rules to each source it has on offer, PostgreSQL and MySQL today, with warehouses, files and business tools being added. For your own access as a developer (where the password lives, how each server enforces read-only), see ways to give Claude access to your database, compared.

01The database's own lock

A shared read-only login

The cheapest and most direct option. You create one database user that can only read, give it the tables it needs, and put it into whichever MCP server you use. The database itself enforces it, which is the right place for a boundary. DBHub's own README says so: “Read-only mode is a guardrail, not a permission boundary. Always connect with a least-privilege, read-only database user.”[5]

Postgres can go further than read-only: GRANT SELECT works on single columns,[11] and row security policies “restrict, on a per-user basis, which rows can be returned by normal queries”.[12]

Where it falls short for a team

  • One view for everyone. Per-user row security is usually written per database role, so each person needs their own role and has to connect as it. With one shared login, everyone sees the same thing, including columns only some of them should see.
  • One name in the log. Every query arrives as the same database user, so the database can't tell you who asked.
  • Easy to get wrong. Superusers and roles with BYPASSRLS always skip row security, and table owners normally do too.[12] In a 2025 demonstration, an agent connected under Supabase's service_role read private tables, because “service_role bypasses RLS”.[7]
  • It takes time. In an Ask HN thread on giving LLMs database access, one reply to the read-only-account advice was: “This is probably the safest thing to do, also the most time consuming”.[13]
  • Read-only doesn't stop reading. Supabase: “even in read-only mode, prompt injection remains the number one concern.”[4] Whatever the login can read, a steered AI can read too.

Choose it when one technical person asks, or everyone who asks may see the same data.

02Supabase, Neon, PlanetScale

Your database vendor's connector

The quickest start if your database is on Supabase, Neon or PlanetScale. No password to handle: you sign in to the vendor.

  • Supabase: read_only=true runs every query “as a read-only Postgres user”. The server “operates under the context of your developer permissions”, and its docs scope access by project, not by person.[1]
  • Neon: a read-only setting limits its tools to read-safe actions; SQL tools “connect as the database owner” by default, or as a role you name. Neon recommends its MCP server “for development and testing only, not production environments.”[2]
  • PlanetScale: each query runs with “short-lived, ephemeral credentials that are created on demand and deleted immediately after execution”; whoever authorizes it chooses no access, read-only or full access, organization admins can cap query access for everyone, and “a member's role still limits which permissions they can grant.” Queries are tagged so they show up in PlanetScale Insights.[3] Of the three, it goes furthest toward per-person control, for people who are members of your PlanetScale organization.

Where it falls short for a team: a teammate needs an account at the vendor, and on Supabase and Neon what they get is shaped by project and database role, not by who they are.

Choose it when you are the one asking. This is the honest default for a single developer.

03Run it yourself

An open-source database MCP server

Full control, no vendor, and support for many databases. DBHub (MIT licence) connects to Postgres, MySQL and others, and lists “Expose curated, read-only views to non-technical staff via Claude Desktop” as a use case.[5] Postgres MCP Pro (MIT) has a restricted mode that “limits operations to read-only transactions” and calls it “suitable for production environments”.[14] pgEdge's Postgres MCP server can give each user their own database entry, so that “each MCP user sees only the rows that the corresponding PostgreSQL role can access”.[8]

Where it falls short for a team: someone has to run it, keep it updated and write the roles. Read-only checks inside these servers are a second line, not the first: Datadog Security Labs showed that in Anthropic's archived reference Postgres server “a user can stack multiple queries together and the MCP will run them in one shot”, which let a write escape the read-only transaction.[6]

Choose it when you want to own the setup and you have the time to keep per-person roles current.

04Your BI tool

Metabase's MCP server

If your team already uses Metabase, this is likely the best answer. Metabase's MCP server “runs every request with the Metabase permissions of the person who signed in” and “is available on every Metabase plan.” Raw SQL is only allowed where that person can already write native queries.[9]

Where it falls short: each person needs a Metabase account. Per-group tool choices and usage visibility are on Pro and Enterprise,[9] and row- and column-level permissions are on Pro ($575 a month with 10 users) and Enterprise, not Starter.[10]

Choose it when Metabase is already where your team gets numbers.

05Scoped access per person

Portward Team

On Team, teammates who have no database account and no BI seat ask in Claude, and each sees only the set you give them: chosen tables and columns, rows matching a rule (for example region = 'EMEA'), and totals only for sensitive numbers, with groups under 5 rows merged or left out, so a group of one can't give its value away directly (two large groups that differ by one row can still be compared). You connect the database once with a read-only login, from the chat or on Portward's setup page; Portward suggests the columns that look personal and you choose which to keep back. Columns kept back, row rules and totals-only levels are set on Portward's own pages. Each answer has a receipt (tables, columns sent and kept back, row count), and the workspace log shows admins what each member's AI app was sent (names and counts, kept 90 days).

The limits are applied by Portward's engine, outside the model: Claude's SQL is checked to be exactly one SELECT, rewritten to the allowed tables, columns and rows, and run in a read-only transaction. Administrator logins are refused.

Where it falls short

  • PostgreSQL and MySQL today, reachable from the internet. Warehouses, files and business tools are being added.
  • It's hosted. Portward holds your account email, your database login (sealed to your engine's key), your rules and notes, the questions and SQL your AI ran, receipts and usage counts, and the AI log of what the AI was sent. Rows pass through your engine to the AI and are not stored by Portward, except in that AI log, which deletes them after 30 days, and in the results panel, which deletes them after 24 hours. Your engine is separate from every other account's. Portward runs the engine, so it can technically see what passes through it (security page).
  • It's new. Team is open: per-person sets are what Team gives. Free, for one person on one connection, is live today.

Choose it when several people without database accounts need different views, and you don't want to write and maintain a role per person.

Start the 14-day trial

14 days free with a card. Cancel before then and you pay nothing.

Try Free on your own database

06Claude's own settings

What Claude Team does on its own

Claude Team Owners can set each connector action to Always allow, Needs approval or Blocked, for everyone; “individual users can't override it.” Limits by custom role are described for Enterprise plans.[15] Audit logs are listed for Enterprise, not Team.[16] So on Team, every option above gives each person the same connector settings; any per-person difference has to come from the database, the BI tool or the connector itself.

Others worth knowing

QueryBear is a hosted MCP service for Postgres, MySQL and SQLite that lets you “define exactly which tables, columns, and operations each user or agent can access”, and says “every query is logged with who ran it, when, and what was returned.”[17] If table and column access per person is all you need, compare it too.

07Questions

Frequently asked

Is a read-only login enough on its own?

For one person, often yes, if it can read only the tables it needs. For a team it gives everyone one view and one name in the logs.

Can't I just do per-person access in Postgres?

Yes: a role per person, column grants and row security policies.[11][12] Each teammate then needs to connect as their own role, and you keep the roles in step as tables change.

Does a vendor connector work for teammates?

It works for people who have an account with that vendor, with the access their account or the developer's permissions give. It isn't built around a teammate who has no vendor account.

I already pay for Metabase. Do I need Portward?

Probably not. Use Metabase's MCP server.

What does Portward cost?

Free for one person on one connection. Team is $39 a month including 3 active askers, then $10 for each extra one. Team is open, with a 14-day trial.

Sources

Each read on . First published .

  1. [1]Supabase docs: Model context protocol (MCP)
  2. [2]Neon docs: Neon MCP Server
  3. [3]PlanetScale docs: MCP server
  4. [4]Supabase blog: Defense in depth for MCP servers (2025-09-16)
  5. [5]bytebase/dbhub README
  6. [6]Datadog Security Labs: SQL injection in the PostgreSQL MCP server (2025-08-21)
  7. [7]General Analysis: Supabase MCP can leak your entire SQL database (2025-07-08)
  8. [8]pgEdge Postgres MCP Server docs: row-level security
  9. [9]Metabase docs: MCP server
  10. [10]Metabase pricing
  11. [11]PostgreSQL docs: GRANT
  12. [12]PostgreSQL docs: row security policies
  13. [13]Hacker News, Ask HN: How do you safely give LLMs SSH/DB access? (comment 46622387)
  14. [14]crystaldba/postgres-mcp (Postgres MCP Pro)
  15. [15]Claude Help Center: Use connectors to extend Claude's capabilities
  16. [16]Claude pricing
  17. [17]QueryBear