mcp-lance-db: A LanceDB MCP server
Overview
mcp-lance-db is a Model Context Protocol (MCP) server designed for LanceDB, an embedded vector database that facilitates the integration of LLM applications with external data sources and tools.
To use mcp-lance-db, configure your environment to point to the LanceDB database and run the server using the provided command. You can add memories and search for semantically similar memories through the implemented tools.
- Adds and retrieves memories with vector embeddings. - Implements two main tools: add-memory and search-memories. - Configurable database path and collection name.
- Storing and retrieving contextual information for AI applications.
- Enhancing chat interfaces with memory capabilities.
- Building custom AI workflows that require semantic memory.
Add to your AI client
Use these steps to connect mcp-lance-db: A LanceDB MCP server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-lancedb-kyryl-opens-ml": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-lancedb-kyryl-opens-ml"
]
}
}
}FAQ
What is the Model Context Protocol (MCP)?
MCP is an open protocol that allows seamless integration between LLM applications and external data sources.
How do I configure the server?
You need to set the database path and collection name in the server configuration.
Can I use mcp-lance-db for any type of data?
Yes, as long as the data can be represented in text format and has vector embeddings.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1987,"uuid":"15fbd1a5-96e2-4f78-8bae-d94661988258","name":"mcp-server-lancedb","title":"mcp-lance-db: A LanceDB MCP server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/154631148?v=4","created_at":"2025-03-05T07:42:11.003Z","updated_at":"2025-03-12T10:22:24.555Z","status":"created","author_name":"kyryl-opens-ml","author_avatar_url":"https://avatars.githubusercontent.com/u/154631148?v=4","tags":"mcp-server,lancedb,MCP","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/kyryl-opens-ml/mcp-server-lancedb","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"3\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-02-25 22:54:00\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]