LanceDB
Interact with on-disk documents using agentic RAG and hybrid search via LanceDB.
ποΈ LanceDB MCP Server for LLMS
A Model Context Protocol (MCP) server that enables LLMs to interact directly the documents that they have on-disk through agentic RAG and hybrid search in LanceDB. Ask LLMs questions about the dataset as a whole or about specific documents.
β¨ Features
- π LanceDB-powered serverless vector index and document summary catalog.
- π Efficient use of LLM tokens. The LLM itself looks up what it needs when it needs.
- π Security. The index is stored locally so no data is transferred to the Cloud when using a local LLM.
π Quick Start
To get started, create a local directory to store the index and add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"lancedb": {
"command": "npx",
"args": [
"lance-mcp",
"PATH_TO_LOCAL_INDEX_DIR"
]
}
}
}
Prerequisites
- Node.js 18+
- npx
- MCP Client (Claude Desktop App for example)
- Summarization and embedding models installed (see config.ts - by default we use Ollama models)
ollama pull snowflake-arctic-embed2ollama pull llama3.1:8b
Demo
Local Development Mode:
{
"mcpServers": {
"lancedb": {
"command": "node",
"args": [
"PATH_TO_LANCE_MCP/dist/index.js",
"PATH_TO_LOCAL_INDEX_DIR"
]
}
}
}
Use npm run build to build the project.
Use npx @modelcontextprotocol/inspector dist/index.js PATH_TO_LOCAL_INDEX_DIR to run the MCP tool inspector.
Seed Data
The seed script creates two tables in LanceDB - one for the catalog of document summaries, and another one - for vectorized documents' chunks. To run the seed script use the following command:
npm run seed -- --dbpath <PATH_TO_LOCAL_INDEX_DIR> --filesdir <PATH_TO_DOCS>
You can use sample data from the docs/ directory. Feel free to adjust the default summarization and embedding models in the config.ts file. If you need to recreate the index, simply rerun the seed script with the --overwrite option.
Catalog
- Document summary
- Metadata
Chunks
- Vectorized document chunk
- Metadata
π― Example Prompts
Try these prompts with Claude to explore the functionality:
"What documents do we have in the catalog?"
"Why is the US healthcare system so broken?"
π Available Tools
The server provides these tools for interaction with the index:
Catalog Tools
catalog_search: Search for relevant documents in the catalog
Chunks Tools
chunks_search: Find relevant chunks based on a specific document from the catalogall_chunks_search: Find relevant chunks from all known documents
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Server Terkait
CData Salesforce MCP Server
A read-only MCP server by CData that allows LLMs to query live Salesforce data. Requires the CData JDBC Driver for Salesforce.
MCP Helius
Access Solana blockchain data using the Helius API.
Fabi Analyst Agent MCP
Fabi MCP is an autonomous agent that handles end-to-end data analysis tasks from natural language requests, automatically discovering data schemas, generating sql or python code, executing queries, and presenting insights.
Videoschiri
Fussball. Live. Alle Spiele, alle TV-Sender und Streams.
MCP JDBC Server
A lightweight MCP server for any database with a JDBC driver. Built with Quarkus and requires Java 21+.
MongoDB
Provides read-only access to MongoDB databases through standardized MCP tools and resources.
Hive MCP Server
Enables AI assistants to interact with the Hive blockchain through the Model Context Protocol.
Self-Hosted Supabase MCP Server
Interact with self-hosted Supabase instances for database management and introspection.
MCP Database Server
Provides database access for SQLite, SQL Server, PostgreSQL, and MySQL.
Seatable
A comprehensive Model Context Protocol (MCP) server for SeaTable that exposes endβtoβend database capabilities (schema introspection, CRUD, querying, linking, select option management, and file attachment stubs) through 18+ rigorously defined tools.