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.
Máy chủ liên quan
ERDDAP MCP Server
Access ERDDAP servers worldwide to search, discover, and retrieve oceanographic and environmental scientific datasets.
Membase MCP
A decentralized memory layer for AI agents providing secure, persistent storage for conversation history and knowledge.
Prisma MCP
Manage Prisma Postgres databases and backups using AI agents via local or remote servers.
Instructure DAP
Query Canvas and other Instructure data using the Instructure Data Access Platform (DAP) API.
MySQL MCP Tools
A server providing tools for querying and managing a MySQL database.
CData Reckon Accounts Hosted
A read-only MCP server by CData that enables LLMs to query live data from Reckon Accounts Hosted. Requires a separate CData JDBC Driver.
CData API Driver MCP Server
A read-only MCP server for querying live data from various APIs using the CData JDBC Driver for API Driver.
CData SAP ByDesign
A read-only MCP server for querying live SAP ByDesign data. Requires a separate CData JDBC Driver for SAP ByDesign.
Yahoo Finance
Access financial data and visualization tools from Yahoo Finance.
Apache Gravitino
Access Apache Gravitino, a high-performance, federated metadata lake for data and AI.