@lakehouse/mcp-server
MCP server for Lakehouse42, enabling code-first tool discovery, hybrid search, document management, and Iceberg time-travel queries with optimized responses.
README
@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-server
Claude 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 |
|---|---|---|
LAKEHOUSE42_API_KEY |
Yes | - |
LAKEHOUSE42_BASE_URL |
No | https://api.lakehouse42.com |
Tools
search_tools
Discover tools on-demand (code-first pattern).
{ "tags": ["search"], "detail": "summary" }
| Parameter | Type | Description |
|---|---|---|
query |
string | Search term |
tags |
string[] | read, write, admin, search, time-travel |
detail |
string | name (10 tokens), summary (50), full (150) |
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.