Endaoment Postgres MCP Server

Enables AI models to interact with PostgreSQL databases through a standardized protocol.

Local serverstdioGo 2

What is the Endaoment Postgres MCP server?

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.

What it actually does

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.

  • Connects to a PostgreSQL database using connection pooling
  • Implements the Model Context Protocol for AI model interaction
  • Provides database schema information as resources
  • Allows executing SQL queries with retry logic
  • Handles connection errors gracefully

Its toolset

Everything the assistant can do here goes through one of these:

  • query — Execute SQL queries with retry logic

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Configuration

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.

  • Node.js 20 or higher - PostgreSQL database - Access credentials for the database

When to reach for it

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.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the endaoment postgres mcp server does with a few real requests.

Available tools

ToolWhat it does
queryExecute SQL queries with retry logic

Configuration

  • Node.js 20 or higher - PostgreSQL database - Access credentials for the database
VariableDescriptionRequired
DB_USERConfiguration value read at startup.Optional
DB_PASSWORDConfiguration value read at startup.Optional
DB_HOSTEndpoint or connection string the server talks to.Optional
DB_PORTConfiguration value read at startup.Optional
DB_NAMEConfiguration value read at startup.Optional
DB_CREDENTIALSConfiguration value read at startup.Optional

Example prompts to try

  • Use Endaoment Postgres to query.

Frequently asked questions

Endaoment Postgres integrates with Cursor AI using the Model Context Protocol. It includes a pre-configured `.cursor/mcp.json` file for automatic setup. You can also manually configure the server in Cursor settings.