Skip to main content
Metabase logo

Metabase

Lets an agent explore your Metabase, run saved questions (cards), ad-hoc SQL and dashboards, and manage cards, dashboards and collections. Authenticates with a Metabase API key against your own Metabase site URL.

What it can do

MethodWhat it does
metabase_current_userGet the authenticated user - confirms the API key works.
metabase_list_usersList users (admin); filter by status/query, paginate.
metabase_get_userGet one user by id.
metabase_list_databasesList databases; optionally include tables.
metabase_get_databaseGet one database, optionally with tables/fields.
metabase_get_database_metadataGet a database's schemas, tables and fields.
metabase_get_database_schemasList a database's schemas.
metabase_get_database_schema_tablesList tables in one schema of a database.
metabase_list_tablesList all tables visible to the user.
metabase_get_tableGet one table by id.
metabase_get_table_query_metadataGet a table's fields, types and foreign keys.
metabase_get_fieldGet one field's metadata.
metabase_get_field_valuesList a field's distinct values (to build filters).
metabase_search_field_valuesSearch a field's values by prefix for autocomplete.
metabase_get_field_remappingGet the human-readable remapped value for a raw value.
metabase_list_cardsList cards (saved questions); filter by f and model_id.
metabase_get_cardGet one card (question) by id.
metabase_run_card_queryRun a saved card and return its result rows.
metabase_run_card_query_exportRun a saved card and export as csv/json/xlsx/api.
metabase_create_cardCreate a card (saved question). WRITE - confirm first.
metabase_update_cardUpdate or archive a card. WRITE - confirm first.
metabase_delete_cardDelete a card permanently. WRITE - confirm first.
metabase_run_dataset_queryRun an ad-hoc SQL or MBQL query and return rows.
metabase_run_dataset_exportRun an ad-hoc query and export as csv/json/xlsx.
metabase_list_dashboardsList dashboards; filter by f.
metabase_get_dashboardGet one dashboard with its cards (dashcards).
metabase_run_dashcard_queryRun one card on a dashboard and return its data.
metabase_create_dashboardCreate a dashboard. WRITE - confirm first.
metabase_update_dashboardUpdate or archive a dashboard. WRITE - confirm first.
metabase_delete_dashboardDelete a dashboard. WRITE - confirm first.
metabase_set_dashboard_cardsPlace/move/remove cards on a dashboard via the dashcards array. WRITE - confirm first.
metabase_list_pulsesList pulses (dashboard/question subscriptions).
metabase_get_pulseGet one pulse with its channels and schedule.
metabase_list_alertsList alerts (question result notifications).
metabase_get_alertGet one alert with its channels and condition.
metabase_list_collectionsList collections; optional archived/namespace.
metabase_get_collectionGet one collection (or 'root').
metabase_get_collection_itemsList items in a collection.
metabase_create_collectionCreate a collection. WRITE - confirm first.
metabase_update_collectionUpdate or archive a collection. WRITE - confirm first.
metabase_searchSearch across cards, dashboards, collections and tables.

How to get credentials

You need a Metabase API key and your Metabase site URL.

  1. Sign in to Metabase as an admin.
  2. Open Settings (gear icon) -> Admin settings -> Settings -> API keys.
  3. Click Create API key, give it a name (e.g. FlyMyAI Agent) and assign it to a group whose permissions match what the agent should do.
  4. Copy the generated key - it is shown only once.
  5. Note your Metabase base URL (e.g. https://metabase.example.com) - the agent appends /api automatically.

See the official guide: Metabase API keys.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
METABASE_API_KEYAdmin settings -> Settings -> API keys -> Create API key
METABASE_SITE_URLYour Metabase base URL, e.g. https://metabase.example.com
We love our partners - FlyMy.AI builds with the best. Thanks, Metabase!