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
basicUsername and password- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Metabase CLIHeadless setup and direct function calls. Metabase MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Metabase MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Metabase.
Claude Code Metabase MCP setup for Claude Code. Cursor Metabase MCP setup for Cursor. Codex Metabase MCP setup for Codex. OpenAI Agents Metabase MCP setup for OpenAI Agents SDK. Claude Agent SDK Metabase MCP setup for Claude Agent SDK. Vercel AI SDK Metabase MCP setup for Vercel AI SDK. LangChain Metabase MCP setup for LangChain. LangGraph Metabase MCP setup for LangGraph. CrewAI Metabase MCP setup for CrewAI. MCP clients Metabase MCP setup for Generic MCP Clients.
Metabase CLI Matrix
Use these pages for direct Metabase CLI workflows in scripts, CI, cron, and agent wrappers.
CI Metabase CLI for CI. Cron Jobs Metabase CLI for cron jobs. Shell Scripts Metabase CLI for shell scripts. Headless Automation Metabase CLI for headless automation. Coding Agents Metabase CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
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. |