KosmoKrator

analytics

Metabase MCP, CLI, and Lua Integration for AI Agents

Metabase integration docs for AI agents: MCP gateway setup, Metabase CLI commands, Lua API reference, credentials, and function schemas.

8 functions 8 read 0 write Username and password auth

Metabase for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
metabase
route_slug
metabase
package
metabase
auth_strategy
basic Username and password
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Metabase MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Metabase.

Metabase CLI Matrix

Use these pages for direct Metabase CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
metabase.metabase_list_dashboards Read read 0 List all dashboards available in Metabase. Returns dashboard IDs, names, and basic metadata. Use metabase_get_dashboard to retrieve the full dashboard with cards.
metabase.metabase_get_dashboard Read read 1 Get a single Metabase dashboard by ID, including all cards (questions), layout, and parameters. Use metabase_list_dashboards to find dashboard IDs.
metabase.metabase_list_cards Read read 0 List all cards (questions/saved questions) in Metabase. Returns card IDs, names, collection info, and display types. Use metabase_get_card for full definitions or metabase_query_card to run a card.
metabase.metabase_get_card Read read 1 Get the full definition of a Metabase card (question) by ID, including the query, display settings, and parameters. Use metabase_list_cards to find card IDs.
metabase.metabase_query_card Read read 1 Execute a saved Metabase card (question) and return the query results as rows. Use metabase_list_cards or metabase_get_card to find card IDs. The card must be a question (not a model or metric).
metabase.metabase_list_databases Read read 0 List all databases connected to Metabase. Returns database IDs, names, engine types, and metadata. Use metabase_get_database to retrieve tables and fields for a specific database.
metabase.metabase_get_database Read read 1 Get detailed metadata for a Metabase database by ID, including its tables, fields, and schema information. Use metabase_list_databases to find database IDs.
metabase.metabase_get_current_user Read read 0 Get the currently authenticated Metabase user profile, including name, email, and group memberships. Useful for verifying which account the integration is using.