Back to MCP Servers
🧩

Lagaam MCP Server

API key required

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

To add Lagaam to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 18 environment variables, listed below.

AIDevTools

Install

uvx lagaam@0.2.5

Environment variables

LAGAAM_ALLOWED_TABLESSet in your MCP config
LAGAAM_ALLOW_ALL_TABLESSet in your MCP config
LAGAAM_ENGINESet in your MCP config
TRINO_HOSTSet in your MCP config
TRINO_PORTSet in your MCP config
TRINO_USERSet in your MCP config
PINOT_CONTROLLER_URLSet in your MCP config
PINOT_BROKER_URLSet in your MCP config
PINOT_USERSet in your MCP config
PINOT_PASSWORDSet in your MCP config
LAGAAM_AGENT_NAMESet in your MCP config
LAGAAM_MAX_SCAN_BYTESSet in your MCP config
LAGAAM_MAX_ROWSSet in your MCP config
LAGAAM_MAX_INTERMEDIATE_ROWSSet in your MCP config
LAGAAM_MAX_RETURNED_ROWSSet in your MCP config
LAGAAM_QUERY_TIMEOUTSet in your MCP config
LAGAAM_METADATA_TTLSet in your MCP config
LAGAAM_AUDIT_LOGSet in your MCP config

Install with your client

Terminal
claude mcp add lagaam --env LAGAAM_ALLOWED_TABLES=<YOUR_LAGAAM_ALLOWED_TABLES> --env LAGAAM_ALLOW_ALL_TABLES=<YOUR_LAGAAM_ALLOW_ALL_TABLES> --env LAGAAM_ENGINE=<YOUR_LAGAAM_ENGINE> --env TRINO_HOST=<YOUR_TRINO_HOST> --env TRINO_PORT=<YOUR_TRINO_PORT> --env TRINO_USER=<YOUR_TRINO_USER> --env PINOT_CONTROLLER_URL=<YOUR_PINOT_CONTROLLER_URL> --env PINOT_BROKER_URL=<YOUR_PINOT_BROKER_URL> --env PINOT_USER=<YOUR_PINOT_USER> --env PINOT_PASSWORD=<YOUR_PINOT_PASSWORD> --env LAGAAM_AGENT_NAME=<YOUR_LAGAAM_AGENT_NAME> --env LAGAAM_MAX_SCAN_BYTES=<YOUR_LAGAAM_MAX_SCAN_BYTES> --env LAGAAM_MAX_ROWS=<YOUR_LAGAAM_MAX_ROWS> --env LAGAAM_MAX_INTERMEDIATE_ROWS=<YOUR_LAGAAM_MAX_INTERMEDIATE_ROWS> --env LAGAAM_MAX_RETURNED_ROWS=<YOUR_LAGAAM_MAX_RETURNED_ROWS> --env LAGAAM_QUERY_TIMEOUT=<YOUR_LAGAAM_QUERY_TIMEOUT> --env LAGAAM_METADATA_TTL=<YOUR_LAGAAM_METADATA_TTL> --env LAGAAM_AUDIT_LOG=<YOUR_LAGAAM_AUDIT_LOG> -- uvx lagaam@0.2.5

Run this in a terminal to add the server to Claude Code.

What this does

Lagaam exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server needs the following environment variables to be set before it can run:

LAGAAM_ALLOWED_TABLES
LAGAAM_ALLOW_ALL_TABLES
LAGAAM_ENGINE
TRINO_HOST
TRINO_PORT
TRINO_USER
PINOT_CONTROLLER_URL
PINOT_BROKER_URL
PINOT_USER
PINOT_PASSWORD
LAGAAM_AGENT_NAME
LAGAAM_MAX_SCAN_BYTES
LAGAAM_MAX_ROWS
LAGAAM_MAX_INTERMEDIATE_ROWS
LAGAAM_MAX_RETURNED_ROWS
LAGAAM_QUERY_TIMEOUT
LAGAAM_METADATA_TTL
LAGAAM_AUDIT_LOG

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install Lagaam?

Run the Claude Code command in the install section to add Lagaam to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with Lagaam?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to Lagaam as well.

Does Lagaam need an API key?

Yes. Before it can run, set these environment variables: LAGAAM_ALLOWED_TABLES, LAGAAM_ALLOW_ALL_TABLES, LAGAAM_ENGINE, TRINO_HOST, TRINO_PORT, TRINO_USER, PINOT_CONTROLLER_URL, PINOT_BROKER_URL, PINOT_USER, PINOT_PASSWORD, LAGAAM_AGENT_NAME, LAGAAM_MAX_SCAN_BYTES, LAGAAM_MAX_ROWS, LAGAAM_MAX_INTERMEDIATE_ROWS, LAGAAM_MAX_RETURNED_ROWS, LAGAAM_QUERY_TIMEOUT, LAGAAM_METADATA_TTL, LAGAAM_AUDIT_LOG. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-lagaam-ai-lagaam)](https://clauderules.net/mcp/io-github-lagaam-ai-lagaam)
HTML
<a href="https://clauderules.net/mcp/io-github-lagaam-ai-lagaam" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-lagaam-ai-lagaam" alt="Listed on clauderules.net" /></a>