
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that connects AI assistants to Lightdash analytics for discovering data, querying, and managing charts and dashboards.
Lightdash MCP Server is cataloged as an MCP server attributed to poddubnyoleg. An MCP server that connects AI assistants to Lightdash analytics for discovering data, querying, and managing charts and dashboards. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Lightdash MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server requires LIGHTDASH_TOKEN and LIGHTDASH_URL; other variables such as LIGHTDASH_PROJECT_UUID, Cloudflare Access credentials, and IAP settings are optional.
Yes, when installed with the iap extra and IAP_ENABLED is set, the server signs a JWT and attaches it as a Proxy-Authorization header while preserving the Lightdash API key header.
Yes, the server automatically discovers and registers tools placed in the tools directory that define a TOOL_DEFINITION.
README.md · a0e98202b50f · 采集于 2026-11-13 13:53:56 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Connect Claude, Cursor, and other AI assistants to your Lightdash analytics using the Model Context Protocol (MCP).
A Model Context Protocol (MCP) server for interacting with Lightdash, enabling LLMs to discover data, create charts, and manage dashboards programmatically.
This MCP server provides a comprehensive set of tools for the full data analytics workflow:
pip install lightdash-mcp
uvx lightdash-mcp
pipx run lightdash-mcp
git clone https://github.com/poddubnyoleg/lightdash_mcp.git
cd lightdash_mcp
pip install .
If your Lightdash instance is behind Google Cloud Identity-Aware Proxy (e.g. Cloud Run with --iap), install with the iap extra:
pip install lightdash-mcp[iap]
# or from source
pip install .[iap]
Set IAP_ENABLED=true. The server will sign a JWT (audience {LIGHTDASH_URL}/*) via the IAM Credentials API and attach it as Proxy-Authorization: Bearer <jwt> on every request. The Authorization: ApiKey header is preserved for Lightdash.
Both service account credentials and user credentials (Application Default Credentials / ADC) are supported:
Service account credentials (default in Cloud Run, GCE, etc.):
roles/iam.serviceAccountTokenCreator on itselfroles/iap.httpsResourceAccessor on the Cloud Run serviceUser credentials (ADC) (e.g. gcloud auth application-default login):
IAP_SA to the service account email to impersonate for signing the JWTroles/iam.serviceAccountTokenCreator on the target service accountroles/iap.httpsResourceAccessor on the Cloud Run serviceThe server requires the following environment variables:
| Variable | Required | Description | Example |
|---|---|---|---|
LIGHTDASH_TOKEN | ✅ | Your Lightdash Personal Access Token | ldt_abc123... |
LIGHTDASH_URL | ✅ | Base URL of your Lightdash Instance | https://app.lightdash.cloud |
CF_ACCESS_CLIENT_ID | ❌ | Cloudflare Access Client ID (if behind CF Access) | - |
CF_ACCESS_CLIENT_SECRET | ❌ | Cloudflare Access Client Secret (if behind CF Access) | - |
LIGHTDASH_PROJECT_UUID | ❌ | Default project UUID (falls back to first available project) | 3fc2835f-... |
IAP_ENABLED | ❌ | Enable Google Cloud IAP authentication (true/1) | true |
IAP_SA | ❌ | Service account email for IAP when using user credentials (ADC) | sa@project.iam.gserviceaccount.com |
ldt_)Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"lightdash": {
"command": "uvx",
"args": ["lightdash-mcp"],
"env": {
"LIGHTDASH_TOKEN": "ldt_your_token_here",
"LIGHTDASH_URL": "https://app.lightdash.cloud",
"LIGHTDASH_PROJECT_UUID": "your-project-uuid"
}
}
}
}
Create or edit .mcp.json in your project root:
{
"mcpServers": {
"lightdash": {
"type": "stdio",
"command": "lightdash-mcp",
"env": {
"LIGHTDASH_URL": "https://your-lightdash-instance.com",
"LIGHTDASH_TOKEN": "ldt_your_token_here",
"LIGHTDASH_PROJECT_UUID": "your-project-uuid"
}
}
}
}
Restart Claude Code and run /mcp to verify the server shows as connected.
Note: Don't commit
.mcp.jsonif it contains secrets — add it to.gitignore.
Export the environment variables before running:
export LIGHTDASH_TOKEN="ldt_your_token_here"
export LIGHTDASH_URL="https://app.lightdash.cloud"
lightdash-mcp
| Tool | Description |
|---|---|
list-projects | List all available Lightdash projects |
get-project | Get detailed information about a specific project |
list-explores | List all available explores/tables in a project |
get-explore-schema | Get detailed schema for a specific explore (dimensions, metrics, joins) |
list-spaces | List all spaces (folders) in the project |
get-custom-metrics | Get custom metrics defined in the project |
| Tool | Description |
|---|---|
list-charts | List all saved charts, optionally filtered by name |
search-charts | Search for charts by name or description |
get-chart-details | Get complete configuration of a specific chart |
create-chart | Create a new saved chart with metric query and visualization config |
update-chart | Update an existing chart's configuration (name, description, queries, visualization) |
run-chart-query | Execute a chart's query and retrieve the data |
delete-chart | Delete a saved chart |
| Tool | Description |
|---|---|
list-dashboards | List all dashboards in the project |
create-dashboard | Create a new dashboard (empty or with tiles) |
duplicate-dashboard | Clone an existing dashboard with a new name |
get-dashboard-tiles | Get all tiles from a dashboard with optional full config |
get-dashboard-tile-chart-config | Get complete chart configuration for a specific dashboard tile |
get-dashboard-code | Get the complete dashboard configuration as code |
create-dashboard-tile | Add a new tile (chart, markdown, or loom) to a dashboard |
update-dashboard-tile | Update tile properties (position, size, content) |
rename-dashboard-tile | Rename a dashboard tile |
delete-dashboard-tile | Remove a tile from a dashboard |
update-dashboard-filters | Update dashboard-level filters |
run-dashboard-tiles | Execute one, multiple, or all tiles on a dashboard concurrently |
| Tool | Description |
|---|---|
run-chart-query | Execute a saved chart's query and return data |
run-dashboard-tiles | Run queries for dashboard tiles (supports bulk execution) |
run-raw-query | Execute an ad-hoc metric query against any explore |
| Tool | Description |
|---|---|
create-space | Create a new space to organize charts and dashboards |
delete-space | Delete an empty space |
.
├── pyproject.toml # Package configuration
├── lightdash_mcp/ # Main package
│ ├── __init__.py # Package init
│ ├── server.py # MCP server entry point
│ ├── lightdash_client.py # Lightdash API client
│ └── tools/ # Tool implementations
│ ├── __init__.py # Auto-discovery and tool registry
│ ├── base_tool.py # Base tool interface
│ └── *.py # Individual tool implementations
├── README.md
└── LICENSE
The server automatically discovers and registers tools from the tools/ directory. To add a new tool:
Create a new file in lightdash_mcp/tools/ (e.g., my_new_tool.py)
Define the tool:
from pydantic import BaseModel, Field
from .base_tool import ToolDefinition
from .. import lightdash_client as client
class MyToolInput(BaseModel):
param1: str = Field(..., description="Description of param1")
TOOL_DEFINITION = ToolDefinition(
name="my-new-tool",
description="Description of what this tool does",
input_schema=MyToolInput
)
def run(param1: str) -> dict:
"""Execute the tool logic"""
result = client.get(f"/api/v1/some/endpoint/{param1}")
return result
Restart the server - the tool will be automatically registered
Tools are automatically discovered via tools/__init__.py, which:
tools/ directory for Python modulesTOOL_DEFINITION.nameYou can test individual tools by importing them:
from tools import tool_registry
# List all registered tools
print(tool_registry.keys())
# Test a specific tool
result = tool_registry['list-projects'].run()
print(result)
If you see 401 Unauthorized errors:
LIGHTDASH_TOKEN is correct and starts with ldt_If you see connection errors:
LIGHTDASH_URL is correcthttps://app.lightdash.cloudhttps://your-domain.comCF_ACCESS_CLIENT_ID and CF_ACCESS_CLIENT_SECRET are setIAP_ENABLED=true is set, install with pip install lightdash-mcp[iap], and verify the service account has serviceAccountTokenCreator on itselfIf a tool isn't showing up:
tools/ directoryTOOL_DEFINITION variabletools/__init__.pyContributions are welcome! Please:
This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions:
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Lightdash MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/lightdash_mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.