PostgreSQL MCP server for Claude, ChatGPT and Cursor

Ask Claude, Cursor, ChatGPT, or any other MCP client something like "how many signups came in on the Pro plan this week?" and it queries your live PostgreSQL database for the real answer. SaturnSQL's hosted MCP server gives it the tools, no config file or local process required.

ClaudeMCP · postgres
You
How many signups did we get last week, broken down by plan?
execute_query
SELECT plan, COUNT(*) AS signups
FROM users
WHERE created_at > now() - interval '7 days'
GROUP BY plan
ORDER BY 2 DESC;
plansignups
free142
starter31
pro9
Claude
182 signups last week, mostly free plan.

Setup

1. Add your Postgres connection in SaturnSQL (host, port, database, credentials, or a connection string, over SSL or an SSH tunnel).

2. Click your name in the sidebar, then Install MCP, and pick your client: Claude, ChatGPT, Cursor or Claude Code. You add https://mcp.saturnsql.com/mcp and sign in with your SaturnSQL account, with no API key to copy and no local Postgres MCP server to run or maintain.

Your AI client can now ask for your table list, inspect columns and foreign keys, and run SQL against the database, with the same row limits SaturnSQL uses everywhere else, and read-only when the connection is in read-only mode (the default for new connections).

Other PostgreSQL MCP servers

There are good Postgres MCP servers, and which one fits depends on where your database lives. The original reference server is archived, so do not start there.

ServerRuns asWorks withRead-only
Postgres MCP ProLocal process (Docker or Python)Any PostgresRestricted mode: read-only transactions plus a time limit
Supabase MCPHosted, OAuthSupabase projects onlyread_only=true runs queries as a read-only user
Neon MCPHosted, OAuth or API keyNeon projects only (Neon advises against production use)readonly=true limits it to read queries
AWS Labs Postgres MCPLocal process, AWS credentialsAurora and RDS for PostgreSQLRead-only unless started with --allow_write_query
Reference server (server-postgres)Archived in May 2025Any PostgresIts read-only transaction could be escaped with a multi-statement query
SaturnSQLHosted, OAuthPostgreSQL and every other engine SaturnSQL connects toRead-only mode (on for new connections): one SELECT, WITH or EXPLAIN statement per call

Checked against each project's docs on 8 October 2026.

Supabase and Neon are the natural pick if your database lives there and nowhere else. SaturnSQL fits when you have Postgres on RDS, a VPS or behind a bastion, more than one engine, or a team that should share the queries the AI writes. It works with Supabase and Neon databases too. For every engine side by side, see the best MCP servers for databases.

Common questions

Does it work with Postgres on RDS, Supabase, or self-hosted? Yes, anywhere SaturnSQL can reach over TCP, with SSL or an SSH tunnel where required.

Can I limit my AI client to specific tables? Use a Postgres role with grants on only the schemas you want exposed, then connect with that role. See setting up a read-only database user.

What plan do I need? The MCP server is included on SaturnSQL Starter and above. The free plan can try the editor with one connection, but it cannot connect an AI client.

Does the AI client see my database password? No. The connection and its credentials stay encrypted in SaturnSQL. Your AI client signs in with your SaturnSQL account and only receives query results.

Can it change or delete data? Not unless you allow it. New connections start in read-only mode, where every query must be a single SELECT, WITH or EXPLAIN statement. Keep read-only mode on for the connections your AI client uses, and connect with a read-only database user as well.

Rolling this out to a team? Database governance for MCP and AI covers choosing, per connection, what AI clients may query.

Other databases

Not on Postgres? Claude, ChatGPT, Cursor, and Claude Code all connect to MySQL, Oracle, BigQuery, SQL Server, ClickHouse, and Redshift the same way, or see the full MCP server overview for the rest. Using Claude Dashboards? It has no built-in Postgres connection, but it can query Postgres through SaturnSQL: see Claude Dashboards on your database.

Get answers from your Postgres data in Claude, Cursor, or ChatGPT