Skip to content

Start building

Integration · Analytics and data

AI agents for Metabase

Find and run saved questions and dashboard cards, run native SQL against a connected database, and browse collections, databases, tables and fields on your own Metabase or Metabase Cloud, with an API key.

Actions
12
Read
12
Write
0

Actions

What your agents can do in Metabase

12 actions. Each one is a tool your agents can call and a step your workflows can run.

Read 12

Look things up. Nothing changes.

  • Search Metabase

    Finds saved questions (card), models (dataset), metrics, dashboards, collections, tables and databases by name or description.

  • Get a saved question

    Reads a saved question (card) by ID: name, description, display, type (question, model or metric), collection_id, database_id, dataset_query.

  • Run a saved question

    Runs a saved question (card) and returns its results, up to 2,000 rows.

  • Run a SQL query

    Runs a native SQL query against a database connected to Metabase (find its ID with "List databases") and returns up to max_rows rows (100 by default, at most 2,000).

  • Get a dashboard

    Reads a dashboard by ID: name, description, parameters (its filters), collection_id, and dashcards, each with id (the dashcard ID), card_id, card (name, display) and parameter_mappings.

  • Run a dashboard card

    Runs one card of a dashboard with the dashboard's filters applied, as the dashboard shows it.

  • List collections

    Lists the collections (folders) this key can read.

  • List a collection's items

    Lists what a collection holds (questions, models, dashboards, sub-collections), or the top level with "root".

  • List databases

    Lists the databases connected to Metabase.

  • List a database's tables

    Reads one database with its tables.

  • Get a table's fields

    Reads a table's columns for writing SQL: name, schema, db_id, and fields, each with id, name, display_name, base_type, database_type, semantic_type.

  • Who am I

    The user (or API key's service user) the key acts as: id, email, common_name, is_superuser and group_memberships.

Write 0

Create, change or send.

This tool only reads, so nothing in it changes.

Read only

Every action here only reads, so an agent can look things up in Metabase but cannot change anything there.

Connection

How it connects

Connect it once in the console, then give it to the agents and workflows that need it.

API key

Paste an API key from your Metabase account.

What you enter

  • API key

Settings

  • Metabase address

Kept safe

  • Credentials are stored encrypted with your organization's own keys.
  • They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
  • Calls go only to the tool's own servers.

How we protect your data

Ideas

Ideas to start with

Starting points made only from the actions above. Mix them with any other tool your agents can use.

  • 01

    Ask about your Metabase data

    Ask a question in plain words. The agent can search Metabase, get a saved question or run a saved question in Metabase, then answers with what it found.

  • 02

    Share what it finds in Slack

    Give one agent Metabase and Slack: it can search Metabase in Metabase and post a summary to a Slack channel in the same run.

  • 03

    Run it as a workflow step

    Add "Search Metabase" to a workflow, and it runs in Metabase the same way every time, with or without an agent.

FAQ

Metabase and MyDeepAgents

Can MyDeepAgents connect to Metabase?

Yes. The Metabase connector has 12 actions, all of which only read. Your agents can call them as tools, and your workflows can run them as steps.

How do I connect Metabase?

Paste an API key from your Metabase account. You'll need: API key. The connection also asks for: Metabase address. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.

Can an agent change data in Metabase without asking?

No. Every Metabase action only reads, so an agent can look things up there but cannot change anything.

Can I use Metabase in workflows as well as agents?

Yes. Every Metabase action also works as a step in a workflow, and the same connection serves your agents and your workflows.

Early access

Put Metabase to work

Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.