Lightdash MCP Server

Lightdash MCP Server

lightdash_mcp•bypoddubnyoleg

An MCP server that connects AI assistants to Lightdash analytics for discovering data, querying, and managing charts and dashboards.

License: MIT License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Exposes discovery tools for listing projects, explores, and schemas, plus spaces and custom metrics.
  • •Provides chart management tools to list, search, create, update, run, and delete saved charts.
  • •Offers dashboard management including creating, duplicating, managing tiles and filters, and running tiles concurrently.
  • •Supports ad-hoc metric query execution and space creation and deletion.

BEST FOR

  • •Connecting Claude Desktop and Claude Code to a Lightdash instance for analytics work.
  • •Letting LLMs explore Lightdash data catalogs and query metrics programmatically.
  • •Automating creation and management of charts, dashboards, and spaces in Lightdash.

ABOUT LIGHTDASH_MCP

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.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

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.

FREQUENTLY ASKED QUESTIONS

Which environment variables are required to run the server?

The server requires LIGHTDASH_TOKEN and LIGHTDASH_URL; other variables such as LIGHTDASH_PROJECT_UUID, Cloudflare Access credentials, and IAP settings are optional.

Does it support Lightdash instances behind Google Cloud IAP?

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.

Can tools be added to the server?

Yes, the server automatically discovers and registers tools placed in the tools directory that define a TOOL_DEFINITION.

Upstream README

View this exact version on GitHub

README.md · a0e98202b50f · Fetched 2026-11-13 13:53:56 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Lightdash MCP Server

License: MIT Python 3.10+ MCP PyPI GitHub stars

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.

Features

This MCP server provides a comprehensive set of tools for the full data analytics workflow:

  • Discovery: Explore data catalogs, find tables/explores, and understand schemas
  • Querying: Execute queries with full filter, metric, and aggregation support
  • Chart Management: Create, read, update, and delete charts with complex visualizations
  • Dashboard Management: Build and manage dashboards with tiles, filters, and layouts
  • Resource Organization: Create and manage spaces for content organization

Installation

Prerequisites

  • Python 3.10+
  • A Lightdash instance (Cloud or self-hosted)
  • Lightdash Personal Access Token (obtain from your Lightdash profile settings)
pip install lightdash-mcp

Quick Start with uvx

uvx lightdash-mcp

Quick Start with pipx

pipx run lightdash-mcp

Install from Source

git clone https://github.com/poddubnyoleg/lightdash_mcp.git
cd lightdash_mcp
pip install .

Google Cloud IAP Support

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

  • The runtime service account needs roles/iam.serviceAccountTokenCreator on itself
  • The runtime service account needs roles/iap.httpsResourceAccessor on the Cloud Run service

User credentials (ADC) (e.g. gcloud auth application-default login):

  • Set IAP_SA to the service account email to impersonate for signing the JWT
  • The user needs roles/iam.serviceAccountTokenCreator on the target service account
  • The target service account needs roles/iap.httpsResourceAccessor on the Cloud Run service

Configuration

Environment Variables

The server requires the following environment variables:

VariableRequiredDescriptionExample
LIGHTDASH_TOKEN✅Your Lightdash Personal Access Tokenldt_abc123...
LIGHTDASH_URL✅Base URL of your Lightdash Instancehttps://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

Getting Your Lightdash Token

  1. Log into your Lightdash instance
  2. Go to Settings → Personal Access Tokens
  3. Click Generate new token
  4. Copy the token (starts with ldt_)

Usage with Claude Desktop

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"
      }
    }
  }
}

Usage with Claude Code (CLI)

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.json if it contains secrets — add it to .gitignore.

Usage with Other MCP Clients

Export the environment variables before running:

export LIGHTDASH_TOKEN="ldt_your_token_here"
export LIGHTDASH_URL="https://app.lightdash.cloud"
lightdash-mcp

Available Tools

📊 Discovery & Metadata

ToolDescription
list-projectsList all available Lightdash projects
get-projectGet detailed information about a specific project
list-exploresList all available explores/tables in a project
get-explore-schemaGet detailed schema for a specific explore (dimensions, metrics, joins)
list-spacesList all spaces (folders) in the project
get-custom-metricsGet custom metrics defined in the project

📈 Chart Management

ToolDescription
list-chartsList all saved charts, optionally filtered by name
search-chartsSearch for charts by name or description
get-chart-detailsGet complete configuration of a specific chart
create-chartCreate a new saved chart with metric query and visualization config
update-chartUpdate an existing chart's configuration (name, description, queries, visualization)
run-chart-queryExecute a chart's query and retrieve the data
delete-chartDelete a saved chart

📋 Dashboard Management

ToolDescription
list-dashboardsList all dashboards in the project
create-dashboardCreate a new dashboard (empty or with tiles)
duplicate-dashboardClone an existing dashboard with a new name
get-dashboard-tilesGet all tiles from a dashboard with optional full config
get-dashboard-tile-chart-configGet complete chart configuration for a specific dashboard tile
get-dashboard-codeGet the complete dashboard configuration as code
create-dashboard-tileAdd a new tile (chart, markdown, or loom) to a dashboard
update-dashboard-tileUpdate tile properties (position, size, content)
rename-dashboard-tileRename a dashboard tile
delete-dashboard-tileRemove a tile from a dashboard
update-dashboard-filtersUpdate dashboard-level filters
run-dashboard-tilesExecute one, multiple, or all tiles on a dashboard concurrently

🔍 Query Execution

ToolDescription
run-chart-queryExecute a saved chart's query and return data
run-dashboard-tilesRun queries for dashboard tiles (supports bulk execution)
run-raw-queryExecute an ad-hoc metric query against any explore

🗂️ Resource Management

ToolDescription
create-spaceCreate a new space to organize charts and dashboards
delete-spaceDelete an empty space

Project Structure

.
├── 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

Development

Adding a New Tool

The server automatically discovers and registers tools from the tools/ directory. To add a new tool:

  1. Create a new file in lightdash_mcp/tools/ (e.g., my_new_tool.py)

  2. 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
    
  3. Restart the server - the tool will be automatically registered

Tool Registry

Tools are automatically discovered via tools/__init__.py, which:

  • Scans the tools/ directory for Python modules
  • Imports each module (excluding utility modules)
  • Registers tools by their TOOL_DEFINITION.name

Testing

You 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)

Troubleshooting

Authentication Errors

If you see 401 Unauthorized errors:

  • Verify your LIGHTDASH_TOKEN is correct and starts with ldt_
  • Check that the token hasn't expired
  • Ensure you have the necessary permissions in Lightdash

Connection Errors

If you see connection errors:

  • Verify LIGHTDASH_URL is correct
  • For Lightdash Cloud: use https://app.lightdash.cloud
  • For self-hosted: use https://your-domain.com
  • If behind Cloudflare Access, ensure CF_ACCESS_CLIENT_ID and CF_ACCESS_CLIENT_SECRET are set
  • If behind Google Cloud IAP, ensure IAP_ENABLED=true is set, install with pip install lightdash-mcp[iap], and verify the service account has serviceAccountTokenCreator on itself

Tool Not Found

If a tool isn't showing up:

  • Check that the file is in the tools/ directory
  • Ensure the file has a TOOL_DEFINITION variable
  • Verify the file isn't in the exclusion list in tools/__init__.py
  • Restart the MCP server

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add your changes with appropriate tests
  4. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues and questions:

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Lightdash MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/lightdash_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

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

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

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

Repository stats unavailable
Databases & Storage