{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.dockndevai/mcp-postgres",
  "slug": "io.github.dockndevai.mcp-postgres",
  "title": "mcp-postgres",
  "summary": "PostgreSQL schema exploration, read-only SQL & governed changes for AI agents.",
  "version": "0.1.0",
  "serverKey": "mcp-postgres",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.dockndevai.mcp-postgres",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.dockndevai.mcp-postgres/install.md",
  "trust": {
    "score": 84,
    "grade": "B",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-02T10:24:28.534427903Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-postgres@0.1.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp-postgres -e 'POSTGRES_URL=<POSTGRES_URL>' -- npx -y @dockndevai/mcp-postgres@0.1.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-postgres\": {\n      \"args\": [\n        \"-y\",\n        \"@dockndevai/mcp-postgres@0.1.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"POSTGRES_URL\": \"<POSTGRES_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp-postgres\": {\n      \"args\": [\n        \"-y\",\n        \"@dockndevai/mcp-postgres@0.1.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"POSTGRES_URL\": \"<POSTGRES_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"POSTGRES_URL\",\n      \"id\": \"postgres-url\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp-postgres\": {\n      \"args\": [\n        \"-y\",\n        \"@dockndevai/mcp-postgres@0.1.0\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"POSTGRES_URL\": \"${input:postgres-url}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp-postgres]\ncommand = \"npx\"\nargs = [\"-y\", \"@dockndevai/mcp-postgres@0.1.0\"]\nenv = { \"POSTGRES_URL\" = \"<POSTGRES_URL>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "POSTGRES_URL",
      "required": true,
      "secret": true,
      "description": "libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE).",
      "help": "libpq connection string, e.g. postgresql://user:pass@host:5432/db (or use PGHOST/PGUSER/PGPASSWORD/PGDATABASE).",
      "placeholder": "<POSTGRES_URL>"
    },
    {
      "name": "POSTGRES_MODE",
      "required": false,
      "secret": false,
      "description": "Access mode: read-only | read-write | admin.",
      "help": "Access mode: read-only | read-write | admin.",
      "placeholder": "<POSTGRES_MODE>"
    },
    {
      "name": "POSTGRES_SCHEMA_ALLOWLIST",
      "required": false,
      "secret": false,
      "description": "Comma-separated schemas the agent may touch (empty = all).",
      "help": "Comma-separated schemas the agent may touch (empty = all).",
      "placeholder": "<POSTGRES_SCHEMA_ALLOWLIST>"
    }
  ],
  "expectedTools": [
    "get_server_info",
    "list_schemas",
    "list_tables",
    "describe_table",
    "select_rows",
    "run_query",
    "explain_query",
    "list_active_queries",
    "get_database_stats",
    "get_top_queries",
    "list_roles",
    "list_extensions"
  ],
  "agentSteps": [
    "Ask the user for: POSTGRES_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: get_server_info, list_schemas, list_tables, describe_table, select_rows, run_query, explain_query, list_active_queries, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-02T10:24:28.534427903Z"
}
