> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Metabase in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/metabase
Last updated: 2026-11-24

Share Metabase with your team in Claude, ChatGPT and Cursor through Metorial: username & password or API key sign-in, 16 tools (6 read-only).

---

To give your team Metabase in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Metabase integration in a Metorial portal, and each person connects with a username & password. Agents can run and export saved questions, execute SQL or MBQL queries, inspect database and table metadata, and manage questions, dashboards, collections, users, groups, permissions, public links, and scheduled question alerts. The integration has 16 tools, 6 read-only, 1 write and 9 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares Metabase in a portal and how each person connects
- What Metabase asks for when you connect, and where to find it
- How to keep the 6 read-only tools and reject the other 10

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A username & password from Metabase for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Username & Password** (default) | Custom credentials | `username`, `password` and `instanceUrl` |
| **API Key** | API token | `token` and `instanceUrl` |

The portal and `metorial setup` use **Username & Password** unless someone picks another method.

### Username & Password

To connect, a person enters these values:

- `username`: Your Metabase email address
- `password`: Your Metabase password
- `instanceUrl`: The URL of your Metabase instance (e.g., https://your-metabase.example.com)

### API Key

To connect, a person enters these values:

- `token`: Metabase API key (created in Admin Settings > Authentication > API Keys)
- `instanceUrl`: The URL of your Metabase instance (e.g., https://your-metabase.example.com)

### Setup settings

Whichever method you pick, setup also asks for:

- `instanceUrl`: The URL of your Metabase instance (e.g., https://your-metabase.example.com)

## Admin: share Metabase in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Metabase. Under **Auth Method**, keep **Username & Password** or pick another. For how members connect, choose **Each person connects** so everyone enters their own username & password, or **Shared connection** to enter one username & password for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Metabase.

4. **Choose who gets it**

   Add the access groups that should see Metabase. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Metabase integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search metabase
```

## Employee: connect Metabase

### In the portal

1. **Open Metabase in the catalog**

   Sign in to your portal and open Metabase. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your username & password (username, password and instanceUrl).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search metabase
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Username & Password**. To connect with **API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Metabase connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list metabase
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 6 read-only tools, such as `search` and `list_questions`, and lose the write tool `manage_database`, and the 9 destructive tools, such as `manage_user` or `manage_alert`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list metabase
metorial tools <integration-id>
metorial call <integration-id> list_questions -d '{}'
```

`metorial tools` lists the 16 tools, minus any you rejected. `list_questions` takes no input. It lists saved questions (cards) in Metabase with optional filtering.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (6)

- `list_dashboards`: List dashboards in Metabase with optional filtering.
- `list_questions`: List saved questions (cards) in Metabase with optional filtering.
- `search`: Search across all Metabase objects — questions, dashboards, collections, databases, and tables.
- `get_current_user`: Return the Metabase user represented by the current connection.
- `export_question_results`: Run a saved question and return its complete CSV, JSON, or XLSX result as a downloadable file.
- `get_table_metadata`: Inspect a table and its fields before building an MBQL query or understanding available data.

### Write tools (1)

- `manage_database`: List connected databases, retrieve database details and metadata, or trigger a sync/rescan. Needs `action`.

### Destructive tools (9)

- `execute_query`: Execute an ad-hoc query or run a saved question's query against a connected database.
- `manage_dashboard_cards`: Add or remove question cards from a dashboard. Needs `action` and `dashboardId`.
- `manage_dashboard`: Create, update, retrieve, copy, or archive a dashboard in Metabase. Needs `action`.
- `manage_alert`: Create, update, retrieve, list, or archive scheduled alerts for saved questions. Needs `action`.
- `manage_permissions`: Manage permission groups and group memberships in Metabase. Needs `action`.
- `manage_user`: Create, update, retrieve, deactivate, or reactivate a user in Metabase. Needs `action`.
- `manage_question`: Create, update, retrieve, or archive a saved question (card) in Metabase. Needs `action`.
- `manage_public_link`: Generate or revoke public sharing links for questions and dashboards in Metabase. Needs `action`, `resourceType` and `resourceId`.
- `manage_collection`: Create, update, retrieve, list, or archive collections in Metabase. Needs `action`.

## Triggers

Metabase has 1 trigger, which fire on events in Metabase:

- `alert_webhook`: Receives webhook notifications from Metabase alerts.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Metabase there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Metabase on metorial.com](https://metorial.com/integrations/metabase): the integration overview