npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lightdash-mcp

v1.1.0

Published

MCP server for Lightdash — gives Claude Desktop read-only access to your Lightdash projects, charts, dashboards, and queries

Readme

Lightdash MCP Server

Give Claude Desktop read-only access to your Lightdash projects, charts, dashboards, and queries.

Setup

Step 1: Get a Lightdash Personal Access Token

  1. Open your Lightdash instance in a browser
  2. Click your avatar in the bottom-left corner, then select Settings
  3. In the left sidebar, click Personal Access Tokens
  4. Click Generate new token, give it a name (e.g., "Claude Desktop"), and click Create token
  5. Copy the token immediately -- you won't be able to see it again

Step 2: Add to Claude Desktop

Open Claude Desktop. Go to Settings > Developer > Edit Config.

Replace the file contents with:

{
  "mcpServers": {
    "lightdash": {
      "command": "npx",
      "args": ["-y", "lightdash-mcp"],
      "env": {
        "LIGHTDASH_API_KEY": "your-token-here",
        "LIGHTDASH_API_URL": "https://your-lightdash-instance.com"
      }
    }
  }
}
  • your-token-here -- the token from Step 1
  • https://your-lightdash-instance.com -- your Lightdash URL (do NOT add /api/v1, the server adds it automatically)

If you already have other MCP servers, add just the "lightdash": { ... } block inside your existing mcpServers object.

Step 3: Restart and verify

Quit Claude Desktop completely (Cmd + Q), reopen it, and ask Claude:

Use the lightdash_ping tool to test the connection.

If Claude confirms the connection is working, you're all set.

Available Tools

| Tool | What It Does | |------|-------------| | lightdash_ping | Test that the connection to Lightdash is working | | list_projects | List all projects in your Lightdash organization | | list_spaces | List spaces within a project | | search_charts | Search for charts by name | | list_dashboards | List dashboards, optionally filtered by name | | list_explores | List available explores (data models) in a project | | get_chart | Get the full configuration of a saved chart | | get_chart_results | Run a saved chart and get its data | | get_explore | Get the schema of an explore (dimensions and metrics) | | run_raw_query | Run a custom query against an explore with filters and sorts | | run_chart_with_filters | Run a saved chart with optional filter overrides (deep-merged with chart's built-in filters) |

Troubleshooting

Check that Node.js v18+ is installed by running node --version in Terminal. npx requires Node.js. If you get "command not found", install Node.js from nodejs.org (choose the LTS version).

After installing, close and reopen Terminal, then restart Claude Desktop.

Your Personal Access Token is invalid or expired. Go to Lightdash Settings > Personal Access Tokens and create a new one. Then update LIGHTDASH_API_KEY in your Claude Desktop config with the new token.

Your LIGHTDASH_API_URL is wrong. Common mistakes:

  • Adding /api/v1 at the end (don't -- the server adds this automatically)
  • Using http:// instead of https://
  • Typos in the URL

Alternative: Manual Install

If you prefer to clone the repository instead of using npx:

git clone https://github.com/timeleft-dev/lightdash-mcp.git
cd lightdash-mcp
npm install
npm run build

Then use this Claude Desktop config instead (replace /FULL/PATH/TO/ with the actual path):

{
  "mcpServers": {
    "lightdash": {
      "command": "node",
      "args": ["/FULL/PATH/TO/lightdash-mcp/build/index.js"],
      "env": {
        "LIGHTDASH_API_KEY": "your-token-here",
        "LIGHTDASH_API_URL": "https://your-lightdash-instance.com"
      }
    }
  }
}

Optional: Improve Claude's Output

You can add instructions to Claude Desktop's preferences so Claude formats Lightdash data nicely by default.

CSV Tables

Go to Claude Desktop Settings > General. In the "How would you like Claude to behave?" box, add:

When showing tabular data from Lightdash, format it as a CSV code block for easy copying.

Chart Artifacts

In the same preferences box, also add:

When I ask for charts or visualizations of Lightdash data, create them as artifacts using Recharts (a React charting library that Claude Desktop supports natively).

License

MIT