mcpbeat Sign in

MCP Postgres MCP Server

local only

MCP Postgres runs on your own machine — the client starts it, so there is no endpoint to ping. 319 installs a week from npm. Last commit 30 Nov 2026.

PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.

Installs per day peak 187 · avg 10
a month agotoday
319
Installs / week
npm · @dockndevai/mcp-postgres
0
Stars
0 open issues
30 Nov 2026
Last commit
2 releases in 90 days
MIT
License
TypeScript

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add mcp-postgres -e 'POSTGRES_URL=<POSTGRES_URL>' -- npx -y @dockndevai/mcp-postgres
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-postgres"
      ],
      "env": {
        "POSTGRES_URL": "<POSTGRES_URL>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.mcp-postgres]
command = "npx"
args = ["-y", "@dockndevai/mcp-postgres"]
env = { POSTGRES_URL = "<POSTGRES_URL>" }
.cursor/mcp.json
{
  "mcpServers": {
    "mcp-postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-postgres"
      ],
      "env": {
        "POSTGRES_URL": "<POSTGRES_URL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-postgres": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-postgres"
      ],
      "env": {
        "POSTGRES_URL": "<POSTGRES_URL>"
      }
    }
  }
}

Put your own value in place of <POSTGRES_URL> (libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE)). The author’s registry entry marks it as required.

Optional settings from the registry entry, left out of the block above: POSTGRES_MODE (Access mode: read-only | read-write | admin), POSTGRES_SCHEMA_ALLOWLIST (Comma-separated schemas the agent may touch (empty = all)).

Nothing serious here today

Today is the operative word: we check MCP Postgres every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Alternatives to MCP Postgres

same job, measured the same way
PostgreSQL MCP Server
by yawlabs

PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants

3 125 installs/wk local only
ROUA: read-only database accounts
by promisegithub

Create and audit read-only database accounts for AI agents: PostgreSQL, MySQL, SQL Server and more.

1 368 installs/wk local only
Snowflake MCP Server
by nsphung

A Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants

1 209 installs/wk local only
PostgreSQL (hardened, read-only)
by eszetael

Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.

554 installs/wk local only
DataPilot
by mqfarooqi1

Read-only SQL exploration, schema discovery and data profiling for SQLite and PostgreSQL

521 installs/wk local only
PostgreSQL CVE & Release Intelligence
by meob

PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths

518 installs/wk local only
Pg Checkup
by pgcheckup

Read-only PostgreSQL checkups for your AI assistant. Lists what to fix, in order, with the SQL.

414 installs/wk local only
SignOff Studio
by samuccaya

Local API and database verification for AI coding agents: HTTP checks and read-only SQL.

327 installs/wk local only

MCP Postgres — questions

Answers built from our own checks of this server.

Why is there no uptime for MCP Postgres?
MCP Postgres runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @dockndevai/mcp-postgres was installed 319 times last week.
How do I connect MCP Postgres?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls @dockndevai/mcp-postgres straight from npm; nothing to host, nothing to sign up for.
How many people use MCP Postgres?
The npm package @dockndevai/mcp-postgres was installed 319 times in the last week. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is MCP Postgres open source?
Yes — it is published under the MIT licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.