Connect your AI with Lightdash data via MCP server for seamless project and dashboard access
Lightdash-MCP-Server is a specialized MCP (Model Context Protocol) server designed to provide AI applications with standardized, flexible access to data insights through the Lightdash API. This server acts as an intermediary, enabling AI tools like Claude Desktop, Continue, Cursor, and more to interact seamlessly with your Lightdash organization's projects, spaces, charts, dashboards, and custom metrics.
Lightdash-MCP-Server offers a robust set of features that cater exclusively to AI application integration. The server supports various functions like listing projects, retrieving project details, managing spaces, charts, and dashboards, as well as fetching custom metrics, metadata, and the catalog for specific projects. These capabilities are implemented using MCP (Model Context Protocol), which ensures interoperability across different AI platforms.
The protocol flow diagram elucidates how MCP client requests initiate from an AI application, traverse through Lightdash-MCP-Server to interact with the underlying data sources, and return responses back to the client.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
Imagine an AI developer using Lightdash-MCP-Server to continuously monitor and access real-time metrics from various projects within a Lightdash organization. This setup leverages the get_metrics_catalog
method to fetch relevant metric data, enabling dynamic insights that can be incorporated directly into training datasets or model validation cycles.
Consider an analytics team utilizing Lightdash-MCP-Server to generate dynamic charts from different projects and spaces. The list_charts
and get_charts_as_code
methods facilitate this process, allowing the creation of interactive dashboards that can be updated remotely based on changing data contexts.
Lightdash-MCP-Server is built with compatibility in mind, ensuring seamless integration for both AI applications and downstream tools. The architecture is designed to be compatible with diverse MCP clients such as Claude Desktop, Continue, Cursor, etc., maintaining a standardized interface that abstracts away complexities.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This compatibility matrix provides a clear overview of which MCP clients can fully integrate with Lightdash-MCP-Server, offering robust support for interactive data access.
Before you begin, ensure that your environment is set up correctly. Node.js and npm should be installed on your system to run the server.
Installation
Install the lightdash-mcp-server
package using npm:
npm install lightdash-mcp-server
Configuration
Create a .env
file with the necessary API credentials for your Lightdash organization:
LIGHTDASH_API_KEY=your_api_key
LIGHTDASH_API_URL=https://app.lightdash.cloud/api/v1 # or your custom Lightdash instance URL
Usage
npx lightdash-mcp-server
examples
directory. To run an example script:
# Set required environment variables
export EXAMPLES_CLIENT_LIGHTDASH_API_KEY=your_api_key
export EXAMPLES_CLIENT_LIGHTDASH_PROJECT_UUID=your_project_uuid
# Run the example
npm run examples
Automated Data Profiling AI applications can use Lightdash-MCP-Server to automatically profile data from various projects, ensuring consistent and accurate insights.
Interactive Dashboard Generation Developers can leverage this server to dynamically generate charts and dashboards for continuous monitoring, making it easier to analyze real-time trends and patterns in their datasets.
To integrate Lightdash-MCP-Server with your chosen AI application, follow these steps:
Lightdash-MCP-Server is built to deliver high performance across various platforms, ensuring optimal integration for diverse AI applications. The following matrix outlines compatibility between Lightdash-MCP-Server and specific MCP clients:
Client | Status |
---|---|
Claude Desktop | Full Support |
Continue | Full Support |
Cursor | Tools Only |
To build the project for production, use the following command:
npm run build
The server can be started with security settings enabled to protect sensitive data. Refer to the configuration file for additional parameters.
Ensure your code meets quality standards by running lint checks and automatically fixing issues using:
npm run lint
npm run fix
How do I know if my AI application is compatible with Lightdash-MCP-Server? Lightdash-MCP-Server supports a wide range of MCP clients, including Claude Desktop, Continue, and Cursor. Refer to the compatibility matrix for detailed information.
Can I customize the server's behavior using environment variables?
Yes, you can configure various aspects of the server by setting environment variables in your .env
file.
How does Lightdash-MCP-Server handle sensitive data during interactions with AI applications? Security is a top priority. The server encrypts data and implements access controls to ensure privacy and protection.
Does the server support real-time updates for dynamic projects?
Yes, using MCP methods like list_charts
and get_charts_as_code
, you can retrieve updated charts and dashboards in real time.
What are the steps to troubleshoot connectivity issues with Lightdash-MCP-Server? Check network configuration and ensure API keys are correctly set. Consult the documentation or reach out for support if issues persist.
Thank you for your interest in contributing to Lightdash-MCP-Server!
Explore more about Model Context Protocol (MCP) and its applications across different domains within the official documentation and community forums.
By adhering to these guidelines, developers can harness the power of Lightdash-MCP-Server to unlock new levels of AI application integration and data accessibility.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods