Postgres 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 21 Aug 2026.
PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
We read the source, 3 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
log_file_path = os.path.join(logs_path, host_log_file)
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
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>' -- uvx postgres-mcp-pro
{
"mcpServers": {
"postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp-pro"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
[mcp_servers.postgres-mcp]
command = "uvx"
args = ["postgres-mcp-pro"]
env = { DATABASE_URL = "<DATABASE_URL>" }
{
"mcpServers": {
"postgres-mcp": {
"command": "uvx",
"args": [
"postgres-mcp-pro"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
{
"servers": {
"postgres-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"postgres-mcp-pro"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>"
}
}
}
}
Put your own value in place of
<DATABASE_URL> (PostgreSQL connection URL, e.g. postgresql://user:pass@localhost:5432/dbname).
The author’s registry entry marks it as required.
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
PostgreSQL MCP server with 203 tools, connection pooling, HTTP/SSE, OAuth 2.1, and tool filtering
MCP server for interacting with PostgreSQL databases
Enterprise PostgreSQL MCP server with 63 tools, 10 resources, 10 prompts for AI-native operations
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
MCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Self-hosted MCP server for FileMaker and PostgreSQL. Turns chosen tables into tools for AI agents.
Answers built from our own checks of this server.