{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.les-k/pg-readonly-mcp",
  "slug": "io.github.les-k.pg-readonly-mcp",
  "title": "pg-readonly-mcp",
  "summary": "A read-only Postgres MCP server that parses SQL rather than pattern-matching it.",
  "version": "0.1.1",
  "serverKey": "pg-readonly-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.les-k.pg-readonly-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.les-k.pg-readonly-mcp/install.md",
  "trust": {
    "score": 76,
    "grade": "B",
    "smokeStatus": "needs_credentials",
    "status": "active",
    "verifiedAt": "2026-12-01T22:26:04.976317035Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "pg-readonly-mcp==0.1.1"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add pg-readonly-mcp -e 'PG_READONLY_MCP_DSN=<PG_READONLY_MCP_DSN>' -- uvx pg-readonly-mcp==0.1.1"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"pg-readonly-mcp\": {\n      \"args\": [\n        \"pg-readonly-mcp==0.1.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PG_READONLY_MCP_DSN\": \"<PG_READONLY_MCP_DSN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"pg-readonly-mcp\": {\n      \"args\": [\n        \"pg-readonly-mcp==0.1.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PG_READONLY_MCP_DSN\": \"<PG_READONLY_MCP_DSN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"PG_READONLY_MCP_DSN\",\n      \"id\": \"pg-readonly-mcp-dsn\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"pg-readonly-mcp\": {\n      \"args\": [\n        \"pg-readonly-mcp==0.1.1\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PG_READONLY_MCP_DSN\": \"${input:pg-readonly-mcp-dsn}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.pg-readonly-mcp]\ncommand = \"uvx\"\nargs = [\"pg-readonly-mcp==0.1.1\"]\nenv = { \"PG_READONLY_MCP_DSN\" = \"<PG_READONLY_MCP_DSN>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    }
  ],
  "env": [
    {
      "name": "PG_READONLY_MCP_DSN",
      "required": true,
      "secret": true,
      "description": "Postgres connection string for a role that holds only SELECT. The server refuses to start otherwise.",
      "help": "Postgres connection string for a role that holds only SELECT. The server refuses to start otherwise.",
      "placeholder": "<PG_READONLY_MCP_DSN>"
    }
  ],
  "agentSteps": [
    "Ask the user for: PG_READONLY_MCP_DSN. 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.",
    "If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T22:26:04.976317035Z"
}
