mcp-postgres-server

antonorlov/mcp-postgres-server
★ 19 stars TypeScript Database Updated 1d ago ⚠ Review
MCP PostgreSQL Server
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-postgres-server": {
      "command": "npx",
      "args": [
        "-y",
        "antonorlov/mcp-postgres-server"
      ]
    }
  }
}

README Excerpt

A Model Context Protocol (MCP) server for PostgreSQL: **read-only by default**, for local, Docker, RDS, Neon, and Supabase databases. The whole server is one file ([`src/index.ts`](src/index.ts), under 900 lines) with four runtime dependencies: the MCP SDK, `pg`, `pg-connection-string`, and `zod` (plus `ssh2`, an optional dependency used only for SSH tunneling).

Tools (20)

DATABASE_URLPG_ALLOW_WRITEPG_CONNECT_TIMEOUTPG_DATABASEPG_ENABLE_RUNTIME_CONNECTPG_HOSTPG_MAX_RESULT_BYTESPG_PASSWORDPG_PORTPG_SSH_AGENTPG_SSH_FINGERPRINTPG_SSH_HOSTPG_SSH_KEEPALIVE_INTERVALPG_SSH_PASSPHRASEPG_SSH_PASSWORDPG_SSH_PORTPG_SSH_PRIVATE_KEYPG_SSH_USERPG_SSLMODEPG_SSL_CA
📊
Working with market or time-series data?
The Polymarket Historical Dataset — 18.5M+ price snapshots across 18,600+ prediction markets (CSV + SQLite). Built for backtesting & ML.
View dataset →