Postgres Editor with Guardrails
Postgres Editor with Guardrails. That is what the pgconsole mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
@pgplex/pgconsole on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
The server publishes 6 tools. What each one is for:
Autocomplete — context-aware suggestions for tables, columns, joins, and CTEsFormatting — pretty-print or collapse SQL to one lineText-to-SQL — describe a query in natural language, get SQL backPermission — shaped tools** — every agent can list_connections; catalog tools (list_objects, describe_table) appear once it has an accessible connection, andConnection-scoped — permissions are granted per connection, not globallyPrerequisites — The Prerequisites tool exposed by this serverThis sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Pgconsole's toolset — Autocomplete, Formatting, Text-to-SQL and 3 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Autocomplete | context-aware suggestions for tables, columns, joins, and CTEs |
| Formatting | pretty-print or collapse SQL to one line |
| Text-to-SQL | describe a query in natural language, get SQL back |
| Permission | shaped tools** — every agent can list_connections; catalog tools (list_objects, describe_table) appear once it has an accessible connection, and execution tools unlock per grant: explain_query (explain), query (read), wr |
| Connection-scoped | permissions are granted per connection, not globally |
| Prerequisites | The Prerequisites tool exposed by this server. |
{
"mcpServers": {
"pgconsole": {
"command": "npx",
"args": ["-y", "@pgplex/pgconsole"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.