Enables AI models to interact with PostgreSQL databases through a standardized protocol.
Enables AI models to interact with PostgreSQL databases through a standardized protocol. Exposed over MCP by the endaoment postgres mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
This project implements a Model Context Protocol (MCP) server that connects to a PostgreSQL database. It allows AI models to interact with your database through a standardized protocol.
Everything the assistant can do here goes through one of these:
query — Execute SQL queries with retry logicSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
You will need 6 environment variables: DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME, DB_CREDENTIALS. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Endaoment Postgres's toolset — query — is a fair guide to whether it matches your workflow. It is maintained by endaoment; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Endaoment Postgres's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| query | Execute SQL queries with retry logic |
| Variable | Description | Required |
|---|---|---|
| DB_USER | Configuration value read at startup. | Optional |
| DB_PASSWORD | Configuration value read at startup. | Optional |
| DB_HOST | Endpoint or connection string the server talks to. | Optional |
| DB_PORT | Configuration value read at startup. | Optional |
| DB_NAME | Configuration value read at startup. | Optional |
| DB_CREDENTIALS | 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.