Pg Readonly MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 125 installs a week from pypi. Last commit 2 Oct 2026.
A read-only Postgres MCP server that parses SQL rather than pattern-matching it.
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 pg-readonly-mcp -e 'PG_READONLY_MCP_DSN=<PG_READONLY_MCP_DSN>' -- uvx pg-readonly-mcp
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<PG_READONLY_MCP_DSN>"
}
}
}
}
[mcp_servers.pg-readonly-mcp]
command = "uvx"
args = ["pg-readonly-mcp"]
env = { PG_READONLY_MCP_DSN = "<PG_READONLY_MCP_DSN>" }
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<PG_READONLY_MCP_DSN>"
}
}
}
}
{
"servers": {
"pg-readonly-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<PG_READONLY_MCP_DSN>"
}
}
}
}
Put your own value in place of
<PG_READONLY_MCP_DSN> (Postgres connection string for a role that holds only SELECT. The server refuses to start otherwise).
The author’s registry entry marks it as required.
Today is the operative word: we check Pg Readonly MCP every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
Agent memory on SQLite or Postgres that flags superseded facts and abstains below its threshold.
Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying
Explore and query PostgreSQL, SQL Server, Oracle, MySQL, SQLite and more. Read-only by default.
An MCP server for read-only access to the PDQ Deploy SQLite database.
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
Production-grade PostgreSQL MCP server — 279 tools for query, tuning & ops, read-only by default.
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.
Answers built from our own checks of this server.