About Metabase AI Assistant
Metabase AI Assistant is an MCP server published by enessari in the Developer Tools category: the most powerful MCP Server for Metabase - 111+ tools for AI SQL generation, dashboard automation & enterprise BI. Works with Claude, Cursor, ChatGPT. Conduid read 152 tools from its source: activity_cleanup, activity_database_usage, activity_error_analysis, activity_log_init, activity_operation_stats, activity_performance_insights and 146 more. No package is published for it, so it installs from a source checkout.
The repository has 48 stars and 12 forks, is licensed Apache-2.0, and its last commit was on 3 Sep 2026. The latest release is v5.3.0 (1 Sep 2026): 🚀 Metabase AI Assistant v5.3.0 — The Ultimate dbt & Metabase Bidirectional Platform This landmark release introduces complete bidirectional synchronization between dbt a… It follows v5.2.0 (31 Aug 2026), and the 5 most recent releases go back to v4.2.1 (30 Aug 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include assistant, devtools and business-intelligence.
Install
git clone https://github.com/enessari/metabase-ai-assistantTools (152)
activity_cleanupClean up old activity logs to maintain performance and storage efficiency| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Preview what would be deleted without actually deleting |
| retention_days | number | Keep logs newer than this many days (default: 90) |
activity_database_usageGet database usage patterns and statistics showing which databases are most active| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 30) |
activity_error_analysisAnalyze error patterns and common failure points to identify improvement opportunities| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 7) |
activity_log_initInitialize activity logging system for a database - creates log table and starts tracking operations| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to initialize logging for |
| schema | string | Schema name for log table (default: public) |
activity_operation_statsAnalyze operation statistics and patterns over specified time period| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 7) |
activity_performance_insightsGet performance insights showing slow operations and optimization opportunities| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 7) |
activity_session_summaryGet comprehensive summary of current or specified session activities and performance| Parameter | Type | Description |
|---|---|---|
| session_id | string | Session ID to analyze (optional, defaults to current session) |
activity_timelineGet chronological timeline of recent activities for debugging and monitoring| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to show (default: 7) |
| limit | number | Maximum number of activities to return (default: 100) |
ai_analytics_detect_anomaliesProactively detect statistical anomalies, outliers, and step shifts in time-series and metric data using Z-score/MAD, IQR, Bollinger bands, seasonal decomposition, and period delta with dimensional root-cause analysis| Parameter | Type | Description |
|---|---|---|
| card_id | number | Optional Metabase question/card ID to fetch dataset from |
| database_id | number | Database ID to execute the SQL query against |
| dimension_column | string | Optional segmentation column (e.g. region, category, channel) for root-cause drilldown |
| direction | string | Direction of anomalies to flag (both, spike, drop) |
| max_anomalies | number | Maximum number of anomaly points to return in report (default: 20) |
| method | string | Statistical anomaly detection algorithm |
| metric_column | string | Name of the numeric metric column to evaluate (auto-detected if not specified) |
| sensitivity | string | Sensitivity threshold (low, medium, high) |
| sql | string | SQL query returning time-series or metric data to analyze for anomalies |
| table_name | string | Optional table name to automatically generate time-series aggregation query |
| time_column | string | Name of the time/date column (auto-detected if not specified) |
ai_dashboard_build_fullAutonomously builds a complete Metabase dashboard in a single tool call with at least 4 analytical cards, optimal 24-column collision-free grid layout (KPI banners, trends, breakdowns, detail tables), and interactive parameter filter mappings.| Parameter | Type | Description |
|---|---|---|
| cards * | array | List of at least 4 question/card specifications to create and place on the dashboard |
| collection_id | number | Optional collection ID where dashboard and questions should be saved |
| database_id * | number | Database ID to query for all card definitions |
| description | string | Description of the dashboard and its analytical purpose |
| filters | array | Optional dashboard filter controls to create and link to card queries |
| mask_pii | boolean | Whether to mask sensitive PII in data samples (default: true) |
| name * | string | Title of the dashboard to create |
| theme | string | Visual layout theme style |
ai_query_index_advisorAnalyze SQL queries to identify table scans, recommend composite B-Tree indexes (Equality -> Range -> Sort/Group), covering/partial indexes, and materialized views with dialect-appropriate DDL| Parameter | Type | Description |
|---|---|---|
| card_id | number | Optional Metabase question/card ID to extract SQL and database_id from |
| database_id | number | Metabase database ID where the query is targeted (used for engine detection and EXPLAIN execution) |
| run_explain | boolean | Whether to execute EXPLAIN plan on the target database (default: true) |
| sql | string | SQL query to analyze for performance bottlenecks, index opportunities, and materialized views |
| target_dialect | string | Optional explicit database dialect override |
| workload_analysis | boolean | Whether to cross-reference Metabase query execution history for frequency and latency (default: false) |
ai_relationships_suggestAI-powered virtual relationship discovery using naming patterns and data analysis - finds implicit connections between tables| Parameter | Type | Description |
|---|---|---|
| confidence_threshold | number | Minimum confidence level (0.0-1.0) |
| database_id * | number | Database ID |
| schema_name * | string | Schema name |
ai_sql_execute_and_healExecute SQL query with autonomous self-healing: automatically intercepts syntax errors, missing columns, invalid tables, and group-by violations, inspects schema metadata, repairs the query up to 3 attempts, and returns verified results with complete healing audit trail.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to execute query on |
| explanation | string | Optional natural language explanation or intent for the query |
| mask_pii | boolean | Whether to mask sensitive PII in query results (default: true) |
| max_attempts | number | Maximum healing retry attempts (default: 3, max: 5) |
| sql * | string | SQL query to execute and heal if errors occur |
ai_sql_explainBreak down complex SQL queries into plain English - explains joins, aggregations, and business logic| Parameter | Type | Description |
|---|---|---|
| sql * | string | SQL query to explain |
ai_sql_generateConvert natural language requests into SQL queries - understands business context and table relationships| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to generate query for |
| description * | string | Natural language description of what you want to query |
ai_sql_optimizeAnalyze and improve SQL query performance - suggests indexes, query restructuring, and execution optimizations| Parameter | Type | Description |
|---|---|---|
| sql * | string | SQL query to optimize |
db_ai_dropSafely remove AI-created database objects - only works on objects with claude_ai_ prefix for security| Parameter | Type | Description |
|---|---|---|
| approved | boolean | Set to true to confirm deletion |
| database_id * | number | Database ID |
| dry_run | boolean | Set to true to preview without executing |
| object_name * | string | Object name to drop (must have claude_ai_ prefix) |
| object_type * | string | Type of object to drop |
db_ai_listList all database objects created by AI (with claude_ai_ prefix)| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to list objects from |
db_connection_infoGet database connection information from Metabase (requires admin permissions)| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to get connection info for |
db_index_createCreate database index for query performance - improves search and join operations on specified columns| Parameter | Type | Description |
|---|---|---|
| approved | boolean | Set to true to confirm execution |
| columns * | array | Array of column names or single column name |
| database_id * | number | Database ID to create index in |
| dry_run | boolean | Set to true to preview without executing |
| index_name * | string | Index name (claude_ai_ prefix will be added automatically) |
| table_name * | string | Table name to create index on |
| unique | boolean | Whether to create unique index |
db_index_usageAnalyze index usage statistics - find unused or rarely used indexes| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| min_size_mb | number | Minimum index size in MB to include |
| schema_name | string | Schema name to analyze (default: public) |
db_listGet list of all databases in Metabase instance with IDs and connection typesdb_matview_createCreate a new materialized view directly in the database (PostgreSQL only)| Parameter | Type | Description |
|---|---|---|
| approved | boolean | Set to true to confirm execution |
| database_id * | number | Database ID to create materialized view in |
| dry_run | boolean | Set to true to preview without executing |
| schema | string | Target schema name (optional, uses database default if not specified) |
| select_sql * | string | SELECT statement for the materialized view |
| view_name * | string | Materialized view name (claude_ai_ prefix will be added) |
db_query_explainGet execution plan for a SQL query - shows how PostgreSQL will execute the query| Parameter | Type | Description |
|---|---|---|
| analyze | boolean | Actually run the query to get real execution times |
| database_id * | number | Database ID |
| format | string | Output format for the plan |
| sql * | string | SQL query to analyze |
| verbose | boolean | Include additional details in the plan |
db_relationships_detectDetect existing foreign key relationships between tables - finds explicitly defined database constraints| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| schema_name * | string | Schema name to analyze |
| table_names | array | Specific tables to analyze (optional, analyzes all if not provided) |
db_schema_analyzeDeep schema analysis with column details, keys, constraints - requires direct DB connection for comprehensive insights| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| include_columns | boolean | Include detailed column information |
| limit | number | Maximum number of tables to analyze (default: 10) |
| schema_name * | string | Schema name to explore |
| timeout_seconds | number | Maximum execution time in seconds (default: 30) |
db_schema_exploreFast schema exploration with table counts and basic info - lightweight method for discovering data structure| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| limit | number | Maximum number of tables to return (default: 20) |
| schema_name * | string | Schema name to explore |
db_schemasGet all schema names in specified database - useful for data exploration and finding business data locations| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
db_sync_schemaTrigger schema sync for a database| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to sync |
db_table_createCreate new table directly in database with security controls - requires schema selection and approval| Parameter | Type | Description |
|---|---|---|
| approved | boolean | Set to true to confirm execution |
| columns * | array | Array of column definitions |
| database_id * | number | Database ID to create table in |
| dry_run | boolean | Set to true to preview without executing |
| schema | string | Target schema name (optional, uses database default if not specified) |
| table_name * | string | Table name (claude_ai_ prefix will be added automatically) |
db_table_ddlGet the DDL (CREATE statement) for a table| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| table_name * | string | Table name to get DDL for |
db_table_profileGet comprehensive table profile: row count, column types, distinct values, sample data. Auto-detects dimension/reference tables (dim_, ref_, lookup_ prefix). Ideal for understanding lookup tables before writing queries.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| sample_rows | number | Number of sample rows to display (default: 3) |
| schema_name | string | Schema name (default: public) |
| show_distinct_values | boolean | Show distinct values for each column (auto-enabled for dim/ref tables) |
| table_name * | string | Table name (with or without schema prefix) |
db_table_statsGet table statistics including row count, size, dead tuples, last vacuum/analyze times| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| schema_name | string | Schema name (default: public) |
| table_name * | string | Table name to get stats for |
db_tablesGet comprehensive table list across all schemas with field counts - provides overview of data structure| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
db_test_speedCheck database response time and performance - run this before heavy operations to determine optimal timeout settings| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to test |
db_vacuum_analyzeRun VACUUM and ANALYZE on PostgreSQL tables to optimize storage and update statistics (PostgreSQL only)| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| dry_run | boolean | Preview command without executing |
| schema_name | string | Schema name (default: public) |
| table_name | string | Table name to vacuum/analyze (optional, all tables if not specified) |
| vacuum_type | string | Type of maintenance operation |
db_view_createCreate a new view directly in the database (with claude_ai_ prefix)| Parameter | Type | Description |
|---|---|---|
| approved | boolean | Set to true to confirm execution |
| database_id * | number | Database ID to create view in |
| dry_run | boolean | Set to true to preview without executing |
| schema | string | Target schema name (optional, uses database default if not specified) |
| select_sql * | string | SELECT statement for the view |
| view_name * | string | View name (claude_ai_ prefix will be added automatically) |
db_view_ddlGet the DDL (CREATE statement) for a view| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| view_name * | string | View name to get DDL for |
dbt_build_dashboard_from_yaml🎨 [LIGHTDASH CODE-AS-BI DASHBOARD BUILDER] Build complete, publication-ready Metabase dashboards directly from dbt project YAML definitions (exposures.yml, semantic metrics, meta.metabase, and meta.lightdash). Constructs native Metabase Questions and Metabase Model cards (v50+), computes collision-free 24-column grid coordinates with executive visual hierarchy, and binds global interactive filter parameters in a single atomic operation.| Parameter | Type | Description |
|---|---|---|
| cards | array | Optional explicit custom card specifications to include in addition to dbt YAML definitions. |
| catalog_path | string | Optional explicit path to target/catalog.json. |
| collection_id | number | Optional collection ID to save dashboard and questions to. |
| create_models | boolean | Alias for include_models (default: true). |
| dashboard_description | string | Optional description for the created dashboard. |
| dashboard_name | string | Optional name for the created dashboard. Defaults to exposure label or generated dbt business domain title. |
| database_id | number | Metabase database ID to query. If omitted, defaults to 1 or auto-detected from connected database. |
| dry_run | boolean | If true, generates full dashboard plan, cards, and grid coordinates without writing to Metabase (default: false). |
| exposure_name | string | Optional name of an exposure in exposures.yml to build into a dashboard (e.g. "executive_kpis", "finance_overview"). |
| filters | array | Optional explicit list of global dashboard filter configurations. |
| include_models | boolean | Whether to create native Metabase Model cards (v50+) for underlying marts_fact and marts_dim models (default: true). |
| manifest_path | string | Optional explicit path to compiled target/manifest.json. |
| mask_pii | boolean | Whether to sanitize and mask sensitive PII in card preview samples (default: true). |
| metrics | array | Optional list of specific dbt metric/measure names to generate cards for (e.g. ["mrr", "active_users", "churn_rate"]). |
| models | array | Optional list of specific dbt models to build questions or model cards from. |
| project_dir | string | Optional absolute path to dbt project directory. Defaults to DBT_PROJECT_DIR or current workspace. |
| theme | string | Visual layout and color theme (default: "executive"). |
| yaml_content | string | Optional raw inline YAML content containing exposures, metrics, or semantic models to construct dashboard from. |
| yaml_path | string | Optional path to YAML file on disk containing exposures, metrics, or dashboard specifications. |
dbt_generate_exposures_from_metabase🔁 [REVERSE LINEAGE] Scan all Metabase Dashboards and Questions, extract underlying dbt model dependencies (fct_, dim_, stg_), and generate models/exposures/_metabase__exposures.yml for dbt Docs and Lineage DAG.| Parameter | Type | Description |
|---|---|---|
| include_cards | boolean | Include standalone card question exposures (default: true) |
| include_dashboards | boolean | Include dashboard exposures (default: true) |
| metabase_base_url | string | Base URL of your Metabase instance (e.g. "https://metabase.company.com") |
| owner_email | string | Owner email for dbt exposures |
| owner_name | string | Owner name for dbt exposures |
dbt_inspect_modelsℹ️ [dbt ARCHITECTURE] Inspect dbt project models, lineage, and architectural tiers (marts/facts, marts/dims, intermediate, staging) from manifest.json.| Parameter | Type | Description |
|---|---|---|
| manifest_path | string | Optional absolute path to dbt target/manifest.json. Defaults to cached project manifest. |
dbt_lineage_joins_graph🔗 [dbt LINEAGE & MULTI-HOP JOINS] Build model dependency DAGs and resolve multi-hop semantic join paths (e.g. fct_orders -> dim_customers -> dim_regions) using dbt schema relationship tests, foreign keys, and MetricFlow entities. Generates validated ANSI SQL joins with confidence scoring.| Parameter | Type | Description |
|---|---|---|
| base_alias | string | Optional table alias for the root source model in generated SQL. |
| confidence_threshold | number | Minimum confidence score threshold (0.0 to 1.0) for including inferred join paths (default: 0.5). |
| direction | string | Lineage traversal direction when inspecting model dependencies (default: "both"). |
| include_sql | boolean | Whether to generate syntactically valid ANSI SQL join snippet (default: true). |
| join_type | string | SQL JOIN type to generate (default: "LEFT"). |
| manifest_path | string | Optional explicit path to compiled target/manifest.json. |
| max_hops | number | Maximum traversal distance / join hops (default: 5, min: 1, max: 20). |
| project_dir | string | Optional absolute path to dbt project directory. Defaults to DBT_PROJECT_DIR or current workspace. |
| source_model | string | Starting source model name (e.g., "fct_orders"). Required for path finding and single-model lineage. |
| target_model | string | Destination target model name for join path discovery (e.g., "dim_regions"). |
| target_models | array | Optional list of target models to resolve multiple multi-hop join paths simultaneously (e.g. ["dim_customers", "dim_regions", "dim_products"]). |
dbt_prioritize_sources📊 [dbt SOURCE RESOLUTION] Prioritize the most trustworthy and aggregated dbt models (Gold Marts fct_/dim_ > Silver int_ > Bronze stg_) for a given question or intent.| Parameter | Type | Description |
|---|---|---|
| keywords | array | Optional search keywords to match against dbt models, tags, and column names |
| query_intent | string | Business question or analysis intent (e.g., "Monthly churn and active subscription trends") |
dbt_project_scan_deep🔍 [dbt DEEP SCANNER] Recursively scan dbt project repositories (models, sources, exposures, seeds, macros, schema.yml, docs/*.md, manifest.json, and catalog.json). Extracts all architectural tiers (marts, intermediate, staging), column schemas, resolved doc blocks, catalog profiling stats, MetricFlow semantic layer definitions, and test relationships.| Parameter | Type | Description |
|---|---|---|
| catalog_path | string | Optional explicit path to compiled target/catalog.json artifact for table stats & column profiling. |
| filter_tiers | array | Optional list of architectural tiers to filter results (e.g. ["marts_fact", "marts_dim"]) |
| include_catalog | boolean | Whether to ingest catalog.json table stats (row count, bytes, column profiling) (default: true) |
| include_docs | boolean | Whether to parse docs/*.md blocks and resolve {{ doc(...) }} references (default: true) |
| include_metrics | boolean | Whether to parse MetricFlow semantic models, measures, and metrics (default: true) |
| manifest_path | string | Optional explicit path to compiled target/manifest.json artifact. |
| project_dir | string | Optional absolute path to root dbt project directory. Defaults to current workspace or DBT_PROJECT_DIR. |
| tier_filter | string | Optional architectural tier filter. |
dbt_semantic_export_yaml🌉 [OMNI.CO CONTROLLED SEMANTIC-TO-YAML EXPORTER] Bridge Metabase analytics back to dbt by exporting approved (ACTIVE) business rules, metric definitions, and filter expressions from SemanticMemory into syntactically valid dbt schema.yml, semantic_models.yml, and metrics.yml code blocks. Preserves complete audit provenance, stakeholder sign-offs, and soft-deprecation audit trails with zero destructive mutation.| Parameter | Type | Description |
|---|---|---|
| author | string | Optional author name or email for export audit header. |
| categories | array | Optional list of specific rule categories to export. |
| category | string | Optional single rule category to export. |
| format | string | Target export format: "all" (returns all files), "models" (standard schema.yml), "semantic_models" (MetricFlow models), "metrics" (MetricFlow metrics), or "consolidated" (all in one YAML). |
| include_dbt_schema | boolean | Whether to generate dbt core schema.yml blocks with column metadata and governance tags (default: true). |
| include_deprecated | boolean | Whether to include soft-deprecated rules as commented-out audit blocks in generated YAMLs (default: false). |
| include_metricflow | boolean | Whether to generate dbt Semantic Layer / MetricFlow semantic_models.yml and metrics.yml blocks (default: true). |
| include_provenance_comments | boolean | Alias for include_provenance_header (default: true). |
| include_provenance_header | boolean | Whether to embed human-readable header and inline provenance comments (author, approval date, rule ID) (default: true). |
| manifest_path | string | Optional explicit path to target/manifest.json for validating exported column references. |
| model_name | string | Alias for target_model. |
| project_dir | string | Optional absolute path to dbt project directory for model and column validation. |
| rationale | string | Optional export rationale or justification note. |
| rule_ids | array | Optional list of specific SemanticMemory rule IDs to export (e.g. ["rule_a1b2c3d4"]). |
| status_filter | string | Status of semantic rules to export (default: "ACTIVE"). Pending/unapproved rules are strictly excluded unless explicitly requested. |
| target_model | string | Optional target dbt model name to filter export for (e.g. "fct_subscriptions", "dim_customers"). If omitted, exports rules for all models. |
dbt_semantic_preagg_advisor⚡ [CUBE.JS PRE-AGGREGATION & ROLLUP ADVISOR] Formulate database-specific Pre-Aggregation and Rollup Materialized View DDL recommendations that accelerate repetitive analytical queries by 10x-100x. Supports additive, semi-additive, and non-additive metrics (HyperLogLog, sum/count decomposition) across PostgreSQL, BigQuery, Snowflake, ClickHouse, DuckDB, Redshift, and MySQL.| Parameter | Type | Description |
|---|---|---|
| catalog_path | string | Optional explicit path to target/catalog.json for physical row counts and column stats. |
| dialect | string | Target SQL dialect for Materialized View DDL generation (default: "postgres"). |
| dimensions | array | Optional list of dimension columns for slicing (e.g. ["customer_id", "status", "region", "product_category"]). |
| include_hll | boolean | Whether to generate HyperLogLog (HLL) sketch columns for non-additive distinct count metrics (default: true). |
| include_indexes | boolean | Whether to generate indexing and clustering DDL statements (default: true). |
| manifest_path | string | Optional explicit path to compiled target/manifest.json. |
| metrics | array | Optional list of metric/measure names to include in the rollup (e.g. ["total_revenue", "order_count", "unique_customers"]). |
| min_speedup_factor | number | Minimum estimated query speedup factor (e.g. 2 for 2x) required to recommend a pre-aggregation (default: 2.0). |
| model_name | string | Target dbt model name to accelerate (e.g., "fct_orders", "marts_fact_sales"). If omitted, top fact models are analyzed. |
| model_names | array | Optional list of model names to analyze simultaneously. |
| project_dir | string | Optional absolute path to dbt project directory. Defaults to DBT_PROJECT_DIR or current workspace. |
| refresh_interval_minutes | number | Refresh schedule interval in minutes for automated rollups (default: 60). |
| refresh_strategy | string | Materialized view refresh strategy (default: "auto"). |
| target_schema | string | Target schema or dataset name for pre-aggregation objects (default: "preagg"). |
| time_dimension | string | Optional timestamp/date column for time-grained rollup (e.g. "order_date", "created_at"). Auto-detected if omitted. |
| time_grain | string | Time grain for rollup date truncation (default: "day"). |
| time_grains | array | Optional list of time grains to generate multi-tier rollup recommendations (e.g. ["day", "month"]). |
dbt_smart_create_card🤖 [dbt SMART QUESTION] Natural language question to verified Metabase Question Card. Injects active dbt semantic rules, auto-heals SQL, applies zero-leak PII masking, and saves with optimal executive visual chart type.| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Optional collection ID to save the card into |
| custom_name | string | Optional custom name for the saved card |
| database_id * | number | Metabase Database ID |
| description | string | Optional card description |
| dry_run | boolean | Simulate without saving card to Metabase (default: false) |
| question * | string | Natural language question (e.g. "Monthly net sales excluding delivery pay in Turna") |
dbt_sync_metadata_to_metabase🔄 [dbt ➔ METABASE SYNC] Synchronize dbt table display names, column descriptions, semantic data types (type/Currency, type/CreationDate, type/Category, type/FK), and foreign keys directly into Metabase Data Model via API.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Metabase Database ID to sync metadata into |
| dbt_project_dir | string | Optional path to dbt project directory. Defaults to current workspace. |
| dry_run | boolean | Dry run mode to simulate changes without writing to Metabase (default: false) |
dbt_sync_metrics_to_metabase📊 [dbt METRICS ➔ METABASE] Ingest dbt MetricFlow and YAML metric definitions into official Metabase Metrics (/api/metric) so users can select verified business formulas in the Metabase query builder.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Metabase Database ID to bind metrics to |
| dbt_project_dir | string | Optional path to dbt project directory. |
| dry_run | boolean | Simulate metric creation without writing (default: false) |
definition_get_metricGet metric definition with calculation formula and business context| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to search in |
| metric_name * | string | Metric name to lookup |
definition_get_templateGet dashboard or question template with layout and configuration| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to search in |
| template_name * | string | Template name to lookup |
| template_type * | string | Type of template to retrieve |
definition_global_searchSearch across all definition tables with unified results| Parameter | Type | Description |
|---|---|---|
| content_types | array | Filter by content types (business_terms, metrics, templates, etc.) |
| database_id * | number | Database ID to search in |
| search_term * | string | Term to search across all definitions |
definition_search_termsSearch business terms and definitions with relevance ranking| Parameter | Type | Description |
|---|---|---|
| category | string | Optional category filter (customer_metrics, revenue_metrics, etc.) |
| database_id * | number | Database ID to search in |
| search_term * | string | Term to search for in definitions |
definition_tables_initInitialize definition lookup tables system for documentation, metrics, templates, and search| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to create definition tables in |
mb_action_createCreate a Metabase Action for data modification (INSERT, UPDATE, DELETE)| Parameter | Type | Description |
|---|---|---|
| database_id | number | Database ID for query actions |
| dataset_query | object | Query definition for query actions |
| description | string | Action description |
| model_id * | number | Model ID the action belongs to |
| name * | string | Action name |
| parameters | array | Action parameters |
| type * | string | Action type |
| visualization_settings | object | Form visualization settings |
mb_action_executeExecute a Metabase action with parameters| Parameter | Type | Description |
|---|---|---|
| action_id * | number | Action ID to execute |
| parameters * | object | Parameter values for the action |
mb_action_listList all actions for a model| Parameter | Type | Description |
|---|---|---|
| model_id * | number | Model ID to get actions for |
mb_alert_createCreate an alert for a question that triggers on specified conditions| Parameter | Type | Description |
|---|---|---|
| alert_above_goal | boolean | Alert when above goal (for goal condition) |
| alert_condition | string | Alert condition type |
| alert_first_only | boolean | Only alert on first occurrence |
| card_id * | number | Question/Card ID to create alert for |
| channels | array | Notification channels |
mb_alert_listList all alerts, optionally filtered by question| Parameter | Type | Description |
|---|---|---|
| card_id | number | Filter alerts by question ID (optional) |
mb_auto_describeAutomatically generate AI-powered descriptions for databases, tables, and fields with timestamp signatures| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to generate descriptions for |
| force_update | boolean | Update existing descriptions (default: false) |
| target_type | string | What to generate descriptions for |
mb_bookmark_createBookmark an item for quick access| Parameter | Type | Description |
|---|---|---|
| id * | number | Item ID to bookmark |
| type * | string | Item type to bookmark |
mb_bookmark_deleteRemove a bookmark| Parameter | Type | Description |
|---|---|---|
| id * | number | Item ID |
| type * | string | Item type |
mb_bookmark_listList all bookmarked itemsmb_cache_invalidateInvalidate cache for specific items or entire database| Parameter | Type | Description |
|---|---|---|
| card_id | number | Specific card ID to invalidate |
| database_id | number | Database ID (optional, invalidates all if provided alone) |
mb_card_archiveArchive a card/question (soft delete)| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Card/Question ID to archive |
mb_card_cloneClone a card and retarget to a different table (for template cards)| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Source card ID |
| collection_id | number | Destination collection ID |
| column_mappings | object | Column name mappings from source to target table |
| target_table_id * | number | New target table ID |
mb_card_copyCopy a card/question to a new location| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Source card ID |
| collection_id | number | Destination collection ID |
| new_name | string | Name for the copy (optional, defaults to "Copy of [original]") |
mb_card_dataExecute a card/question and get the results in specified format (JSON, CSV, XLSX)| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Card/Question ID |
| format | string | Output format |
| ignore_cache | boolean | Whether to bypass query cache and force fresh execution |
| parameters | array | Sequential array of parameter objects per Metabase REST API specification (POST /api/card/:id/query) |
mb_card_deletePermanently delete a card/question| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Card/Question ID to delete |
mb_card_getGet detailed information about a specific card/question| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Card/Question ID |
mb_card_updateUpdate an existing card/question| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Card/Question ID |
| collection_id | number | Move to collection ID |
| description | string | New description |
| display | string | Chart type |
| name | string | New name |
| visualization_settings | object | New visualization settings |
mb_collection_copyCopy an entire collection with all contents| Parameter | Type | Description |
|---|---|---|
| collection_id * | number | Source collection ID |
| destination_id | number | Destination parent collection ID |
| new_name | string | Name for the copy |
mb_collection_createCreate a new collection in Metabase for organizing questions and dashboards| Parameter | Type | Description |
|---|---|---|
| color | string | Collection color (hex code) |
| description | string | Collection description |
| name * | string | Collection name |
| parent_id | number | Parent collection ID (null for root level) |
mb_collection_listList all collections with hierarchy and item counts| Parameter | Type | Description |
|---|---|---|
| include_items | boolean | Include items in each collection |
| parent_id | number | Filter by parent collection ID (null for root) |
mb_collection_moveMove questions, dashboards, or collections to a different collection| Parameter | Type | Description |
|---|---|---|
| item_id * | number | ID of the item to move |
| item_type * | string | Type of item to move |
| target_collection_id * | number | Target collection ID (null for root) |
mb_collection_permissions_getGet permissions graph for a collection| Parameter | Type | Description |
|---|---|---|
| collection_id * | number | Collection ID (use "root" for root collection) |
mb_collection_permissions_updateUpdate permissions for a collection| Parameter | Type | Description |
|---|---|---|
| collection_id * | number | Collection ID |
| group_id * | number | Permission group ID |
| permission * | string | Permission level to set |
mb_create_parametric_questionCreate a native SQL question with parameters (variables) directly via SQL. Essential for creating cards that accept dashboard filters.| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Optional collection to place question in |
| database_id * | number | ID of the database to query against (not the internal one) |
| description | string | |
| name * | string | |
| parameters | array | |
| query_sql * | string | SQL query with {{variable}} tags |
mb_dashboard_add_cardAdd a question card to a dashboard with specific positioning, sizing, and layout| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | Dashboard ID to add card to |
| parameter_mappings | array | Connect dashboard filters to question parameters |
| position | object | Card position and size on dashboard grid |
| question_id * | number | Question ID to add as card |
mb_dashboard_add_card_sqlAdd multiple cards to a dashboard using direct SQL inserts. Bypasses API limits, ensures precise positioning, and prevents timeouts. Use this for complex layouts.| Parameter | Type | Description |
|---|---|---|
| cards * | array | List of cards to add with layout config |
| dashboard_id * | number | Target Dashboard ID |
mb_dashboard_add_filterAdd a filter to a dashboard for interactive data filtering across multiple cards| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | Dashboard ID to add filter to |
| default_value | any | Default filter value (optional) |
| field_id | number | Field ID to filter on (optional for some filter types) |
| name * | string | Filter display name |
| position | object | Filter position in dashboard header |
| required | boolean | Whether filter is required |
| type * | string | Filter type and operator |
mb_dashboard_card_removeRemove a card from a dashboard| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Dashboard card ID to remove |
| dashboard_id * | number | Dashboard ID |
mb_dashboard_card_updateUpdate card position and size on a dashboard| Parameter | Type | Description |
|---|---|---|
| card_id * | number | Dashboard card ID |
| col | number | New column position |
| dashboard_id * | number | Dashboard ID |
| row | number | New row position |
| size_x | number | Width in grid units |
| size_y | number | Height in grid units |
mb_dashboard_copyCopy a dashboard with all its cards| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Destination collection ID |
| dashboard_id * | number | Source dashboard ID |
| deep_copy | boolean | If true, also copies all cards. If false, links to existing cards. |
| new_name | string | Name for the copy |
mb_dashboard_createCreate a new dashboard in Metabase with layout options| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save dashboard to (optional) |
| description * | string | Dashboard description |
| name * | string | Dashboard name |
| template | string | Dashboard template type |
| width | number | Dashboard width in grid units (default: 12) |
mb_dashboard_deleteDelete a dashboard| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | Dashboard ID to delete |
mb_dashboard_getGet detailed information about a dashboard| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | Dashboard ID |
mb_dashboard_layout_optimizeAutomatically optimize dashboard layout for better visual hierarchy and user experience| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | Dashboard ID to optimize |
| grid_width | number | Dashboard grid width (default: 12) |
| layout_style | string | Layout optimization style |
| preserve_order | boolean | Keep existing card order when optimizing |
mb_dashboard_template_executiveCreate an executive dashboard with standard KPIs, metrics, and layout - auto-generates questions and arranges them professionally| Parameter | Type | Description |
|---|---|---|
| business_domain | string | Business domain (e.g., ecommerce, saas, retail, finance) |
| collection_id | number | Collection ID to save dashboard to (optional) |
| database_id * | number | Database ID to analyze and create dashboard for |
| name * | string | Dashboard name |
| schema_name | string | Target schema name for analysis (optional) |
| time_period | string | Default time period for metrics |
mb_dashboard_updateUpdate dashboard properties| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Move to collection |
| dashboard_id * | number | Dashboard ID |
| description | string | New description |
| enable_embedding | boolean | Enable embedding |
| name | string | New name |
mb_dashboard_update_layoutBatch update position and size of multiple dashboard cards via direct SQL. Guarantees layout application.| Parameter | Type | Description |
|---|---|---|
| dashboard_id * | number | |
| updates * | array |
mb_dashboardsList existing dashboardsmb_embed_settingsGet embedding settings and enabled features for the Metabase instancemb_embed_url_generateGenerate signed embedding URL for a dashboard or question| Parameter | Type | Description |
|---|---|---|
| bordered | boolean | Show border around embed |
| exp_minutes | number | Token expiration in minutes |
| params | object | Locked parameter values for the embedding |
| preview | boolean | Include preview-mode frame styles |
| resource_id * | number | ID of the dashboard or question |
| resource_type * | string | Type of resource to embed |
| theme | string | Embed theme |
| titled | boolean | Show title in embed |
mb_field_metadataGet or update field metadata including display name, description, and semantic type| Parameter | Type | Description |
|---|---|---|
| description | string | Field description |
| display_name | string | Human-readable display name |
| field_id * | number | Field ID to get/update |
| has_field_values | string | How to show field values in filters |
| semantic_type | string | Semantic type for the field |
| visibility_type | string | Field visibility |
mb_field_valuesGet distinct values for a field (for filter dropdowns)| Parameter | Type | Description |
|---|---|---|
| field_id * | number | Field ID to get values for |
mb_link_dashboard_filterLink a dashboard filter to a card parameter via SQL. Updates parameter_mappings.| Parameter | Type | Description |
|---|---|---|
| card_id * | number | |
| dashboard_id * | number | |
| mappings * | array |
mb_meta_auto_cleanup🧹 Auto-cleanup unused content with SAFETY CHECKS. ⚠️ DRY-RUN by default, requires approved:true for execution. Finds unused questions (180+ days), orphaned cards, empty collections, broken questions. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| approved | boolean | 🔒 SAFETY: Requires explicit approval (default: false). Set true to execute |
| broken_questions | boolean | Include questions with 100% error rate (default: true) |
| dry_run | boolean | 🔒 SAFETY: Dry-run mode (default: true). Set false to execute |
| empty_collections | boolean | Include empty collections (default: true) |
| orphaned_cards | boolean | Include orphaned cards (not in dashboards) (default: true) |
| unused_days | number | Days without usage to consider content unused (default: 180) |
mb_meta_compare_environments🔄 Compare current environment with another (dev → staging → prod). Identifies drift, missing items, and differences. READ-ONLY operation. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| target_workspace * | object | Workspace export from target environment |
mb_meta_content_usageAnalyze content usage patterns - find popular questions/dashboards, unused content, orphaned cards. Great for content cleanup and optimization. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 30) |
| limit | number | Number of top items to return (default: 20) |
| unused_threshold_days | number | Days without usage to consider content "unused" (default: 90) |
mb_meta_dashboard_complexityAnalyze dashboard complexity - card counts, load times, performance issues. Identify dashboards that need optimization. Requires MB_METADATA_ENABLED=true.mb_meta_database_usageAnalyze database usage patterns - query counts, performance, errors by database and table. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| database_id | number | Optional: analyze specific database tables |
| days | number | Number of days to analyze (default: 30) |
mb_meta_error_patternsAnalyze error patterns and categorize recurring errors - identify systemic issues, suggest resolutions, find questions with high error rates. Proactive error management. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 30) |
| include_recurring_questions | boolean | Include questions with recurring errors (default: true) |
| include_timeline | boolean | Include temporal error analysis (default: true) |
mb_meta_export_workspace📤 Export workspace to JSON (questions, dashboards, collections). READ-ONLY operation - safe to execute. Perfect for backups and migrations. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| archived | boolean | Include archived items (default: false) |
| collection_ids | array | Optional: Export specific collections only (array of IDs) |
| include_collections | boolean | Include collections (default: true) |
| include_dashboards | boolean | Include dashboards (default: true) |
| include_questions | boolean | Include questions (default: true) |
mb_meta_impact_analysisAnalyze impact of removing a table - breaking changes, affected questions/dashboards, severity assessment, and recommendations. Critical for safe database migrations. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| schema_name | string | Schema name (optional) |
| table_name * | string | Table name to analyze for removal impact |
mb_meta_import_preview🔍 Preview import impact WITHOUT making changes (dry-run). Analyzes conflicts, detects issues, provides recommendations. ALWAYS run this before actual import. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| workspace * | object | Workspace data from export_workspace |
mb_meta_infoGet overview of Metabase metadata database - active users, questions, dashboards, recent activity. Quick health check. Requires MB_METADATA_ENABLED=true.mb_meta_optimization_recommendationsGet comprehensive optimization recommendations - index suggestions, materialized view candidates, and cache optimization. Data-driven performance improvements. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to analyze |
| days | number | Number of days to analyze (default: 30) |
| include_cache_recommendations | boolean | Include cache optimization suggestions (default: true) |
| include_matview_candidates | boolean | Include materialized view recommendations (default: true) |
mb_meta_query_performanceGet comprehensive query performance statistics from Metabase metadata - analyze execution times, cache hit rates, error rates, and identify slow queries. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 7) |
| include_slow_queries | boolean | Include detailed slow query analysis (default: true) |
| slow_threshold_ms | number | Threshold for slow queries in milliseconds (default: 10000) |
mb_meta_table_dependenciesAnalyze table dependencies - find all questions and dashboards that depend on a specific table. Essential for impact analysis before schema changes. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID containing the table |
| schema_name | string | Schema name (optional, recommended for disambiguation) |
| table_name * | string | Name of the table to analyze |
mb_meta_user_activityGet user activity statistics - active users, inactive users, query patterns, login history. Useful for license optimization and user engagement analysis. Requires MB_METADATA_ENABLED=true.| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 30) |
| inactive_threshold_days | number | Days without activity to consider user "inactive" (default: 90) |
| include_login_history | boolean | Include login timeline data (default: true) |
mb_metric_createCreate a custom metric definition in Metabase for KPI tracking and business intelligence| Parameter | Type | Description |
|---|---|---|
| aggregation * | object | Metric aggregation definition |
| description * | string | Metric description and business context |
| filters | array | Optional filters to apply to metric calculation |
| name * | string | Metric name |
| table_id * | number | Base table ID for the metric |
mb_permission_group_add_userAdd a user to a permission group| Parameter | Type | Description |
|---|---|---|
| group_id * | number | Permission group ID |
| user_id * | number | User ID to add |
mb_permission_group_createCreate a new permission group| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the permission group |
mb_permission_group_deleteDelete a permission group| Parameter | Type | Description |
|---|---|---|
| group_id * | number | Group ID to delete |
mb_permission_group_listList all permission groups in Metabasemb_permission_group_remove_userRemove a user from a permission group| Parameter | Type | Description |
|---|---|---|
| group_id * | number | Permission group ID |
| user_id * | number | User ID to remove |
mb_pulse_createCreate a scheduled report (pulse) that sends dashboards/questions on a schedule| Parameter | Type | Description |
|---|---|---|
| cards * | array | Cards to include in the pulse |
| channels * | array | Delivery channels (email/slack) |
| collection_id | number | Collection to save pulse in |
| name * | string | Pulse name |
| skip_if_empty | boolean | Skip sending if no results |
mb_question_createCreate new question/chart| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save the question to (optional) |
| database_id * | number | Database ID to query |
| description * | string | Description of what the question shows |
| name * | string | Name for the question |
| sql * | string | SQL query for the question |
mb_question_create_parametricCreate a parametric question with filters, variables, and dynamic queries - supports date ranges, dropdowns, and field filters| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save question to (optional) |
| database_id * | number | Database ID |
| description | string | Question description |
| name * | string | Question name |
| parameters | array | Parameter definitions for the question |
| sql * | string | SQL query with parameter placeholders (e.g., {{date_range}}, {{category_filter}}) |
| visualization | string | Chart type |
mb_questionsBrowse saved questions and charts in Metabase - filter by collection to find specific reports| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Filter by collection ID (optional) |
mb_relationships_createCreate virtual relationships in Metabase model - enables cross-table queries and improved dashboard capabilities| Parameter | Type | Description |
|---|---|---|
| confirmed | boolean | Confirm that relationships have been reviewed |
| database_id * | number | Database ID |
| relationships * | array | Array of confirmed relationships to create |
mb_searchSearch across all Metabase items (cards, dashboards, collections, tables)| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Search within specific collection |
| limit | number | Maximum results to return |
| models | array | Filter by item types (default: all) |
| query * | string | Search query text |
mb_segment_createCreate a segment (reusable filter) for a table| Parameter | Type | Description |
|---|---|---|
| definition * | object | MBQL filter definition |
| description | string | Segment description |
| name * | string | Segment name |
| table_id * | number | Table ID to create segment for |
mb_segment_listList all segments| Parameter | Type | Description |
|---|---|---|
| table_id | number | Filter by table ID (optional) |
mb_table_metadataGet or update table metadata including display name, description, and visibility| Parameter | Type | Description |
|---|---|---|
| description | string | Table description |
| display_name | string | Human-readable display name |
| table_id * | number | Table ID to get/update |
| visibility_type | string | Table visibility type |
mb_user_createCreate a new Metabase user| Parameter | Type | Description |
|---|---|---|
| email * | string | User email address (also used as login) |
| first_name * | string | User first name |
| group_ids | array | Array of permission group IDs to assign |
| last_name * | string | User last name |
| password | string | Initial password (optional, will send invite email if not provided) |
mb_user_disableDisable (deactivate) a user account| Parameter | Type | Description |
|---|---|---|
| user_id * | number | User ID to disable |
mb_user_getGet detailed information about a specific user| Parameter | Type | Description |
|---|---|---|
| user_id * | number | User ID to retrieve |
mb_user_listList all Metabase users with filtering options| Parameter | Type | Description |
|---|---|---|
| group_id | number | Filter by permission group ID (optional) |
| status | string | Filter by user status |
mb_user_updateUpdate an existing user| Parameter | Type | Description |
|---|---|---|
| string | New email address | |
| first_name | string | New first name |
| group_ids | array | New permission group IDs |
| is_superuser | boolean | Set superuser status |
| last_name | string | New last name |
| user_id * | number | User ID to update |
mb_visualization_recommendAI-powered visualization recommendation based on query results and data types| Parameter | Type | Description |
|---|---|---|
| data_sample | object | Sample data to analyze (optional if question_id provided) |
| purpose | string | Purpose of the visualization |
| question_id * | number | Question ID to analyze |
mb_visualization_settingsGet or update visualization settings for a question (chart type, colors, labels, etc.)| Parameter | Type | Description |
|---|---|---|
| display | string | Chart display type |
| question_id * | number | Question ID to get/update visualization for |
| settings | object | Visualization settings object |
meta_advanced_searchDeep search within SQL code, visualization settings, and descriptions across all questions and dashboards.| Parameter | Type | Description |
|---|---|---|
| internal_db_id | number | Internal Database ID (optional if configured in env) |
| query * | string | Search query (searches SQL, names, descriptions) |
meta_audit_logsAnalyze query performance and usage history from internal logs. Finds slow queries and top users.| Parameter | Type | Description |
|---|---|---|
| days | number | Number of days to analyze (default: 30) |
| internal_db_id | number | Internal Database ID (optional if configured in env) |
| limit | number | Max results to return (default: 50) |
meta_find_internal_dbAuto-detect the Metabase Internal Application Database ID from connected databases. Required for advanced metadata tools.meta_lineageFind dependencies: Which dashboards and questions use a specific table or field? (Impact Analysis)| Parameter | Type | Description |
|---|---|---|
| internal_db_id | number | Internal Database ID (optional if configured in env) |
| search_term * | string | Table name, field name, or SQL fragment to search for usage |
parametric_dashboard_createCreate dashboard with parametric questions and shared filters| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save dashboard to |
| database_id * | number | Database ID to create dashboard in |
| description | string | Dashboard description |
| filters | object | Dashboard-level filters |
| layout | array | Layout configuration for questions |
| name * | string | Dashboard name |
| questions * | array | Array of question configurations |
parametric_question_createCreate parametric question with date, text search, and category filters| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save question to |
| database_id * | number | Database ID to create question in |
| description | string | Question description |
| name * | string | Question name |
| parameters * | object | Parameter definitions with types and defaults |
| question_type | string | |
| sql_template * | string | SQL template with parameter placeholders (e.g., {{date_range}}, {{search_term}}) |
parametric_template_presetCreate parametric question from preset templates (date range analysis, category filter, text search, period comparison)| Parameter | Type | Description |
|---|---|---|
| collection_id | number | Collection ID to save question to |
| config * | object | Configuration for the preset template |
| database_id * | number | Database ID to create question in |
| preset_type * | string | Preset template type |
semantic_memory_approve✅ [GOVERNANCE APPROVAL] Explicitly approve a proposed business rule to make it ACTIVE. Once active, it will be automatically injected into BI query generation.| Parameter | Type | Description |
|---|---|---|
| author | string | Name or email of the approving data steward / admin |
| comment * | string | Mandatory approval notes or stakeholder sign-off |
| rule_id * | string | Unique rule ID from semantic_memory_propose (e.g., "rule_a1b2c3d4") |
semantic_memory_deprecate🔒 [GOVERNANCE DEPRECATION] Safely soft-archive/comment-out an assistant-created rule with mandatory deprecation reason. NO HARD DELETION IS PERFORMED.| Parameter | Type | Description |
|---|---|---|
| author | string | Name or email of the deprecating user |
| reason * | string | Mandatory detailed reason for deprecating this rule (minimum 5 characters) |
| rule_id * | string | Rule ID to deprecate |
semantic_memory_list📚 [GOVERNANCE REGISTRY] List all business rules with their status (ACTIVE, PENDING_APPROVAL, DEPRECATED), stakeholder comments, and complete audit history.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| status | string | Filter by rule status |
semantic_memory_propose⚠️ [GOVERNANCE PROPOSAL] Propose a new business term, metric calculation, or filter rule. ⚠️ RULE IS NOT ACTIVE UNTIL EXPLICITLY APPROVED via semantic_memory_approve.| Parameter | Type | Description |
|---|---|---|
| author | string | Author / stakeholder name or email (e.g., "finance_lead@company.com") |
| category | string | Rule category (default: business_term) |
| comment | string | Business justification or context for why this rule was proposed |
| dbt_model_hint | string | Optional recommended dbt mart model name (e.g., "fct_subscriptions") |
| definition * | string | Detailed natural language definition of the business rule |
| sql_condition | string | Optional precise SQL predicate (e.g., "status = 'active' AND is_trial = false") |
| term * | string | Business term or metric name (e.g., "Active Customer", "MRR", "Churned User") |
sql_cancelCancel a running async query. Also attempts to cancel on database server.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID to cancel |
sql_executeRun SQL queries against database - supports SELECT, DDL with security controls, returns formatted results. For long-running queries (>60s), use sql_submit instead.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID to execute query against |
| full_results | boolean | Set to true to disable result truncation (useful for DDL/definitions) |
| sql * | string | SQL query to execute |
sql_statusCheck status of an async query submitted via sql_submit. Returns results when complete.| Parameter | Type | Description |
|---|---|---|
| job_id * | string | Job ID returned from sql_submit |
sql_submitSubmit a long-running SQL query asynchronously. Returns immediately with job_id. Use sql_status to check progress. Ideal for queries that may take minutes.| Parameter | Type | Description |
|---|---|---|
| database_id * | number | Database ID |
| sql * | string | SQL query to execute |
| timeout_seconds | number | Query timeout in seconds (default: 300, max: 1800) |
web_explore_metabase_docsComprehensively explore Metabase documentation - crawls main docs and discovers all available sections, APIs, and guides| Parameter | Type | Description |
|---|---|---|
| depth | number | Crawling depth (1=main sections, 2=subsections, 3=deep crawl) |
| focus_areas | array | Specific areas to focus on during exploration |
| include_examples | boolean | Include code examples and API samples |
web_fetch_metabase_docsFetch specific Metabase documentation page for API details, best practices, and feature information| Parameter | Type | Description |
|---|---|---|
| search_terms | string | Specific terms to search in documentation |
| topic * | string | Documentation topic to fetch (e.g., "dashboard-api", "questions", "parameters", "charts") |
web_metabase_api_referenceGet comprehensive Metabase API reference with endpoints, parameters, examples, and response formats| Parameter | Type | Description |
|---|---|---|
| auth_info | boolean | Include authentication and permission details |
| endpoint_category | string | API category to explore |
| include_examples | boolean | Include request/response examples |
web_search_metabase_docsSearch across all Metabase documentation for specific topics, APIs, or solutions - uses intelligent content analysis| Parameter | Type | Description |
|---|---|---|
| doc_type | string | Type of documentation to prioritize |
| max_results | number | Maximum number of relevant pages to return |
| query * | string | Search query (e.g., "dashboard API create card", "parameter filters", "embedding iframe") |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 62 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and HTTP with SSEsrc/mcp/server.js:4, src/mcp/sse-server.js:7
- Starts other programs
- 2 callsdebug-mcp.js:27, test-mcp.js:20
- Outbound network calls
- 7 callssrc/mcp/handlers/docs.js:42, src/mcp/handlers/docs.js:97, src/mcp/handlers/docs.js:197
- Writes or deletes files
- 9 callssrc/semantic/semantic-memory.js:97, src/semantic/semantic-memory.js:108, src/semantic/semantic-memory.js:116
- Lockfile
- package-lock.json
Pattern matches on the source text of 62 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README