The pgEdge Postgres Model Context Protocol (MCP) server enables SQL queries against PostgreSQL databases through MCP-compatible clients. The Natural
Connect Pgedge Postgres MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. The pgEdge Postgres Model Context Protocol (MCP) server enables SQL queries against PostgreSQL databases through MCP-compatible clients. The Natural Language Agent provides supporting functionality that allows you to use natural language. The pgedge postgres mcp mcp server is what makes that connection.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
Reference — Using MCP ToolsContributing — Development SetupRead — Only Protection** - All queries run in read-onlyResources — Access PostgreSQL statistics and moreTools — Query execution, schema analysis, advanced hybridPrompts — Guided workflows for semantic search setup,Secure — TLS support, user and token auth, read-onlygolangci — lint v1.x (for linting)Client — TransportCursor — StdioWindsurf — StdioPrerequisites — The Prerequisites tool exposed by this serverConfiguration is passed through the environment: TEST_PGEDGE_POSTGRES_CONNECTION_STRING. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Pgedge Postgres MCP's toolset — Reference, Contributing, Read and 11 more — is a fair guide to whether it matches your workflow. It is maintained by pgedge; 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 |
|---|---|
| Reference | [Using MCP Tools](docs/reference/tools.md) |
| Contributing | [Development Setup](docs/contributing/development.md) |
| Read | Only Protection** - All queries run in read-only |
| Resources | Access PostgreSQL statistics and more |
| Tools | Query execution, schema analysis, advanced hybrid |
| Prompts | Guided workflows for semantic search setup, |
| Secure | TLS support, user and token auth, read-only |
| golangci | lint v1.x (for linting) |
| Client | Transport |
| Cursor | Stdio |
| Windsurf | Stdio |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Building | The Building tool exposed by this server. |
| Testing | The Testing tool exposed by this server. |
| Variable | Description | Required |
|---|---|---|
| TEST_PGEDGE_POSTGRES_CONNECTION_STRING | Configuration value read at startup. | Optional |
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.