mcp-lancedb
🗄️ LLMS 向け LanceDB MCP サーバー
LanceDBのエージェント型RAGとハイブリッド検索を通じて、LLMがディスク上のドキュメントに直接アクセスできるようにするモデルコンテキストプロトコル(MCP)サーバー。LLMはデータセット全体または特定のドキュメントについて質問できます。
✨ 特徴
🔍 LanceDB を活用したサーバーレス ベクトル インデックスとドキュメント サマリー カタログ。
📊 LLMトークンの効率的な使用。LLM自体が必要な時に必要なものを検索します。
📈 セキュリティ。インデックスはローカルに保存されるため、ローカル LLM を使用する場合、データはクラウドに転送されません。
Related MCP server: @lex-tools/codebase-context-dumper
🚀 クイックスタート
まず、インデックスを保存するためのローカル ディレクトリを作成し、次の構成を Claude Desktop 構成ファイルに追加します。
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"
]
}
}
}前提条件
Node.js 18歳以上
npx
MCP クライアント (例: Claude デスクトップ アプリ)
要約および埋め込みモデルがインストールされています(config.ts を参照 - デフォルトでは Ollama モデルを使用します)
ollama pull snowflake-arctic-embed2ollama pull llama3.1:8b
デモ
ローカル開発モード:
{
"mcpServers": {
"lancedb": {
"command": "node",
"args": [
"PATH_TO_LANCE_MCP/dist/index.js",
"PATH_TO_LOCAL_INDEX_DIR"
]
}
}
}npm run build使用してプロジェクトをビルドします。
MCP ツール インスペクターを実行するには、 npx @modelcontextprotocol/inspector dist/index.js PATH_TO_LOCAL_INDEX_DIRを使用します。
シードデータ
シードスクリプトはLanceDBに2つのテーブルを作成します。1つはドキュメントサマリーのカタログ用、もう1つはベクトル化されたドキュメントのチャンク用です。シードスクリプトを実行するには、以下のコマンドを使用します。
npm run seed -- --dbpath <PATH_TO_LOCAL_INDEX_DIR> --filesdir <PATH_TO_DOCS>docs/ ディレクトリのサンプルデータをご利用いただけます。config.ts ファイルで、デフォルトの要約モデルと埋め込みモデルを自由に調整してください。インデックスを再作成する必要がある場合は、シードスクリプトを--overwriteオプション付きで再実行してください。
カタログ
文書の概要
メタデータ
チャンク
ベクトル化されたドキュメントチャンク
メタデータ
🎯 プロンプトの例
機能を確認するには、Claude と一緒に次のプロンプトを試してください。
"What documents do we have in the catalog?"
"Why is the US healthcare system so broken?"📝 利用可能なツール
サーバーは、インデックスと対話するための次のツールを提供します。
カタログツール
catalog_search: カタログ内の関連文書を検索する
チャンクツール
chunks_search: カタログから特定のドキュメントに基づいて関連するチャンクを検索しますall_chunks_search: すべての既知のドキュメントから関連するチャンクを検索する
📜 ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
DocBase MCP server for AI agents
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol (MCP) server that enables semantic search and retrieval of documentation using a vector database (Qdrant). This server allows you to add documentation from URLs or local files and then search through them using natural language queries.18136Apache 2.0
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).1123Apache 2.0
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides a local-first RAG engine for your markdown documents. It uses a file-based Milvus vector database to index your notes, enabling LLMs to perform semantic search and retrieve relevant content from your local files.359Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).4837MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/adiom-data/lance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server