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.0Configuration
22 settings.
LAGAAM_ALLOWED_TABLESEnv var· requiredComma list of catalog.schema.table grants; the server will not start without itTRINO_PASSWORDEnv var· optional· secretPassword for TRINO_USER; unset means no login. Not with TRINO_JWTTRINO_JWTEnv var· optional· secretJWT to log in with instead of a password; unset means no loginPINOT_PASSWORDEnv var· optional· secretPinot password; unset means no authLAGAAM_ALLOW_ALL_TABLESEnv var· optionaltrue to run with no grant at all: an explicit opt-out, off by defaultLAGAAM_ENGINEEnv var· optionalWhich adapter to runDefault:trino
Show 16 moreShow fewer
TRINO_HOSTEnv var· optionalTrino coordinator hostDefault:localhostTRINO_PORTEnv var· optionalTrino coordinator portDefault:8080TRINO_USEREnv var· optionalTrino userDefault:lagaamTRINO_HTTP_SCHEMEEnv var· optionalhttp or https; unset means https once a password or JWT is set, else httpTRINO_VERIFYEnv var· optionalTLS cert check: true, false, or the path of a CA bundle (PEM)Default:truePINOT_CONTROLLER_URLEnv var· optionalPinot controller URLDefault:http://localhost:9000PINOT_BROKER_URLEnv var· optionalPinot broker URLDefault:http://localhost:8000PINOT_USEREnv var· optionalPinot user; unset means no authLAGAAM_AGENT_NAMEEnv var· optionalIdentity stamped on the audit trailDefault:anonymousLAGAAM_MAX_SCAN_BYTESEnv var· optionalScan-bytes budget per query, checked before it runs (default 50 GiB)Default:53687091200LAGAAM_MAX_ROWSEnv var· optionalScanned-row estimate budget per query; unset means ungatedLAGAAM_MAX_INTERMEDIATE_ROWSEnv var· optionalRows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower itDefault:50000000LAGAAM_MAX_RETURNED_ROWSEnv var· optionalRows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to itDefault:1000LAGAAM_QUERY_TIMEOUTEnv var· optionalWall-clock seconds per queryDefault:300LAGAAM_METADATA_TTLEnv var· optionalMetadata cache TTL, secondsDefault:300LAGAAM_AUDIT_LOGEnv var· optionalAudit JSONL file path; unset means stderr
Links
Listed in the official MCP Registry since Nov 6, 2026. Mirrored daily; last checked Nov 26, 2026.