This repository provides a Model Context Protocol (MCP) server for accessing Lightdash data. It enables AI assistants to interact with Lightdash through a standardized interface, offering tools to manage projects,
This project is a Model Context Protocol (MCP) server designed to provide access to Lightdash data. It enables AI assistants to interact with Lightdash through a standardized MCP interface.
The server offers several tools for interacting with Lightdash, including: listing projects, retrieving project details, listing spaces, charts, and dashboards, fetching custom metrics, and obtaining catalog information. It also supports retrieving charts and dashboards as code.
Installation can be done automatically via Smithery using npx -y @smithery/cli install lightdash-mcp-server --client claude
or manually using npm install lightdash-mcp-server
.
Configuration requires setting the LIGHTDASH_API_KEY
(your Lightdash PAT) and LIGHTDASH_API_URL
(the API base URL) as environment variables.
To start the server, use npx lightdash-mcp-server
. The MCP configuration JSON needs to be edited to include the server command, arguments, and environment variables.
Development scripts include: npm run dev
for development mode, npm run build
for production build, npm run start
to start the production server, npm run lint
for linting, npm run fix
to fix linting issues, and npm run examples
to run example scripts.
Contributions are welcome. Fork the repository, create a feature branch, run tests and linting (npm run lint
), commit changes, push to the branch, and create a pull request.
syucream/lightdash-mcp-server
January 1, 2025
March 26, 2025
JavaScript