Skip to main content
Glama
LanceDB MCP Server

LanceDB MCP Server

Official
by lancedb

LanceDB MCP server

This is a basic, serveless MCP server that uses LanceDB to store and retrieve data. It is intended to be used as a reference for building complex MCP apps with LanceDB.

It provides 3 tools:

  • Ingest docs

  • Retrieve docs

  • Get table details

Related MCP server: qdrant-mcp

Installation

Just add the following config to your claude mcp config file:

{
  "mcpServers": {
    "lancedb": {
      "command": "uv",
      "args": [
        "--directory",
        "/Path/to/your/lancedb_mcp",
        "run",
        "/path/to/your/mcp/lancedb_mcp.py"
      ]
    }
  }
}

Ingest docs

Embed your docs and store them into lancedb for retreival. Here's an example of ingesting an entire blog into lancedb.

Retrieve docs

Query your docs. Here's an example of querying lancedb for a blog post.

Get table details

Get table details. Here's an example of getting table details.

Available Tools

3 tools
ingest_docsC
Ingests a list of documents into a LanceDB table. It is critical that the metdata must be a string literal

Args:
    docs (Union[str, List[str]]): A string or a list of strings to ingest.

Returns:
    None

example:
    ingest_docs(
        docs=["Hello world", "Hello world 2"],
    )

Inputs: docs (required).

query_tableC
Query a LanceDB table with a query string and return the top k results.

Args:

    query (str): The query string.
    top_k (int): The number of results to return. Defaults to 5.
    query_type (str): The type of query to perform. Defaults to "vector".

Returns:

    List[Schema]: A list of Schema objects.

Inputs: query (required), top_k, query_type.

table_detailsB
Get the details of a LanceDB table.

Args:

    table_name (str): The name of the table to get the details of. Defaults to "lancedb_table".
    db_uri (str): The URI of the LanceDB database. Defaults to "~/lancedb".

Returns:
    dict: A dictionary of the table details.

Inputs: table_name, db_uri.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: ingesting documents, querying a table, and retrieving table details. No overlap exists.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (ingest_docs, query_table, table_details) using snake_case.

    Tool Count4/5

    Three tools is minimal but appropriate for a basic LanceDB server covering ingestion, querying, and metadata inspection. Slightly limited but not unreasonable.

    Completeness3/5

    Covers core operations (ingest, query, details) but lacks delete, update, or list tables, which are notable gaps for a database server.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      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.
      26 npm
      78
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for document ingestion and semantic search on Qdrant. Enables ingesting local documents, generating embeddings with OpenAI, and performing vector search with metadata filters.
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Local-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.
      3
      6 npm
      MIT