LanceDB MCP Server

by RyanLisse

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.

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Enables efficient vector database operations for embedding storage and similarity search through a Model Context Protocol interface.

  1. Overview
    1. Components
      1. Resources
      2. API Endpoints
    2. Installation
      1. Usage with Claude Desktop
        1. Development
          1. Environment Variables
            1. License

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server providing vector database capabilities through Chroma, enabling semantic document search, metadata filtering, and document management with persistent storage.
                Last updated -
                17
                Python
                MIT License
                • Apple
                • Linux
              • A
                security
                F
                license
                A
                quality
                Provides a scalable knowledge graph implementation for Model Context Protocol using Elasticsearch, enabling AI models to store and query information with advanced search capabilities, memory-like behavior, and multi-zone architecture.
                Last updated -
                17
                6
                TypeScript
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that searches transcript segments in a Turso database using vector similarity, allowing users to find relevant content by asking questions without generating new embeddings.
                Last updated -
                JavaScript
              • A
                security
                A
                license
                A
                quality
                A high-performance, persistent memory system for the Model Context Protocol (MCP) providing vector search capabilities and efficient knowledge storage using libSQL as the backing store.
                Last updated -
                6
                64
                1
                TypeScript
                MIT License
                • Linux

              View all related MCP servers

              ID: a34mk639ba