Connecting AI assistants (MCP)
Connect Claude, ChatGPT (Codex), Copilot, Cursor or your own agent to LumiDB with the Model Context Protocol (MCP).
LumiDB has a built-in Model Context Protocol (MCP) server. Once it's connected, an AI assistant or agent can find your datasets, read their metadata, render point clouds into images and compute volumes. Your data stays in LumiDB, and nothing is downloaded.
Setup takes about five minutes: create an API key in LumiDB, then add the server to your AI client.
Before you start
You need:
A LumiDB account with access to at least one project. See Account management.
An API key. Step 1 shows how to create one.
An MCP client that supports Streamable HTTP and lets you set a request header. Claude, Claude Code, Codex, Copilot Studio, VS Code, Cursor and the Python SDKs all qualify.
Server details
Server URL
https://api.lumidb.com/api/mcp
Transport
Streamable HTTP
Authentication
LumiDB API key in a request header
Access
Read-only, limited to the projects the key's owner can see
The server accepts the API key in any of these headers. Use the one your client supports:
x-api-key (also apikey, api-key, x-apikey)
lumi_... (the key on its own)
Authorization
apikey lumi_...
Available tools
search_datasets
Lists your point clouds and rasters, with an optional bounding box ([west, south, east, north] in WGS84). Returns at most 100 results.
describe_dataset
Returns a dataset's metadata: point count, classifications, density, extents, CRS, capture dates and user metadata.
compute_volume
Computes cut, fill and net volume between a point cloud surface and a base surface inside a box or polygon. Takes point cloud IDs, the boundary and its projected CRS, base heights for each vertex and an optional classification filter.
render_point_clouds
Renders one or more point clouds to a PNG from a camera you choose: perspective or orthographic, with optional cropping and classification filters.
This is the first set of tools, and we're adding more. Missing a tool you need? Send your request to help@lumidb.com.
Step 1: Create an API key
Sign in at app.lumidb.com and select the organization that has your data.
In the left sidebar under Admin, click API keys, then click Create API key.

Give the key a descriptive Name, such as the tool you'll use it in (for example
Claude MCP). Choose when it Expires: Never, 1 day, 7 days, 30 days, or a custom date. Then click Create API key.

Click Copy and store the key somewhere safe, such as a password manager. It starts with
lumi_, and LumiDB shows it only once.

Step 2: Connect your AI client
Pick your client below. Each example uses lumi_your_key_here as a placeholder. Replace it with your own key.
Claude (web and desktop)
Custom connectors are available on all Claude plans. The Free plan allows one custom connector. On Team and Enterprise plans, an Owner adds the connector under Organization settings → Connectors, and members then connect to it.
In Claude, open Settings. Under Customize, select Connectors. Click + Add in the top-right corner and choose to add a custom connector.

Enter a Name (for example
LumiDB MCP) and the server URLhttps://api.lumidb.com/api/mcp. Click Continue.

Under Authentication, select No sign-in. Under Request headers, choose
apikeyas the header name and paste your key as the value. Enter the key on its own, with no prefix. Leave Required checked, then click Add.

To use it in a chat, click + in the message box, open Connectors and make sure LumiDB MCP is turned on.
Claude Code
Run this in your terminal:
Add --scope user to make LumiDB available in all your projects. Without it, the server is only added to the current project.
Check the connection with claude mcp list. LumiDB should show ✔ Connected. Inside a session, use /mcp.
To share the setup with your team without sharing a key, add a .mcp.json file to the repository. Each person then sets LUMIDB_API_KEY in their own environment:
The first time you run claude in the repository, Claude Code asks you to approve the server.
ChatGPT and OpenAI
Codex CLI. Add this to ~/.codex/config.toml:
Set the key in your shell (export LUMIDB_API_KEY=lumi_your_key_here), then start codex and type /mcp to confirm LumiDB is listed. Codex reads the header value from the LUMIDB_API_KEY environment variable.
OpenAI Agents SDK (Python). Install it with pip install openai-agents, then run:
Microsoft Copilot Studio
You can add LumiDB as a tool for a Copilot Studio agent, and then publish the agent to Microsoft 365 Copilot or Teams.
Open your agent and go to Tools. Select Add a tool → New tool → Model Context Protocol.
Fill in the fields:
Server name:
LumiDBServer description:
Search, describe and render 3D point clouds and rasters stored in LumiDB.The agent uses this description to decide when to call the server.Server URL:
https://api.lumidb.com/api/mcp
Under authentication, select API key. Set Type to Header and the header name to
x-api-key. Select Create.In Add tool, select Create a new connection, enter your LumiDB API key, then select Add to agent.
GitHub Copilot in VS Code
Create .vscode/mcp.json in your workspace. To use it in every workspace, run MCP: Open User Configuration instead.
The first time the server starts, VS Code asks for your key and stores it securely. To start or check the server, run MCP: List Servers. Then use Copilot Chat in Agent mode.
Cursor
Add the server to ~/.cursor/mcp.json to use it in all projects, or to .cursor/mcp.json in a single project:
Don't commit a project mcp.json that contains your key. Cursor can also read the key from an environment variable. See the variable interpolation section of Cursor's MCP docs.
Open Customize in Cursor's sidebar and check that the LumiDB toggle is on. If it doesn't connect, open the Output panel and select MCP Logs.
Python: your own agent
Building your own agent? Use the official MCP Python SDK. This example needs mcp version 2 or later (pip install "mcp>=2"):
With mcp 1.x, use streamablehttp_client(LUMIDB_MCP_URL, headers={...}) instead. It yields (read, write, get_session_id).
Step 3: Try it
Ask your assistant in plain language. For example:
"Which point clouds and rasters do I have in central Helsinki?"
"Describe the Jätkäsaari mobile mapping scan: point count, density, capture dates and classifications."
"Render an oblique view of the Jätkäsaari scan from the south."
"Render a top-down view of this dataset with only ground points (class 2)."
The assistant decides which tools to call. When it renders, it gets back an image of your data. Clients that support interactive tool views, such as Claude, show the image in the chat:

render_point_clouds: Jätkäsaari mobile mapping scan, Helsinki (data: Cyclomedia / Mobility Lab Helsinki)Revoke a key
To revoke a key, open API keys, click the trash icon on the key's row and confirm. The status changes to Revoked. It can take up to a minute before the key stops working.

Revoke a key immediately if it may have leaked. To rotate a key, create a new one, update your client, then revoke the old key.
Current limitations
Read-only. The MCP server can't import, export, edit or delete data.
Point clouds only for rendering. Renders use stored RGB colours, or grey when a dataset has no RGB. Colouring by intensity or classification isn't available yet, and rasters can be listed and described but not rendered.
Search returns at most 100 datasets. Use a bounding box to narrow it down.
Large renders take longer. Start with small images. If your client times out, raise its timeout.
Troubleshooting
401 Unauthorized: "No authentication method provided"
The key isn't being sent. Check the header name, and that your client actually passes the header.
401 Unauthorized while sending a key
The key is mistyped, expired or revoked. With Authorization, make sure the value is apikey lumi_....
Claude Code shows Needs authentication or "Dynamic Client Registration rejected"
Claude Code didn't get a valid key and fell back to OAuth. Remove the server (claude mcp remove lumidb) and add it again with the correct --header.
Connected, but no datasets are found
API keys belong to one organization. Make sure you created the key in the organization that holds the data, and that your user can access those projects.
No Request headers section in Claude
The feature isn't enabled for your Claude organization yet. Use Claude Code or the Claude Desktop local bridge.
Still stuck? Contact help@lumidb.com and tell us which client you're using and the exact error message. Never include your API key.
Last updated

