Home / Market / Lagaam

Lagaam

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

mcp★ 024 dlmcp-registryMIT configuration; upstream service license appliesInstall in CosmosUpstream Source

Documentation & Preview

{ "mcpServers": { "mcp-lagaam-3b6b4f01ab80f9d53643": { "command": "uvx", "args": [ "--from", "lagaam==1.0.0", "lagaam" ], "env": { "LAGAAM_ALLOWED_TABLES": "${ENV_LAGAAM_ALLOWED_TABLES}", "LAGAAM_ALLOW_ALL_TABLES": "${ENV_LAGAAM_ALLOW_ALL_TABLES}", "LAGAAM_ENGINE": "${ENV_LAGAAM_ENGINE}", "TRINO_HOST": "${ENV_TRINO_HOST}", "TRINO_PORT": "${ENV_TRINO_PORT}", "TRINO_USER": "${ENV_TRINO_USER}", "TRINO_PASSWORD": "${ENV_TRINO_PASSWORD}", "TRINO_JWT": "${ENV_TRINO_JWT}", "TRINO_HTTP_SCHEME": "${ENV_TRINO_HTTP_SCHEME}", "TRINO_VERIFY": "${ENV_TRINO_VERIFY}", "PINOT_CONTROLLER_URL": "${ENV_PINOT_CONTROLLER_URL}", "PINOT_BROKER_URL": "${ENV_PINOT_BROKER_URL}", "PINOT_USER": "${ENV_PINOT_USER}", "PINOT_PASSWORD": "${ENV_PINOT_PASSWORD}", "LAGAAM_AGENT_NAME": "${ENV_LAGAAM_AGENT_NAME}", "LAGAAM_MAX_SCAN_BYTES": "${ENV_LAGAAM_MAX_SCAN_BYTES}", "LAGAAM_MAX_ROWS": "${ENV_LAGAAM_MAX_ROWS}", "LAGAAM_MAX_INTERMEDIATE_ROWS": "${ENV_LAGAAM_MAX_INTERMEDIATE_ROWS}", "LAGAAM_MAX_RETURNED_ROWS": "${ENV_LAGAAM_MAX_RETURNED_ROWS}", "LAGAAM_QUERY_TIMEOUT": "${ENV_LAGAAM_QUERY_TIMEOUT}", "LAGAAM_METADATA_TTL": "${ENV_LAGAAM_METADATA_TTL}", "LAGAAM_AUDIT_LOG": "${ENV_LAGAAM_AUDIT_LOG}" } } }, "setup": { "fields": [ { "id": "ENV_LAGAAM_ALLOWED_TABLES", "label": "LAGAAM_ALLOWED_TABLES", "description": "Comma list of catalog.schema.table grants; the server will not start without it", "required": true, "secret": false, "default": "" }, { "id": "ENV_LAGAAM_ALLOW_ALL_TABLES", "label": "LAGAAM_ALLOW_ALL_TABLES", "description": "true to run with no grant at all: an explicit opt-out, off by default", "required": false, "secret": false, "default": "" }, { "id": "ENV_LAGAAM_ENGINE", "label": "LAGAAM_ENGINE", "description": "Which adapter to run", "required": false, "secret": false, "default": "trino" }, { "id": "ENV_TRINO_HOST", "label": "TRINO_HOST", "description": "Trino coordinator host", "required": false, "secret": false, "default": "localhost" }, { "id": "ENV_TRINO_PORT", "label": "TRINO_PORT", "description": "Trino coordinator port", "required": false, "secret": false, "default": "8080" }, { "id": "ENV_TRINO_USER", "label": "TRINO_USER", "description": "Trino user", "required": false, "secret": false, "default": "lagaam" }, { "id": "ENV_TRINO_PASSWORD", "label": "TRINO_PASSWORD", "description": "Password for TRINO_USER; unset means no login. Not with TRINO_JWT", "required": false, "secret": true, "default": "" }, { "id": "ENV_TRINO_JWT", "label": "TRINO_JWT", "description": "JWT to log in with instead of a password; unset means no login", "required": false, "secret": true, "default": "" }, { "id": "ENV_TRINO_HTTP_SCHEME", "label": "TRINO_HTTP_SCHEME", "description": "http or https; unset means https once a password or JWT is set, else http", "required": false, "secret": false, "default": "" }, { "id": "ENV_TRINO_VERIFY", "label": "TRINO_VERIFY", "description": "TLS cert check: true, false, or the path of a CA bundle (PEM)", "required": false, "secret": false, "default": "true" }, { "id": "ENV_PINOT_CONTROLLER_URL", "label": "PINOT_CONTROLLER_URL", "description": "Pinot controller URL", "required": false, "secret": false, "default": "http://localhost:9000" }, { "id": "ENV_PINOT_BROKER_URL", "label": "PINOT_BROKER_URL", "description": "Pinot broker URL", "required": false, "secret": false, "default": "http://localhost:8000" }, { "id": "ENV_PINOT_USER", "label": "PINOT_USER", "description": "Pinot user; unset means no auth", "required": false, "secret": false, "default": "" }, { "id": "ENV_PINOT_PASSWORD", "label": "PINOT_PASSWORD", "description": "Pinot password; unset means no auth", "required": false, "secret": true, "default": "" }, { "id": "ENV_LAGAAM_AGENT_NAME", "label": "LAGAAM_AGENT_NAME", "description": "Identity stamped on the audit trail", "required": false, "secret": false, "default": "anonymous" }, { "id": "ENV_LAGAAM_MAX_SCAN_BYTES", "label": "LAGAAM_MAX_SCAN_BYTES", "description": "Scan-bytes budget per query, checked before it runs (default 50 GiB)", "required": false, "secret": false, "default": "53687091200" }, { "id": "ENV_LAGAAM_MAX_ROWS", "label": "LAGAAM_MAX_ROWS", "description": "Scanned-row estimate budget per query; unset means ungated", "required": false, "secret": false, "default": "" }, { "id": "ENV_LAGAAM_MAX_INTERMEDIATE_ROWS", "label": "LAGAAM_MAX_INTERMEDIATE_ROWS", "description": "Rows the engine would build at its widest step, not rows returned, so a LIMIT doesn't lower it", "required": false, "secret": false, "default": "50000000" }, { "id": "ENV_LAGAAM_MAX_RETURNED_ROWS", "label": "LAGAAM_MAX_RETURNED_ROWS", "description": "Rows returned to the agent per query, capped at 100000; a bigger LIMIT in the query is lowered to it", "required": false, "secret": false, "default": "1000" }, { "id": "ENV_LAGAAM_QUERY_TIMEOUT", "label": "LAGAAM_QUERY_TIMEOUT", "description": "Wall-clock seconds per query", "required": false, "secret": false, "default": "300" }, { "id": "ENV_LAGAAM_METADATA_TTL", "label": "LAGAAM_METADATA_TTL", "description": "Metadata cache TTL, seconds", "required": false, "secret": false, "default": "300" }, { "id": "ENV_LAGAAM_AUDIT_LOG", "label": "LAGAAM_AUDIT_LOG", "description": "Audit JSONL file path; unset means stderr", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Python 与 uv / uvx" ] }, "provenance": { "registryServer": "io.github.lagaam-ai/lagaam", "registryVersion": "1.0.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.lagaam-ai%2Flagaam/versions/1.0.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "pypi", "identifier": "lagaam", "version": "1.0.0", "wheelSha256": "e22f3035b2f4792ead45bf77fbe3b2c85f9be6de4d20e3e19e5be0b6aa900770", "registryNameMatched": "io.github.lagaam-ai/lagaam", "checkedAt": "2026-11-06T08:21:17.669Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }