# Metabase CLI

> Metabase CLI is an open-source agent skill for analytics and data. Lets an agent operate a Metabase instance from the terminal via the mb CLI. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/metabase/metabase-cli/tree/main/packages/cli/skills/metabase-cli
- **Repository:** https://github.com/metabase/metabase-cli
- **GitHub stars:** 20
- **License:** AGPL-3.0
- **Skill name:** metabase-cli
- **Collection:** https://github.com/metabase/metabase-cli
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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`.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skills/metabase-cli)
- [Asks for: Bash, Read, Write, Edit, AskUserQuestion](https://github.com/metabase/metabase-cli/blob/HEAD/packages/cli/skills/metabase-cli/SKILL.md)
- [License: AGPL-3.0](https://github.com/metabase/metabase-cli/tree/HEAD/packages/cli/skills/metabase-cli)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Core](https://ai-powered.com/skills/core-metabase): Core is an open-source agent skill for analytics and data.
- [Dashboard](https://ai-powered.com/skills/dashboard): Dashboard is an open-source agent skill for analytics and data.
- [Mbql](https://ai-powered.com/skills/mbql): Mbql is an open-source agent skill for analytics and data.
- [Data workflow](https://ai-powered.com/skills/data-workflow): Data workflow is an open-source agent skill for analytics and data.
- [Metadata](https://ai-powered.com/skills/metadata): Metadata is an open-source agent skill for analytics and data.
- [Add resource command](https://ai-powered.com/skills/add-resource-command): Add resource command is an open-source agent skill for analytics and data.
- [Native SQL](https://ai-powered.com/skills/native-sql): Native SQL is an open-source agent skill for databases.
- [Visualization](https://ai-powered.com/skills/visualization-metabase): Visualization is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/metabase-cli
