mcpbeat Sign in

PostgreSQL MCP Server

local only

PostgreSQL MCP Server runs on your own machine — the client starts it, so there is no endpoint to ping. 4 335 installs a week from npm. Last commit 15 Sep 2026.

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

Installs per day peak 17 707 · avg 1 374 · -82% w/w
a month agotoday
4 335
Installs / week
npm · @yawlabs/postgres-mcp
5
Stars
5 open issues
15 Sep 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 17 h ago · rules 3dff92dd89df

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

    const out = execFileSync(cmd, ["--version"], {
Touches key and credential files release.sh:776
  If the error was E401 or E404, the automation token in ~/.npmrc is dead.

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

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

Alternatives to PostgreSQL MCP Server

same job, measured the same way
Snowflake MCP Server
by nsphung

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

591 installs/wk local only
DBeast PostgreSQL MCP
by snss10

PostgreSQL MCP server for schema, query, health, security, and performance analysis.

local only
PostgreSQL MCP Server
by musaddiq-dev

Python MCP server for PostgreSQL database inspection and querying

77 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 ofershap

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

34 installs/wk local only
SqlServerMcp
by nithish1206

MCP server for SQL Server: schema inspection, safe read-only queries, query plan analysis

local only
JDBC MCP Server
by igorolv

Read-only PostgreSQL, Oracle and SQL Server access for AI agents: SQL, plans, schema, index stats

local only
C
Data
by thinair

PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.

answering

PostgreSQL MCP Server — questions

Answers built from our own checks of this server.

Why is there no uptime for PostgreSQL MCP Server?
PostgreSQL MCP Server 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 @yawlabs/postgres-mcp was installed 4 335 times last week.
How do I connect PostgreSQL MCP Server?
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 @yawlabs/postgres-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use PostgreSQL MCP Server?
The npm package @yawlabs/postgres-mcp was installed 4 335 times in the last week. Week over week that is -82%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is PostgreSQL MCP Server open source?
Yes — it is published under the MIT licence, written in TypeScript, 5 stars on GitHub and 5 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.