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. 42 installs a week from npm. Last commit 12 Aug 2026.

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

Installs per day peak 12 · avg 5 · +5% w/w
a month agotoday
42
Installs / week
npm · mcp-pg-server
0
Stars
0 open issues
12 Aug 2026
Last commit
1 release 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": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-pg-server"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.postgres]
command = "npx"
args = ["-y", "mcp-pg-server"]
.cursor/mcp.json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-pg-server"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "postgres": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-pg-server"
      ]
    }
  }
}

Alternatives to Postgres

same job, measured the same way
Sqlite
by ofershap

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

143 installs/wk local only
Database Admin
by cybeleri

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

43 installs/wk local only
Postgres
by waystation

Connect to your PostgreSQL database to query data and schemas.

answering
P
Postgres Connector
by martymarkenson

MCP server for querying PostgreSQL databases

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

Python MCP server for PostgreSQL database inspection and querying

104 installs/wk local only
Grain SQL
by pattrnlabs

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

1 468 installs/wk local only
SQL Preview
by fadnavismehul

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

172 installs/wk local only
Pgport
by cloudcorprecords

Read-only SQL queries against a PostgreSQL database.

247 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 42 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 in the form 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 42 times in the last week. Week over week that is +5%. 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.