Cloud Pro

Cloud Enterprise

The Model Context Protocol (MCP) enables AI assistants (e.g. ChatGPT, Claude) and custom agents to directly interact with your Lightdash data. This integration allows MCP clients to explore your data models, search for metrics and dimensions, and provide data-driven insights - all through natural conversation. You can use MCP with existing AI assistants or integrate it into your own custom agents and automated workflows. MCP uses secure OAuth authentication and respects all your existing access controls, ensuring data remains protected. With MCP, your AI assistant becomes a data analyst that can:
  • Browse and understand your data models
  • Find relevant metrics and dimensions
  • Switch between different projects seamlessly
  • Respect your data governance and access controls
MCP respects all your existing Lightdash permissions and user attributes. MCP clients can only access the data that your user account has permission to view.

Get started

Setting up MCP is quick and straightforward. You can connect your AI assistant to your Lightdash instance in just a few minutes.

Prerequisites

  • A Lightdash Cloud Pro or Enterprise account with MCP enabled
  • An MCP-compatible AI assistant (e.g., Claude.ai, Claude Desktop, ChatGPT)

Installation

Claude.ai (Web & Desktop Apps)

Set up MCP in the Claude.ai web app, and it will automatically sync to your Claude Desktop app after restart.

ChatGPT (Web App)

ChatGPT support for MCP is coming soon! Stay tuned for updates.

Claude Code CLI

For developers using Claude Code CLI:
claude mcp add lightdash https://<your_instance_name>.lightdash.cloud/api/v1/mcp -t http
Replace <your_instance_name> with your actual Lightdash instance name.

Custom Integration (For Developers)

If you’re building your own agents or automated workflows, you can integrate directly with Lightdash MCP:
  • Transport: Lightdash MCP exposes a StreamableHTTP transport endpoint at https://<your_instance_name>.lightdash.cloud/api/v1/mcp
  • Debugging: Use @modelcontextprotocol/inspector to inspect and debug the MCP connection
  • Authentication: Requires OAuth 2.0 flow for secure authentication
  • Documentation: See the MCP specification for implementation details

Configuring your AI assistant

Since MCP provides raw tools without built-in intelligence, your AI assistant needs proper instructions to use Lightdash MCP effectively. We recommend adding custom instructions to guide the AI in using the tools correctly.

What it can do

Core capabilities

MCP provides AI assistants with powerful tools to interact with your Lightdash data:

System information

  • Get Lightdash version - Check the current version of your Lightdash instance

Project management

  • List projects - View all accessible projects in your organization
  • Set active project - Switch context between different projects (required before accessing any data)
  • Get current project - Check which project is currently active
Important: An active project must be set before MCP can retrieve any data. Your AI assistant will typically handle this automatically by listing available projects and asking you to select one if none is currently active.

Data exploration tools

  • Find explores - Browse available data models (explores) and understand their structure
  • Find fields - Search for specific metrics and dimensions across your data models
  • Find dashboards - Locate existing dashboards by name or content
  • Find charts - Search through saved charts and visualizations

Example conversations

Here are some examples of how you can interact with AI assistants using MCP:

Best practices

To get the most value from MCP, ensure your Lightdash data is well-organized and documented. See our AI agents best practices guide for detailed recommendations on:
  • Organizing and naming your data models
  • Writing effective documentation and AI hints
  • Optimizing for AI assistant performance
  • Security and permissions considerations

FAQ

Q: Does Lightdash MCP store my data or query results? A: No, Lightdash MCP does not store any query results, conversation responses, or data. MCP acts as a bridge that allows AI assistants to access your Lightdash metadata and execute queries in real-time. The MCP consumer (your AI assistant) is responsible for any data storage. Depending on which AI assistant you use, data might be shared with third parties according to their privacy policies. Q: Can multiple team members use MCP? A: Yes, each team member can set up their own MCP connection with their individual Lightdash credentials. Each connection respects that user’s specific permissions and access controls. Q: Can MCP modify my data or dashboards? A: No, MCP has read-only access. It can search and explore your data models but cannot make any modifications to your Lightdash configuration or underlying data.