NestDaddy

Postgres Mcp

io.github.sparta2025/postgres-mcp · v0.4.2

PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.

Connect Runs on your machine

Terminal
claude mcp add postgres-mcp -e DATABASE_URL=<DATABASE_URL> -- uvx postgres-mcp-pro==0.4.2
claude_desktop_config.json
{
  "mcpServers": {
    "postgres-mcp": {
      "command": "uvx",
      "args": [
        "postgres-mcp-pro==0.4.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "postgres-mcp": {
      "command": "uvx",
      "args": [
        "postgres-mcp-pro==0.4.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "postgres-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "postgres-mcp-pro==0.4.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
DATABASE_URL
Required, secret
PostgreSQL connection URL, e.g. postgresql://user:pass@localhost:5432/dbname

Details

Package[email protected] (PYPI, stdio)
First published21 Aug 2026
Last updated21 Aug 2026
Registry nameio.github.sparta2025/postgres-mcp

More databases servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.