mcpbeat Sign in

Postgres MCP Server

local only

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

PostgreSQL MCP — query databases, inspect schemas, explain queries.

Installs per day peak 132 · avg 5
a month agotoday
34
Installs / week
npm · mcp-pg-server
0
Stars
0 open issues
12 Aug 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

Nothing serious here today

Today is the operative word: we check 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

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 postgres -- npx -y mcp-pg-server
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "postgres": {
      "args": [
        "-y",
        "mcp-pg-server"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.postgres]
command = "npx"
args = ["-y", "mcp-pg-server"]
.cursor/mcp.json
{
  "mcpServers": {
    "postgres": {
      "args": [
        "-y",
        "mcp-pg-server"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "postgres": {
      "args": [
        "-y",
        "mcp-pg-server"
      ],
      "command": "npx"
    }
  }
}

Alternatives to Postgres

same job, measured the same way
Sqlite
by ofershap

SQLite MCP — query databases, inspect schemas, explain queries, export data.

139 installs/wk local only
Database Admin
by cybeleri

Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL

26 installs/wk local only
Postgres
by waystation

Connect to your PostgreSQL database to query data and schemas.

answering
I
Postgres Connector
by martymarkenson

MCP server for querying PostgreSQL databases

30 installs/wk local only
PostgreSQL MCP Server
by musaddiq-dev

Python MCP server for PostgreSQL database inspection and querying

77 installs/wk local only
Grain
by pattrnlabs

Run SQL queries and inspect database schemas through safe, visible MCP tools.

191 installs/wk local only
SQL Preview
by fadnavismehul

Run governed SQL queries and inspect database schemas from MCP agents.

80 installs/wk local only
Berth
by seayniclabs

Database management — query, schema inspection, migrations for PostgreSQL, MySQL, SQLite.

91 installs/wk local only

Postgres — questions

Answers built from our own checks of this server.

Why is there no uptime for Postgres?
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 mcp-pg-server was installed 34 times last week.
How do I connect Postgres?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls mcp-pg-server straight from npm; nothing to host, nothing to sign up for.
How many people use Postgres?
The npm package mcp-pg-server was installed 34 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 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.