LanceDB
A vector database server for storing, searching, and managing vector embeddings.
LanceDB MCP Server
Overview
A Model Context Protocol (MCP) server implementation for LanceDB vector database operations. This server enables efficient vector storage, similarity search, and management of vector embeddings with associated metadata.
Components
Resources
The server exposes vector database tables as resources:
table://{name}: A vector database table that stores embeddings and metadata- Configurable vector dimensions
- Text metadata support
- Efficient similarity search capabilities
API Endpoints
Table Management
POST /table- Create a new vector table
- Input:
{ "name": "my_table", # Table name "dimension": 768 # Vector dimension }
Vector Operations
-
POST /table/{table_name}/vector- Add vector data to a table
- Input:
{ "vector": [0.1, 0.2, ...], # Vector data "text": "associated text" # Metadata }
-
POST /table/{table_name}/search- Search for similar vectors
- Input:
{ "vector": [0.1, 0.2, ...], # Query vector "limit": 10 # Number of results }
Installation
# Clone the repository
git clone https://github.com/yourusername/lancedb_mcp.git
cd lancedb_mcp
# Install dependencies using uv
uv pip install -e .
Usage with Claude Desktop
# Add the server to your claude_desktop_config.json
"mcpServers": {
"lancedb": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"lancedb_mcp",
"--db-path",
"~/.lancedb"
]
}
}
Development
# Install development dependencies
uv pip install -e ".[dev]"
# Run tests
pytest
# Format code
black .
ruff .
Environment Variables
LANCEDB_URI: Path to LanceDB storage (default: ".lancedb")
License
This project is licensed under the MIT License. See the LICENSE file for details.
Похожие серверы
OpenGenes
Access the OpenGenes database for aging and longevity research, with automatic updates from Hugging Face Hub.
CData Connect Cloud
Query and manage data through CData Connect Cloud, providing a unified interface to various data sources.
Redash
Execute queries and retrieve results using the Redash API.
Solana Launchpads MCP
Tracks daily activity and graduate metrics across multiple Solana launchpads using the Dune Analytics API.
MongoDB MCP Server
A server for performing CRUD operations on a MongoDB database.
Unofficial Reactome MCP Server
Access Reactome pathway and systems biology data via its live API.
SET-MCP
Access financial statements, including income, balance sheets, and cash flow, for companies listed on the Securities Exchange of Thailand (SET).
USDA Nutrition MCP Server
Access nutrition information for over 600,000 foods from the USDA FoodData Central database.
AIND Metadata
Access and interact with Allen Institute for Neural Dynamics (AIND) metadata directly within your IDE.
GraphRAG
Query a hybrid graph (Neo4j) and vector (Qdrant) database for powerful semantic and graph-based document retrieval.