@lakehouse/mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@lakehouse/mcp-serversearch for revenue reports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@lakehouse/mcp-server
Model Context Protocol (MCP) server for Lakehouse42.
Features
Code-First Pattern - On-demand tool discovery (~98% token reduction)
Tool Tagging - Filter tools by category (read/write/admin/search/time-travel)
Cursor Pagination - Efficient browsing of large result sets
Streamable HTTP - Scalable deployment with session recovery
Optimized Responses - Compact JSON, truncated snippets, sample rows
Quick Start
LAKEHOUSE42_API_KEY=lh_xxx npx @lakehouse/mcp-serverClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"lakehouse42": {
"command": "npx",
"args": ["@lakehouse/mcp-server"],
"env": {
"LAKEHOUSE42_API_KEY": "lh_your_api_key"
}
}
}
}Environment Variables
Variable | Required | Default |
| Yes | - |
| No |
|
Tools
search_tools
Discover tools on-demand (code-first pattern).
{ "tags": ["search"], "detail": "summary" }Parameter | Type | Description |
| string | Search term |
| string[] |
|
| string |
|
search
Hybrid search with cursor pagination.
{ "query": "revenue report", "top_k": 10 }Returns: 5 results max, 200-char snippets, next_cursor for pagination.
ask_question
RAG-powered Q&A.
{ "question": "What is our refund policy?" }Returns: answer + source count.
get_document / list_documents / list_collections
Document and collection management with cursor pagination.
upload_document
Upload text documents (auto-chunked and indexed).
time_travel_query / time_travel_diff / list_snapshots
Iceberg time-travel queries. Returns row count + 3 sample rows.
HTTP Transport
For web deployments:
import { HttpTransport, ToolExecutor, ApiClient } from '@lakehouse/mcp-server';
const client = new ApiClient({ apiKey: 'lh_xxx', baseUrl: 'https://api.lakehouse42.com' });
const transport = new HttpTransport({ toolExecutor: new ToolExecutor(client) });
http.createServer((req, res) => transport.handleRequest(req, res)).listen(3000);Features:
Session management (
Mcp-Session-Idheader)SSE streaming (
Accept: text/event-stream)Disconnect recovery (
Last-Event-ID)
Endpoints:
POST /mcp- JSON-RPC requestsGET /mcp- SSE streamDELETE /mcp- Close sessionGET /health- Health check
Programmatic Usage
import { createServer, searchTools, TAGGED_TOOLS } from '@lakehouse/mcp-server';
// Stdio server
const server = createServer({ apiKey: 'lh_xxx' });
await server.start();
// Tool discovery
const readTools = searchTools(undefined, ['read'], 'name');
// → [{ name: 'search' }, { name: 'ask_question' }, ...]Response Optimization
Tool | Optimization |
search | 5 results, 200-char snippets |
list_documents | 10 docs, essential fields |
time_travel_query | 3 sample rows + count |
All responses use compact JSON (no pretty-printing).
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lakehouse-42/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server