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.
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.
claude mcp add postgres-mcp -e 'DATABASE_URL=<DATABASE_URL>' -- npx -y @contextflo/postgres-mcp
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@contextflo/postgres-mcp"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
[mcp_servers.postgres-mcp]
command = "npx"
args = ["-y", "@contextflo/postgres-mcp"]
env = { DATABASE_URL = "<DATABASE_URL>" }
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@contextflo/postgres-mcp"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
{
"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.
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.
Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.
Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying
An MCP server for read-only access to the PDQ Deploy SQLite database.
Read-only SQL exploration, schema discovery and data profiling for SQLite and PostgreSQL
MCP server for database connectivity with PostgreSQL, MySQL and SQLite.
Read-only PostgreSQL checkups for your AI assistant. Lists what to fix, in order, with the SQL.
Drop-in replacement for @modelcontextprotocol/server-postgres that is actually read-only.
Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.
Answers built from our own checks of this server.