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

metabase-lite-mcp

v0.1.0

Published

MCP server that lets AI agents interact with Metabase — search dashboards & cards, explore database metadata, and run read-only query previews

Readme

metabase-lite-mcp

An MCP (Model Context Protocol) server that lets AI agents interact with Metabase — search dashboards & cards, explore database metadata, and run read-only query previews.

Use Case

Give your AI agent (Claude, Cursor, etc.) the ability to:

  • Search & read saved questions (cards) and dashboards
  • Explore database schema — list databases, tables, fields, and collections
  • Run query previews — execute read-only SQL/Mongo queries with built-in safety validation (write operations are blocked before they ever reach Metabase)

This is useful for agents that need to understand your data, find existing reports, validate queries, or build new dashboards on your behalf.

Prerequisites

  • Node.js 18+
  • A Metabase instance with API key access enabled
  • A Metabase API key (inherits permissions from its group)

Install

npm install -g metabase-lite-mcp

Or use directly with npx (no install needed) — see configuration below.

Configuration

The server requires two environment variables:

| Variable | Description | Example | |---|---|---| | METABASE_BASE_URL | Your Metabase instance URL | https://metabase.example.com | | METABASE_API_KEY | Metabase API key | mb_xxxxxxxxxxxxxx |

Usage with Claude Code

Add to your .mcp.json (project-level or ~/.claude/.mcp.json for global):

{
  "mcpServers": {
    "metabase": {
      "command": "npx",
      "args": ["-y", "metabase-lite-mcp"],
      "env": {
        "METABASE_BASE_URL": "https://metabase.example.com",
        "METABASE_API_KEY": "mb_xxxxxxxxxxxxxx"
      }
    }
  }
}

Usage with Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "metabase": {
      "command": "npx",
      "args": ["-y", "metabase-lite-mcp"],
      "env": {
        "METABASE_BASE_URL": "https://metabase.example.com",
        "METABASE_API_KEY": "mb_xxxxxxxxxxxxxx"
      }
    }
  }
}

Available Tools

| Tool | Description | |---|---| | get_configured_databases | List all databases configured in Metabase | | get_database_metadata | Get tables and fields for a specific database | | get_collections | List all collections | | search_cards | Search saved questions by name/text | | get_card | Get full details of a saved question | | search_dashboards | Search dashboards by name/text | | get_dashboard_full | Get full dashboard with tabs, cards, and filters | | run_query_preview | Execute a read-only query and return results |

Safety

All queries are validated before being sent to Metabase:

  • SQL: Blocks INSERT, UPDATE, DELETE, DROP, ALTER, TRUNCATE, CREATE, GRANT, REVOKE, CALL, EXECUTE, and multi-statement queries
  • MongoDB: Blocks $out and $merge pipeline stages

Development

git clone https://github.com/sanjeevsingla/metabase-lite-mcp.git
cd metabase-lite-mcp
npm install
npm run build
npm run watch      # Rebuild on changes
npm run inspector  # Launch MCP inspector to test tools interactively

License

MIT