Skip to content
Skill

Metabase CLI

Lets an agent operate a Metabase instance from the terminal via the mb CLI

Metabase CLI is an open-source agent skill for analytics and data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
20
Last commit
License
AGPL-3.0
Listing updated

Similar skills

About Metabase CLI

This skill points the agent at the official Metabase command-line tool, which talks to a Metabase instance over its REST API. Its main job is routing: it tells the agent to install the CLI with npm and then load the full command reference from the CLI itself before running anything, so the guidance stays in step with the installed version.

It also directs the agent to two specialised guides bundled with the CLI. One covers end-to-end data work, such as going from raw data to a dashboard or setting up analytics. The other covers moving an application's own analytics into a Metabase data app.

The agent needs the mb CLI installed and access to a Metabase server with credentials configured through the CLI's auth commands. The skill lists Bash, Read, Write, Edit and AskUserQuestion as its allowed tools.

When your agent uses it

Drive a Metabase instance from the terminal via the `mb` CLI — auth, databases, cards, dashboards, transforms, queries, search, git-sync, data apps — including moving an application's own dashboards, KPI tiles and charts into a Metabase data app. Discovery entry; load the full guide with `mb skills get core`.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (1 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the metabase-cli plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add metabase/metabase-cli
/plugin install metabase-cli@metabase

Or copy only this skill to ~/.claude/skills/metabase-cli:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/metabase-cli &&
cp -R "$tmp/packages/cli/skills/metabase-cli" ~/.claude/skills/metabase-cli &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/metabase-cli inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/metabase-cli to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/metabase-cli &&
cp -R "$tmp/packages/cli/skills/metabase-cli" ~/.agents/skills/metabase-cli &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/metabase-cli inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/metabase-cli to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/metabase-cli &&
cp -R "$tmp/packages/cli/skills/metabase-cli" ~/.cursor/skills/metabase-cli &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/metabase-cli inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/metabase/metabase-cli.git --path packages/cli/skills/metabase-cli

Or copy the folder to ~/.gemini/skills/metabase-cli yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/metabase-cli:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/metabase/metabase-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/metabase-cli &&
cp -R "$tmp/packages/cli/skills/metabase-cli" ~/.copilot/skills/metabase-cli &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/metabase-cli inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/metabase/metabase-cli.git

Then copy metabase-cli/packages/cli/skills/metabase-cli into your agent's skills folder as metabase-cli. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

CLI setup and routing
Installs the mb command with npm and sends the agent to the CLI's bundled guides before it runs commands.
Full command reference
Loads the core guide covering authentication, flag conventions and every command group.
End-to-end data workflow
Hands multi-step goals such as building a data model or answering data questions to a guided workflow.
Data app migration
Points to a guide for moving an application's dashboards, KPI tiles and charts into a Metabase data app.
Bundled skill discovery
Lists the bundled skills the connected server can use, with an option to show all of them.

Good for

  • List databases and cards on my Metabase instance from the terminal
  • Create or update a dashboard in Metabase using the CLI
  • Move my app's analytics charts into a Metabase data app
  • Run a query against a Metabase database and review the results
  • Set up git-sync for Metabase content

Metabase CLI FAQ

What do I need before using Metabase CLI?

Install the mb CLI with npm i -g @metabase/cli. The agent needs access to a Metabase instance through that CLI.

Does the skill contain the full command reference itself?

No. It is a discovery entry that loads the full guide from the CLI with mb skills get core before running commands.

What tools can the agent use with Metabase CLI?

The skill allows Bash, Read, Write, Edit and AskUserQuestion.

How do I install Metabase CLI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/metabase-cli to use it in all your projects, or to .claude/skills/metabase-cli in one project. Or install the metabase-cli plugin, which includes it: /plugin marketplace add metabase/metabase-cli, then /plugin install metabase-cli@metabase.

Does Metabase CLI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Metabase CLI?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Metabase CLI?

The closest alternatives to Metabase CLI are Core, Dashboard, Mbql, Data workflow and Metadata.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from metabase/metabase-cli

  1. Guides an agent to write end-to-end tests that run the built CLI against real Metabase

    • Open source
    • 20 GitHub stars
    • Developer tools
  2. Writes unit and Playwright tests for a Metabase data app with mocked queries and actions

    • Open source
    • 20 GitHub stars
    • Developer tools
  3. Plans fixtures, expectations and coverage for testing a transform's logic on known rows

    • Open source
    • 20 GitHub stars
    • Analytics and data
  4. Guides an agent to add a Metabase API resource across client, CLI and e2e tests

    • Open source
    • 20 GitHub stars
    • Analytics and data
  5. Sweeps a whole repository for architectural drift using parallel read-only review passes

    • Open source
    • 20 GitHub stars
    • Developer tools
  6. Runs a strict end-of-task review that flags architectural drift before work is marked done

    • Open source
    • 20 GitHub stars
    • Developer tools