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

MCP server for interacting with PostgreSQL databases

Installs per day peak 49 · avg 7 · +430% w/w
a month agotoday
122
Installs / week
npm · @marcelo-ochoa/server-postgres
2
Stars
0 open issues
21 Aug 2026
Last commit
no releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 4 d ago · rules 995398eba69f

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.

A line of code looks encrypted src/everything/tools/get-tiny-image.ts:6
  "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAKsGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU+kSgOfe9JDQEiIgJfQmSCeAlBBaAAXpYCMkAUKJMRBU7MriClZURLCs6KqIgo0idizYFsWC3QVZBNR1sWDDlXeBQ9jdd9575805c+a7c+efmf+e/z9nLgCdKZDJMlF1gCxpjjwyyI8dn5DIJvUABRiY0kBdIMyWcSMiwgCTUft3+dgGyJC9YzuU69/f/1fREImzh…
Dumps the whole environment src/everything/tools/get-env.ts:34
          text: JSON.stringify(process.env, null, 2),
Long encoded blob in source src/everything/tools/get-tiny-image.ts:6
  "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAKsGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU+kSgOfe9JDQEiIgJfQmSCeAlBBaAAXpYCMkAUKJMRBU7MriClZURLCs6KqIgo0idizYFsWC3QVZBNR1sWDDlXeBQ9jdd9575805c+a7c+efmf+e/z9nLgCdKZDJMlF1gCxpjjwyyI8dn5DIJvUABRiY0kBdIMyWcSMiwgCTUft3+dgGyJC9YzuU69/f/1fREImzh…
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

Asks for container control access .devcontainer/docker-compose-local.yml:18
      - /var/run/docker.sock:/var/run/docker.sock

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

Optional settings from the registry entry, left out of the block above: POSTGRES_USER (PostgreSQL user), POSTGRES_PASSWORD (PostgreSQL password).

Alternatives to Postgres

same job, measured the same way
Oracle
by marcelo-ochoa

MCP server for interacting with Oracle databases

161 installs/wk local only
P
Postgres Connector
by martymarkenson

MCP server for querying PostgreSQL databases

64 installs/wk local only
Supabase
by supabase

MCP server for interacting with the Supabase platform

153 380 installs/wk answering
PostgreSQL MCP Server
by musaddiq-dev

Python MCP server for PostgreSQL database inspection and querying

115 installs/wk local only
Fastmcp Sqltools
by atarkowska

A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.

88 installs/wk local only
Mysql
by marcelo-ochoa

An MCP server for MySQL databases.

114 installs/wk local only
DB MCP Server
by stucchi

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

178 installs/wk local only
Dbmcp
by haymon

Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention

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 @marcelo-ochoa/server-postgres was installed 122 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 @marcelo-ochoa/server-postgres straight from npm; nothing to host, nothing to sign up for.
How many people use Postgres?
The npm package @marcelo-ochoa/server-postgres was installed 122 times in the last week. Week over week that is +430%. 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 2 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.