mcpbeat Sign in

Postgres (read-only) MCP Server

local only

Postgres (read-only) runs on your own machine — the client starts it, so there is no endpoint to ping. 200 installs a week from npm. Last commit 28 Sep 2026.

Read-only Postgres: drop-in for the archived server-postgres, with schema context.

Installs per day peak 67 · avg 32 · -9% w/w
a month agotoday
200
Installs / week
npm · @contextflo/postgres-mcp
4
Stars
0 open issues
28 Sep 2026
Last commit
4 releases in 90 days
MIT
License
TypeScript

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

Put your own value in place of <DATABASE_URL> (Postgres connection string. Use a read-only role). The author’s registry entry marks it as required.

Nothing serious here today

Today is the operative word: we check Postgres (read-only) 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

Alternatives to Postgres (read-only)

same job, measured the same way
Schemagate
by ashishsinha1602

Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.

2 832 installs/wk local only
M
Mssql Reader
by connorbritain

Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying

2 079 installs/wk local only
PDQ Deploy
by eredden

An MCP server for read-only access to the PDQ Deploy SQLite database.

903 installs/wk local only
DataPilot
by mqfarooqi1

Read-only SQL exploration, schema discovery and data profiling for SQLite and PostgreSQL

474 installs/wk local only
Database MCP
by cocaxcode

MCP server for database connectivity with PostgreSQL, MySQL and SQLite.

377 installs/wk local only
Pg Checkup
by pgcheckup

Read-only PostgreSQL checkups for your AI assistant. Lists what to fix, in order, with the SQL.

371 installs/wk local only
Postgres (read-only transactions)
by poudel0

Drop-in replacement for @modelcontextprotocol/server-postgres that is actually read-only.

251 installs/wk local only
Ainative Postgres MCP
by ainative-studio

Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.

235 installs/wk local only

Postgres (read-only) — questions

Answers built from our own checks of this server.

Why is there no uptime for Postgres (read-only)?
Postgres (read-only) 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 @contextflo/postgres-mcp was installed 200 times last week.
How do I connect Postgres (read-only)?
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 @contextflo/postgres-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Postgres (read-only)?
The npm package @contextflo/postgres-mcp was installed 200 times in the last week. Week over week that is -9%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Postgres (read-only) open source?
Yes — it is published under the MIT licence, written in TypeScript and 4 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.