Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Setting
Value

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:

Header
Value

x-api-key (also apikey, api-key, x-apikey)

lumi_... (the key on its own)

Authorization

apikey lumi_...

With Authorization, the value must start with apikey and a space. A request without a valid key returns 401 Unauthorized.

Available tools

Tool
What it does

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

  1. Sign in at app.lumidb.com and select the organization that has your data.

  2. In the left sidebar under Admin, click API keys, then click Create API key.

LumiDB API keys page with the API keys menu item and the Create API key button highlighted
The API keys page
  1. 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.

New API key dialog with name Claude MCP and expiry 30 days
Name the key and set an expiry
  1. Click Copy and store the key somewhere safe, such as a password manager. It starts with lumi_, and LumiDB shows it only once.

Dialog confirming the new API key, with the key value hidden and the Copy button highlighted
Copy the key now. You won't see it again.

Don't see API keys in the sidebar? Ask your organization admin to create a key for you, or contact help@lumidb.com.

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.

  1. In Claude, open Settings. Under Customize, select Connectors. Click + Add in the top-right corner and choose to add a custom connector.

Claude Settings with Connectors selected and the Add button highlighted
Settings → Connectors → + Add
  1. Enter a Name (for example LumiDB MCP) and the server URL https://api.lumidb.com/api/mcp. Click Continue.

Add custom connector dialog with name LumiDB MCP and URL https://api.lumidb.com/api/mcp
Name and server URL
  1. Under Authentication, select No sign-in. Under Request headers, choose apikey as 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.

Authentication set to No sign-in, with an apikey request header holding the masked API key
Select No sign-in and add the apikey header
  1. To use it in a chat, click + in the message box, open Connectors and make sure LumiDB MCP is turned on.

  • Claude can't change a connector's header after you save it. To switch to a new key, remove the connector and add it again.

  • On Team and Enterprise plans, the key the Owner enters is shared by everyone who uses the connector. Create it from an account that has access to the right projects.

  • Request headers is a beta feature in Claude. If the section isn't in your dialog, use Claude Code, or connect Claude Desktop with the local bridge below.

Claude Desktop without Request headers (local bridge)

This option runs mcp-remote on your computer to forward requests with your key. It requires Node.js 18 or later.

  1. In Claude Desktop, open Settings → Developer → Edit Config.

  2. Add lumidb under mcpServers in claude_desktop_config.json:

  1. Restart Claude Desktop.

Keep x-api-key:${LUMIDB_API_KEY} exactly as written, with no space after the colon. The key goes in env.

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.

  1. Open your agent and go to Tools. Select Add a tool → New tool → Model Context Protocol.

  2. Fill in the fields:

    • Server name: LumiDB

    • Server 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

  3. Under authentication, select API key. Set Type to Header and the header name to x-api-key. Select Create.

  4. 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:

Oblique point cloud render of the Jätkäsaari district in Helsinki, returned by render_point_clouds
Example output from 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.

API keys list showing a revoked key and an API key revoked confirmation
A revoked key

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

Problem
What to check

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