Skip to main content

Lagaam

io.github.lagaam-ai/lagaam

v1.0.0Updated Nov 6, 2026stdio · PyPI

Stops an agent's Trino or Pinot query before it runs if it costs too much or reads outside its grant

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add lagaam -e 'LAGAAM_ALLOWED_TABLES=<your-lagaam-allowed-tables>' -e LAGAAM_ENGINE=trino -e TRINO_HOST=localhost -e TRINO_PORT=8080 -e TRINO_USER=lagaam -e TRINO_VERIFY=true -e PINOT_CONTROLLER_URL=http://localhost:9000 -e PINOT_BROKER_URL=http://localhost:8000 -e LAGAAM_AGENT_NAME=anonymous -e LAGAAM_MAX_SCAN_BYTES=53687091200 -e LAGAAM_MAX_INTERMEDIATE_ROWS=50000000 -e LAGAAM_MAX_RETURNED_ROWS=1000 -e LAGAAM_QUERY_TIMEOUT=300 -e LAGAAM_METADATA_TTL=300 -- uvx lagaam==1.0.0

Configuration

22 settings.

  • LAGAAM_ALLOWED_TABLES
    Env var· required
    Comma list of catalog.schema.table grants; the server will not start without it
  • TRINO_PASSWORD
    Env var· optional· secret
    Password for TRINO_USER; unset means no login. Not with TRINO_JWT
  • TRINO_JWT
    Env var· optional· secret
    JWT to log in with instead of a password; unset means no login
  • PINOT_PASSWORD
    Env var· optional· secret
    Pinot password; unset means no auth
  • LAGAAM_ALLOW_ALL_TABLES
    Env var· optional
    true to run with no grant at all: an explicit opt-out, off by default
  • LAGAAM_ENGINE
    Env var· optional
    Which adapter to runDefault: trino
Show 16 more
  • TRINO_HOST
    Env var· optional
    Trino coordinator hostDefault: localhost
  • TRINO_PORT
    Env var· optional
    Trino coordinator portDefault: 8080
  • TRINO_USER
    Env var· optional
    Trino userDefault: lagaam
  • TRINO_HTTP_SCHEME
    Env var· optional
    http or https; unset means https once a password or JWT is set, else http
  • TRINO_VERIFY
    Env var· optional
    TLS cert check: true, false, or the path of a CA bundle (PEM)Default: true
  • PINOT_CONTROLLER_URL
    Env var· optional
    Pinot controller URLDefault: http://localhost:9000
  • PINOT_BROKER_URL
    Env var· optional
    Pinot broker URLDefault: http://localhost:8000
  • PINOT_USER
    Env var· optional
    Pinot user; unset means no auth
  • LAGAAM_AGENT_NAME
    Env var· optional
    Identity stamped on the audit trailDefault: anonymous
  • LAGAAM_MAX_SCAN_BYTES
    Env var· optional
    Scan-bytes budget per query, checked before it runs (default 50 GiB)Default: 53687091200
  • LAGAAM_MAX_ROWS
    Env var· optional
    Scanned-row estimate budget per query; unset means ungated
  • LAGAAM_MAX_INTERMEDIATE_ROWS
    Env var· optional
    Rows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower itDefault: 50000000
  • LAGAAM_MAX_RETURNED_ROWS
    Env var· optional
    Rows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to itDefault: 1000
  • LAGAAM_QUERY_TIMEOUT
    Env var· optional
    Wall-clock seconds per queryDefault: 300
  • LAGAAM_METADATA_TTL
    Env var· optional
    Metadata cache TTL, secondsDefault: 300
  • LAGAAM_AUDIT_LOG
    Env var· optional
    Audit JSONL file path; unset means stderr

Listed in the official MCP Registry since Nov 6, 2026. Mirrored daily; last checked Nov 26, 2026.