MCP Postgres runs on your own machine — the client starts it, so there is no endpoint to ping. 319 installs a week from npm. Last commit 30 Nov 2026.
PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.
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 mcp-postgres -e 'POSTGRES_URL=<POSTGRES_URL>' -- npx -y @dockndevai/mcp-postgres
{
"mcpServers": {
"mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "<POSTGRES_URL>"
}
}
}
}
[mcp_servers.mcp-postgres]
command = "npx"
args = ["-y", "@dockndevai/mcp-postgres"]
env = { POSTGRES_URL = "<POSTGRES_URL>" }
{
"mcpServers": {
"mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "<POSTGRES_URL>"
}
}
}
}
{
"servers": {
"mcp-postgres": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-postgres"
],
"env": {
"POSTGRES_URL": "<POSTGRES_URL>"
}
}
}
}
Put your own value in place of
<POSTGRES_URL> (libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE)).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
POSTGRES_MODE (Access mode: read-only | read-write | admin), POSTGRES_SCHEMA_ALLOWLIST (Comma-separated schemas the agent may touch (empty = all)).
Today is the operative word: we check MCP Postgres every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
Create and audit read-only database accounts for AI agents: PostgreSQL, MySQL, SQL Server and more.
A Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
Read-only SQL exploration, schema discovery and data profiling for SQLite and PostgreSQL
PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths
Read-only PostgreSQL checkups for your AI assistant. Lists what to fix, in order, with the SQL.
Local API and database verification for AI coding agents: HTTP checks and read-only SQL.
Answers built from our own checks of this server.