Pg Readonly MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 159 installs a week from pypi. Last commit 2 Oct 2026.
A read-only Postgres MCP server that parses SQL rather than pattern-matching it.
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.
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 -- uvx pg-readonly-mcp
{
"mcpServers": {
"pg-readonly-mcp": {
"args": [
"pg-readonly-mcp"
],
"command": "uvx"
}
}
}
[mcp_servers.pg-readonly-mcp]
command = "uvx"
args = ["pg-readonly-mcp"]
{
"mcpServers": {
"pg-readonly-mcp": {
"args": [
"pg-readonly-mcp"
],
"command": "uvx"
}
}
}
{
"mcpServers": {
"pg-readonly-mcp": {
"args": [
"pg-readonly-mcp"
],
"command": "uvx"
}
}
}
This one needs environment variables set before it will start:
PG_READONLY_MCP_DSN (Postgres connection string for a role that holds only SELECT. The server refuses to start otherwise.).
The author declared them in the registry entry; get the values from the project itself.
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
MCP server for read-only PostgreSQL database queries in Claude Desktop
Read-only MCP server for evidence-based PostgreSQL performance auditing.
Read-only Postgres: drop-in for the archived server-postgres, with schema context.
Read-only SQL, plans, schema for AI agents: PostgreSQL, Oracle, SQL Server, Firebird, SQLite, JDBC
Minimal, read-only, PII-safe MCP server for SQL databases.
Answers built from our own checks of this server.