mcpbeat Sign in

Database MCP Postgres MCP Server

local only

Database MCP Postgres runs on your own machine — the client starts it, so there is no endpoint to ping. 58 installs a week from pypi. Last commit 17 Jul 2026.

MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.

Installs per day peak 18 · avg 6 · +109% w/w
a month agotoday
58
Installs / week
npm · @database-mcp/postgres
5
Stars
1 open issues
17 Jul 2026
Last commit
0 releases in 90 days
MIT
License
Python

What the code does

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

Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

Claims read-only, but the code runs commands conformance/leak-check.mjs:23, conformance/run.mjs:101
const child = spawn(command, args, { env: process.env });
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.

File ships in the package but is absent from the source [пакет] src/database_mcp_postgres/__init__.py:1, [пакет] src/database_mcp_postgres/adapter.py:1
этот файл ставится пользователю, но в репозитории его нет
const child = spawn(command, args, { env: process.env });

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

We found things in this code

Code changes quietly between releases, and nobody reads the diff of a dependency. We do, on every release — watch Database MCP Postgres and you get told the day something new turns up.

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

This one needs environment variables set before it will start: POSTGRES_HOST (Database host), POSTGRES_USER (Database user (a read-only user is recommended)), POSTGRES_PASSWORD (Database password (or use POSTGRES_PASSWORD_FILE)), POSTGRES_DATABASE (Database name). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Database MCP Postgres

same job, measured the same way
Database MCP Mariadb
by arifulislamat

MCP server for MariaDB. Read-only by default, row caps, timeouts, secrets never logged.

63 installs/wk local only
Database MCP Mysql
by arifulislamat

MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.

68 installs/wk local only
Database MCP Libsql
by arifulislamat

MCP server for libSQL/Turso, local or remote. Read-only by default, row caps, timeouts.

59 installs/wk local only
Database MCP Sqlite
by arifulislamat

MCP server for SQLite databases. Read-only by default, row caps, statement timeouts.

63 installs/wk local only
Mcpg
by devopam

Production-grade PostgreSQL MCP server — 254 tools for query, tuning & ops, read-only by default.

1 099 installs/wk local only
NexQL Postgres MCP
by nexql-oss

Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere.

97 installs/wk local only
Read Only Local Postgres MCP Server
by hove

MCP server for read-only PostgreSQL database queries in Claude Desktop

159 installs/wk local only
C
Data
by thinair

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

answering

Database MCP Postgres — questions

Answers built from our own checks of this server.

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