LambdaDB can be used from any Model Context Protocol (MCP) client through the LambdaDB MCP server. This is useful when you want an AI assistant to inspect collections, list documents, fetch records, or run search queries against a LambdaDB project. This guide shows a local setup flow using a project API key, base URL, and project name from LambdaDB Cloud.Documentation Index
Fetch the complete documentation index at: https://docs.lambdadb.ai/llms.txt
Use this file to discover all available pages before exploring further.
Before you start
You will need:- A LambdaDB project API key
- Your project’s base URL
- Your project name
- A local copy of the LambdaDB MCP server
- An MCP client such as Claude Desktop
The LambdaDB MCP server is designed to connect to a single LambdaDB project per process. It uses a project-scoped API key and is read-only by default unless write tools are explicitly enabled.
Step 1: Get your LambdaDB connection details
From LambdaDB Cloud, collect the following values for the project you want to expose to your MCP client:- Base URL
- Project name
- Project API key
Step 2: Build the LambdaDB MCP server
Clone the LambdaDB MCP server locally, then build it:.env file:
Step 3: Add the server to your MCP client
For Claude Desktop, add an MCP server entry that points to the builtdist/index.js file.
Step 4: Verify the connection
Once the MCP server is connected, start with the read-only tools:lambdadb_list_collectionslambdadb_get_collectionlambdadb_query_collectionlambdadb_list_docslambdadb_fetch_docs
- Call
lambdadb_list_collectionsto confirm the project connection. - Call
lambdadb_get_collectionfor a known collection. - Run
lambdadb_query_collectionwith a small query against that collection.
Optional: Enable write tools
The LambdaDB MCP server can also expose write operations such as:lambdadb_create_collectionlambdadb_upsert_docslambdadb_delete_docs
Troubleshooting
If the server starts but tools fail:- Verify that base URL, project name, and project API key all belong to the same LambdaDB project.
- Confirm that the project API key is still valid.
- Check the MCP client logs for startup or tool-call errors.
- Run the server locally first to make sure the process starts with the expected environment variables.
- Confirm that the MCP client loaded the correct
dist/index.jspath. - Restart the MCP client after editing its configuration.
- If you expect write tools, make sure
LAMBDADB_MCP_ENABLE_WRITE_TOOLS=trueis set.
Next steps
- Learn how to create collections in Create a collection
- Learn how to list documents in List data
- Learn how to search collections in Search overview