AI Open Radar

call518/MCP-PostgreSQL-Ops

Read-only PostgreSQL observability for AI assistants

★ 165 License: MIT Last commit: 0d Transport: stdio / http Repository ↗

What it solves

Without it, AI assistants cannot inspect PostgreSQL slow queries, locks, bloat, VACUUM, or replication through natural language.

Works with

Install

docker compose up -d
docker compose ps --all  # wait for mcp-server to be healthy and init to exit 0
docker compose -f docker-compose.custom-db.yml up -d
uvx --python 3.12 mcp-postgresql-ops --type stdio

Copy-ready config

{
  "mcpServers": {
    "mcp-postgresql-ops": {
      "command": "uv",
      "args": [
        "run",
        "python",
        "-m",
        "mcp_postgresql_ops"
      ],
      "env": {
        "POSTGRES_HOST": "127.0.0.1",
        "POSTGRES_PORT": "15432",
        "POSTGRES_USER": "postgres",
        "POSTGRES_PASSWORD": "changeme",
        "POSTGRES_DB": "ecommerce"
      }
    }
  }
}
{
  "mcpServers": {
    "Postgresql-A": {
      "command": "uvx",
      "args": [
        "--python",
        "3.12",
        "mcp-postgresql-ops"
      ],
      "env": {
        "POSTGRES_HOST": "a.foo.com",
        "POSTGRES_PORT": "5432",
        "POSTGRES_USER": "postgres",
        "POSTGRES_PASSWORD": "postgres",
        "POSTGRES_DB": "postgres"
      }
    },
    "Postgresql-B": {
      "command": "uvx",
      "args": [
        "--python",
        "3.12",
        "mcp-postgresql-ops"
      ],
      "env": {
        "POSTGRES_HOST": "b.bar.com",
        "POSTGRES_PORT": "5432",
        "POSTGRES_USER": "postgres",
        "POSTGRES_PASSWORD": "postgres",
        "POSTGRES_DB": "postgres"
      }
    }
  }
}
{
  "mcpServers": {
    "mcp-postgresql-ops": {
      "type": "streamable-http",
      "url": "http://your-server:8000/mcp",
      "headers": {
        "Authorization": "Bearer replace-with-a-strong-random-secret"
      }
    }
  }
}

Security flags

Maintenance

Last commit2026-12-05(0d)
Stars165
Open issues0
LicenseMIT
ArchivedNo
Data fetched2026-12-05

Source excerpt

Verbatim README excerpt, unedited, so you can check the summary above.

MCP-PostgreSQL-Ops lets Claude, OpenWebUI, and other MCP clients inspect a PostgreSQL server through natural-language questions.

Similar projects