Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

metabase-ai-assistant

MCP server by enessari Community

Connects AI assistants such as Claude, Cursor and ChatGPT to a Metabase instance for SQL generation, dashboards and dbt-linked analysis. Aimed at Metabase users who want assistants to query and manage their BI content.

  • Score 64
  • 48 stars
  • 70 a week
  • Apache-2.0
  • Updated

Install metabase-ai-assistant

Built from the published package, never by AI.

claude mcp add metabase-ai-assistant -e METABASE_URL=YOUR_METABASE_URL -- npx -y metabase-ai-assistant

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install metabase-ai-assistant in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the metabase-ai-assistant block.

About

Metabase AI Assistant is a Model Context Protocol (MCP) server that connects LLMs and AI coding assistants to a Metabase Business Intelligence instance. It covers SQL generation, dashboard building, and dbt and semantic layer work, including dbt project scanning, lineage joins, and pre-aggregation advice. It works with Claude, Cursor, ChatGPT, Gemini, and Google Antigravity.

The server runs through npx or npm and is configured with a Metabase URL and API key in the client's MCP settings. The config example sets METABASE_READ_ONLY_MODE to true. The source also describes governed semantic memory, where rules need approval before activation, and a self-healing SQL engine that attempts automated error recovery over three iterations. It includes PII masking for emails, phone numbers, and credit cards, and targets Metabase users, including enterprise deployments.

Written from the project's README and checked against it.

Tools it gives your assistant

  • dbt_project_scan_deepScans a dbt project with 9-tier classification and catalog.json table and column profiling.
  • dbt_lineage_joins_graphResolves shortest join paths between dbt models using Dijkstra-based search.
  • dbt_semantic_preagg_advisorGenerates pre-aggregation materialized view DDLs for several SQL dialects.
  • dbt_build_dashboard_from_yamlBuilds Metabase dashboards from meta.metabase and meta.lightdash YAML formatting options.
  • dbt_semantic_export_yamlExports approved business rules as dbt schema.yml and semantic_models.yml code blocks.
  • ai_sql_execute_and_healRuns SQL and attempts automated error recovery over up to three iterations.
  • dbt_inspect_modelsParses dbt manifest.json and MetricFlow semantic models.
  • dbt_prioritize_sourcesRoutes natural language questions to pre-aggregated, tested dimensional and fact tables.
  • semantic_memory_proposeProposes a business rule in PENDING_APPROVAL status.
  • semantic_memory_approveActivates a proposed rule with required data steward comments.

What you need

  • A Metabase instance URL
  • A Metabase API key
  • Node.js with npx or npm
SettingNeededWhat it is
METABASE_URLEnvironment variableRequiredMetabase instance URL (e.g., http://localhost:3000)
METABASE_USERNAMEEnvironment variableOptionalMetabase username for authentication
METABASE_PASSWORDEnvironment variable, secretOptionalMetabase password for authentication
METABASE_API_KEYEnvironment variable, secretOptionalMetabase API key (alternative to username/password)
DATABASE_HOSTEnvironment variableOptionalPostgreSQL database host for direct SQL execution
DATABASE_PORTEnvironment variableOptionalPostgreSQL database port
DATABASE_NAMEEnvironment variableOptionalPostgreSQL database name
DATABASE_USEREnvironment variableOptionalPostgreSQL database user
DATABASE_PASSWORDEnvironment variable, secretOptionalPostgreSQL database password

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Scan my dbt project and list the main gold marts for reporting
  • Build a Metabase dashboard from my dbt schema.yml file
  • Run this SQL and fix any errors automatically before returning results

Good to know

  • The source gives two tool counts, 152 in the header and 143 in the category list.
  • Read-only operation is set through the METABASE_READ_ONLY_MODE environment variable in the example config.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to metabase-ai-assistant

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

metabase-ai-assistant: common questions

Which AI assistants does Metabase AI Assistant work with?

The source says it works with Claude, Cursor, ChatGPT, Gemini, and Google Antigravity. It also lists Windsurf and VS Code in its client setup section.

Does it support dbt?

Yes. The source describes dbt project scanning, dbt model inspection, lineage joins, and exporting semantic rules to dbt YAML files.

Does it protect personal data?

The source describes a PII masker that sanitizes emails, phone numbers, national IDs, credit cards, IP addresses, and tokens in real time.

How do I install metabase-ai-assistant?

In Claude Code run claude mcp add metabase-ai-assistant -e METABASE_URL=YOUR_METABASE_URL -- npx -y metabase-ai-assistant. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is metabase-ai-assistant the official server?

metabase-ai-assistant is a community project by enessari, not verified by a company domain.

Is metabase-ai-assistant free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is metabase-ai-assistant safe to use?

It scores 64 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to metabase-ai-assistant?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does metabase-ai-assistant work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

metabase-ai-assistant Install

Add to stack

Loading.