{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.lagaam-ai/lagaam",
  "slug": "io.github.lagaam-ai.lagaam",
  "title": "Lagaam",
  "summary": "Stops an agent's Trino or Pinot query before it runs if it costs too much or reads outside its grant",
  "version": "1.0.0",
  "serverKey": "lagaam",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.lagaam-ai.lagaam",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.lagaam-ai.lagaam/install.md",
  "trust": {
    "score": 81,
    "grade": "B",
    "smokeStatus": "needs_credentials",
    "status": "active",
    "verifiedAt": "2026-12-01T20:10:36.861763215Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "lagaam==1.0.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add lagaam -e 'LAGAAM_ALLOWED_TABLES=<LAGAAM_ALLOWED_TABLES>' -- uvx lagaam==1.0.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"lagaam\": {\n      \"args\": [\n        \"lagaam==1.0.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"LAGAAM_ALLOWED_TABLES\": \"<LAGAAM_ALLOWED_TABLES>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"lagaam\": {\n      \"args\": [\n        \"lagaam==1.0.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"LAGAAM_ALLOWED_TABLES\": \"<LAGAAM_ALLOWED_TABLES>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"LAGAAM_ALLOWED_TABLES\",\n      \"id\": \"lagaam-allowed-tables\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"lagaam\": {\n      \"args\": [\n        \"lagaam==1.0.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"LAGAAM_ALLOWED_TABLES\": \"${input:lagaam-allowed-tables}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.lagaam]\ncommand = \"uvx\"\nargs = [\"lagaam==1.0.0\"]\nenv = { \"LAGAAM_ALLOWED_TABLES\" = \"<LAGAAM_ALLOWED_TABLES>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    }
  ],
  "env": [
    {
      "name": "LAGAAM_ALLOWED_TABLES",
      "required": true,
      "secret": false,
      "description": "Comma list of catalog.schema.table grants; the server will not start without it",
      "help": "Comma list of catalog.schema.table grants; the server will not start without it",
      "placeholder": "<LAGAAM_ALLOWED_TABLES>"
    },
    {
      "name": "LAGAAM_ALLOW_ALL_TABLES",
      "required": false,
      "secret": false,
      "description": "true to run with no grant at all: an explicit opt-out, off by default",
      "help": "true to run with no grant at all: an explicit opt-out, off by default",
      "placeholder": "<LAGAAM_ALLOW_ALL_TABLES>"
    },
    {
      "name": "LAGAAM_ENGINE",
      "required": false,
      "secret": false,
      "description": "Which adapter to run",
      "help": "Which adapter to run",
      "default": "trino",
      "placeholder": "trino"
    },
    {
      "name": "TRINO_HOST",
      "required": false,
      "secret": false,
      "description": "Trino coordinator host",
      "help": "Trino coordinator host",
      "default": "localhost",
      "placeholder": "localhost"
    },
    {
      "name": "TRINO_PORT",
      "required": false,
      "secret": false,
      "description": "Trino coordinator port",
      "help": "Trino coordinator port",
      "default": "8080",
      "placeholder": "8080"
    },
    {
      "name": "TRINO_USER",
      "required": false,
      "secret": false,
      "description": "Trino user",
      "help": "Trino user",
      "default": "lagaam",
      "placeholder": "lagaam"
    },
    {
      "name": "TRINO_PASSWORD",
      "required": false,
      "secret": true,
      "description": "Password for TRINO_USER; unset means no login. Not with TRINO_JWT",
      "help": "Password for TRINO_USER; unset means no login. Not with TRINO_JWT",
      "placeholder": "<TRINO_PASSWORD>"
    },
    {
      "name": "TRINO_JWT",
      "required": false,
      "secret": true,
      "description": "JWT to log in with instead of a password; unset means no login",
      "help": "JWT to log in with instead of a password; unset means no login",
      "placeholder": "<TRINO_JWT>"
    },
    {
      "name": "TRINO_HTTP_SCHEME",
      "required": false,
      "secret": false,
      "description": "http or https; unset means https once a password or JWT is set, else http",
      "help": "http or https; unset means https once a password or JWT is set, else http",
      "placeholder": "<TRINO_HTTP_SCHEME>"
    },
    {
      "name": "TRINO_VERIFY",
      "required": false,
      "secret": false,
      "description": "TLS cert check: true, false, or the path of a CA bundle (PEM)",
      "help": "TLS cert check: true, false, or the path of a CA bundle (PEM)",
      "default": "true",
      "placeholder": "true"
    },
    {
      "name": "PINOT_CONTROLLER_URL",
      "required": false,
      "secret": false,
      "description": "Pinot controller URL",
      "help": "Pinot controller URL",
      "default": "http://localhost:9000",
      "placeholder": "http://localhost:9000"
    },
    {
      "name": "PINOT_BROKER_URL",
      "required": false,
      "secret": false,
      "description": "Pinot broker URL",
      "help": "Pinot broker URL",
      "default": "http://localhost:8000",
      "placeholder": "http://localhost:8000"
    },
    {
      "name": "PINOT_USER",
      "required": false,
      "secret": false,
      "description": "Pinot user; unset means no auth",
      "help": "Pinot user; unset means no auth",
      "placeholder": "<PINOT_USER>"
    },
    {
      "name": "PINOT_PASSWORD",
      "required": false,
      "secret": true,
      "description": "Pinot password; unset means no auth",
      "help": "Pinot password; unset means no auth",
      "placeholder": "<PINOT_PASSWORD>"
    },
    {
      "name": "LAGAAM_AGENT_NAME",
      "required": false,
      "secret": false,
      "description": "Identity stamped on the audit trail",
      "help": "Identity stamped on the audit trail",
      "default": "anonymous",
      "placeholder": "anonymous"
    },
    {
      "name": "LAGAAM_MAX_SCAN_BYTES",
      "required": false,
      "secret": false,
      "description": "Scan-bytes budget per query, checked before it runs (default 50 GiB)",
      "help": "Scan-bytes budget per query, checked before it runs (default 50 GiB)",
      "default": "53687091200",
      "placeholder": "53687091200"
    },
    {
      "name": "LAGAAM_MAX_ROWS",
      "required": false,
      "secret": false,
      "description": "Scanned-row estimate budget per query; unset means ungated",
      "help": "Scanned-row estimate budget per query; unset means ungated",
      "placeholder": "<LAGAAM_MAX_ROWS>"
    },
    {
      "name": "LAGAAM_MAX_INTERMEDIATE_ROWS",
      "required": false,
      "secret": false,
      "description": "Rows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower it",
      "help": "Rows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower it",
      "default": "50000000",
      "placeholder": "50000000"
    },
    {
      "name": "LAGAAM_MAX_RETURNED_ROWS",
      "required": false,
      "secret": false,
      "description": "Rows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to it",
      "help": "Rows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to it",
      "default": "1000",
      "placeholder": "1000"
    },
    {
      "name": "LAGAAM_QUERY_TIMEOUT",
      "required": false,
      "secret": false,
      "description": "Wall-clock seconds per query",
      "help": "Wall-clock seconds per query",
      "default": "300",
      "placeholder": "300"
    },
    {
      "name": "LAGAAM_METADATA_TTL",
      "required": false,
      "secret": false,
      "description": "Metadata cache TTL, seconds",
      "help": "Metadata cache TTL, seconds",
      "default": "300",
      "placeholder": "300"
    },
    {
      "name": "LAGAAM_AUDIT_LOG",
      "required": false,
      "secret": false,
      "description": "Audit JSONL file path; unset means stderr",
      "help": "Audit JSONL file path; unset means stderr",
      "placeholder": "<LAGAAM_AUDIT_LOG>"
    }
  ],
  "agentSteps": [
    "Ask the user for: LAGAAM_ALLOWED_TABLES. 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-01T20:10:36.861763215Z"
}
