Lightdash MCP Server

AI agent · Coding agent · Engineering & development by Lightdash

Build dashboards with coding agents on your governed context layer.

A Model Context Protocol server that connects Claude and Cursor to your governed metrics, allowing AI agents to build and maintain dashboards as version-controlled code.

Agent specs

The full spec card (context, pricing per token, modalities and more) on AntSpace. Sign up free to see the full spec card.

Languages
English

Category: Business Intelligence

Integrations
GitHub, GitLab, Azure DevOps, Bitbucket
Editors and tools
Claude Desktop, Cursor, Terminal
Supported Agents
Claude, Cursor, Internal agents
Protocol
Model Context Protocol (MCP)
Version Control Support
GitHub, GitLab, Azure DevOps, Bitbucket
CLI Tool
Lightdash CLI
  • Connects Claude and Cursor to governed metrics
  • 90% of agent-generated code approved
  • Build dashboards from prompts in 30 minutes
  • Update 50 charts with one command

Overview

Lightdash MCP Server is a specialized tool that connects external AI coding agents, such as Claude and Cursor, to a company's governed metrics and data definitions. It enables an "analytics as code" workflow where these agents build, update, and maintain dashboards and charts directly in version-controlled YAML files. By teaching agents Lightdash-specific conventions through the CLI, data teams can automate the repetitive steps of dashboard creation while maintaining a rigorous developer workflow. This setup ensures that AI-generated analytics are subject to the same pull request and validation processes as software code. It is designed for modern data teams who want to leverage AI for high-speed, governed analytics delivery without sacrificing trust or version control.

Agentic Development

  • AI Tool Connectivity: The MCP server connects Claude, Cursor, and internal agents to Lightdash's governed metrics and semantic layer.
  • Prompt-to-Dashboard Build: Users can describe a dashboard in natural language and the coding agent writes the corresponding YAML code.
  • Agent Skill Installation: The 'lightdash install-skills' command teaches coding agents Lightdash conventions for writing valid chart and dashboard YAML.
  • Bulk Maintenance Scripts: Agents can update up to 50 charts in a single command, making maintenance work scriptable.

Developer Experience

  • Git-Integrated Workflow: Every chart and dashboard is stored as a file, allowing changes to move through standard Git workflows.
  • Preview Environments: The CLI allows agents to spin up preview environments to validate changes before they reach production.
  • CI/CD Validations: The 'lightdash validate' command in CI catches charts that would be broken by underlying data model changes.
  • Automated Migration: Teams can migrate off legacy BI tools with a script instead of months of manual rebuilds.

What it does

  • Connect AI tools to metrics\nWrite dashboard YAML from prompts\nValidate charts in CI\nBulk update analytics files

Published results

  • 90% of agent-generated code approved\n30 minutes to go from data model to dashboard\n85% of data requests answered in 24 hours

Use cases

  • Data teams use coding agents to build complete dashboards from prompts in under 30 minutes.
  • Analytics engineers update dozens of charts simultaneously using bulk maintenance scripts.
  • Teams validate analytics changes in CI/CD pipelines to catch broken charts before deployment.
  • Developers migrate legacy BI content to Lightdash by using agents to translate definitions into YAML.

Specifications

Integrations
GitHub, GitLab, Azure DevOps, Bitbucket
Editors and tools
Claude Desktop, Cursor, Terminal
Human control
Changes move through pull requests for human review and sign-off before merging
Supported Agents
Claude, Cursor, Internal agents
Protocol
Model Context Protocol (MCP)
Version Control Support
GitHub, GitLab, Azure DevOps, Bitbucket
CLI Tool
Lightdash CLI

How it works

  1. Install Agent Skills: Run the 'lightdash install-skills' command to teach your coding agent Lightdash conventions and YAML structures.
  2. Prompt the Agent: Describe the dashboard or chart you need in natural language within your IDE or terminal.
  3. Generate and Preview: The agent generates the YAML files for your analytics, which you can then preview using the Lightdash CLI.
  4. Review and Merge: Open a pull request to review the agent-generated code and merge it into your production environment.

FAQ

What is the Lightdash MCP server?

The Lightdash MCP server connects Claude, Cursor, or internal agents to Lightdash, allowing them to build and maintain analytics as code.

Will AI edits break my production dashboards?

No. Changes go through standard software controls: you spin up a preview environment from the CLI and review every edit as a pull request.

Do business users have to write code?

Analytics as code is for data teams and coding agents to build and maintain the layer; business users continue to use the UI and AI agents for exploration.

Start for free

Added by AntSpace from public sources (lightdash.com).

Related

More AI agents by Lightdash