Define each business number once, in a semantic layer on the tables dbt builds, and every AI tool and every dashboard calculates it from that one definition. In Metabase, the semantic layer is made of metrics, measures, segments and a glossary of your business terms, and every plan includes them. Your data team curates it in Data Studio, the part of Metabase where you curate the semantic layer and transforms. On Pro and Enterprise plans, the Library also gathers your curated tables and official metrics in one place. Metabot, Metabot in Slack and MCP clients such as Claude, ChatGPT and Cursor can then find these definitions and query them, with the permissions of the person who asks.
If you build your tables with dbt, Metabase reads them from your warehouse, and you define each metric once on top of them. So you don’t need MetricFlow or a plan on the dbt platform, formerly dbt Cloud, to get AI answers. Metrics, measures, segments, the glossary, Metabot and the MCP server are part of every Metabase plan, including the free Open Source edition. Metabot runs on the AI provider you connect, or on the Metabase AI service on Metabase Cloud, and MCP clients bring their own model. The Library, verified content, AI controls and Remote Sync to Git are part of the Pro and Enterprise plans. Plans and prices on this page were checked on November 12, 2026.
Why do AI answers need a semantic layer, not just text-to-SQL?
With text-to-SQL, an AI model writes its own SQL for each question, so it has to guess which table holds revenue, which rows to leave out and how to add them up. Two tools can make two different guesses, so a chat answer may not match your finance dashboard. With a semantic layer, Metabot and other AI tools use the metrics, glossary terms and table context you define, instead of guessing at raw tables and joins.
A Metabase metric is the official way to calculate a number, with a data source, a formula such as SumIf([Total], [Plan] != 'free'), and dimensions that people break it out and filter by. When a question uses a metric, Metabase replaces the metric with its saved formula, and when you edit the definition, all questions that use it switch right away. When more than one source could answer a question, Metabot picks the most curated one: it prefers metrics for calculations and falls back to models. So when Metabot answers a revenue question with your revenue metric, it uses the same formula as every dashboard built on that metric.
Do you need MetricFlow for natural language queries on dbt models?
No. Metabase connects to your warehouse, not to the dbt project, so the tables and views that dbt builds show up in Metabase after the next sync, which runs hourly by default. This works the same with dbt Core and the dbt platform. You keep the row-level logic in dbt, where you test it, and define each aggregation once as a Metabase metric on the mart. Data Studio is designed to complement upstream work like your dbt project, rather than replace it. Metabase on a dbt project shows this pattern step by step, and compares Metabase with Lightdash and the dbt Semantic Layer.
These settings on your dbt models help Metabot pick the right data:
- Hide your staging models. In Data Studio > Connected data, set staging tables to the Hidden visibility layer, so Metabot doesn’t search them. Hidden tables also disappear from the query builder and stop syncing. Set your marts to Final, because Metabot ranks published and Final tables above Internal ones.
- Bring your dbt descriptions. Metabot reads table and column descriptions, so copy them from your
schema.ymlfiles after each dbt run, as Metabase on a dbt project shows. - Mark the join keys. Metabase picks up the foreign keys that your warehouse defines as constraints. For other join columns, set the semantic type to Foreign Key on the table’s Fields tab and point it to the column it joins, so Metabot sees how the tables link.
- List the values people filter on. Set the Filtering setting of status, category and region columns to A list of all values, so Metabot can look up real values like
churnedorEMEA. - Turn repeated logic into measures and segments. When Metabot looks at a table, it sees the table’s measures and segments, and it’s instructed to use them instead of writing its own calculation.
On Pro and Enterprise plans, Remote Sync gives you analytics as code for the semantic layer. Each published table and metric becomes a YAML file in Git, and you review changes in a pull request before a read-only production Metabase pulls them in. Remote Sync doesn’t sync table metadata, such as descriptions and visibility settings, so keep copying your dbt descriptions in CI.
Where does the semantic layer live in Metabase?
You create most definitions in Data Studio: click the grid icon in the top right and select Data Studio. Admins can use it on every plan, and on Pro and Enterprise plans, so can the Data Analysts group.
| Definition | What it defines | Where you create it | Plans |
|---|---|---|---|
| Metric | The official calculation of a number, like revenue | Command palette (search for New metric), or Browse > Metrics and + | Every plan |
| Measure | A saved aggregation on one table, like Net Promoter Score | Data Studio > Connected data > Measures | Every plan |
| Segment | A saved filter on one table, like active users | Data Studio > Connected data > Segments | Every plan |
| Glossary term | What a business term means, like MRR | Data Studio > Glossary | Every plan |
| Published table | A finished table that people and AI start from | Data Studio > Semantic layer > + New > Published table | Pro and Enterprise |
On Pro and Enterprise plans, the Library gives you one curated set of tables and metrics. In Data Studio, click Semantic layer, then Create my semantic layer, and Metabase creates the Library with a Data collection for published tables and a Metrics collection for official metrics. The data picker in the query builder then defaults to showing tables and metrics from the Library.
Write each description for someone who doesn’t know your database, because Metabot reads the descriptions of tables, columns, models and metrics, including when it searches. Say what the item means and which questions it answers, and add the names people use for it outside the database. On a metric’s Dimensions tab, keep the fields people group and filter by, rename them and set a default dimension. Metabase uses these curated dimensions in the Metrics explorer and for dashboard filters.
Put acronyms, product names and terms with a company meaning in the glossary, and keep each definition short. Metabot gets the 100 most recently updated terms with every message, in every place people use Metabot. So if you define “active customer” as “logged in during a quarter”, Metabot knows what people mean when they ask about active customers.
How does Metabot answer natural language questions in Metabase and Slack?
Metabot answers natural language questions in Metabase and in Slack, and what it searches depends on where people ask it:
- The chat sidebar works with the content the person can see, such as tables, metrics, models, questions and dashboards, plus the items they viewed recently.
- AI exploration, under + New > AI exploration, searches the Library first if you have one. Without a Library, it searches the Collection for natural language querying that an admin sets in Admin > AI, so put your best metrics and models there.
If an existing question directly answers a request, Metabot responds with that question. If nothing in the Library matches a question well, it may ask the person to clarify instead of guessing.
Metabot in Slack, which is part of every plan, answers direct messages and @mentions in channels. The first time someone messages it, they link their Slack account to their Metabase account, so Metabot answers with their Metabase permissions. In a public channel, everyone in that channel sees the answer, so ask about sensitive data in a direct message.
For broad questions like “what drove revenue last quarter?”, click Research in AI exploration. Research builds its charts by breaking out your metrics by their dimensions and ranks them, so each metric you define gives it more to work with.
Can Claude, ChatGPT or Cursor query metrics on your dbt models through an MCP server?
Yes. Metabase includes an MCP server at /api/metabase-mcp on every plan. AI clients such as Claude, ChatGPT, Cursor and Codex use it to search and query your data through the semantic layer, including the Metabase metrics you define on dbt models. Each client signs in as one person with OAuth 2.0, and every tool runs with that person’s permissions.
These tools give an AI client your definitions:
searchfinds metrics, measures, segments, tables and other content by keyword in names and descriptions, and by meaning when semantic search is active.get_contentreturns the stored definition of a metric or a measure, and its dimensions.glossarylooks up a business term, or lists your terms with their definitions.execute_queryruns queries in Metabase’s query language and accepts a metric’s stored definition fromget_contentas it is.execute_sqlruns raw SQL for people with native query permission on that database.
With the agent:content:write scope, a coding agent can also draft definitions with metric_write, measure_write and segment_write. On Pro and Enterprise plans, MCP tools access in Admin > AI > Usage controls can keep the write tools for your analysts and give everyone else the tools that read content.
An admin first turns on the MCP server in Admin > AI > MCP. To connect a client, follow the MCP server docs or the steps for Claude, Cursor, Codex and ChatGPT. For an assistant inside your own app, see Let your AI assistant answer questions from company data.
Does each person’s permission apply to AI answers?
Yes. Metabot inherits the permissions of the person it’s chatting with, and it runs queries with that person’s data permissions, including row and column security on Pro and Enterprise plans. MCP tools run as the person who signed in, so a tool can never reach data that person couldn’t see in Metabase. You don’t need to set permissions specifically for Metabot.
Metrics follow the same rules. To use a metric in a question, a person needs View data access that isn’t Blocked, Create queries access of at least Query builder, and View access to the metric’s collection. On Pro and Enterprise plans, row and column security replaces a table with a filtered version everywhere Metabase uses that table. So a metric on that table is calculated on the rows the person’s group may see.
When you curate the Library, control access with data permissions. Collection permissions on Library > Data only decide where people see published tables, and publishing a table gives query access to groups that can view its database.
How do people check an AI answer?
In Metabase, people can verify an AI answer against its query, its metric and the rows behind it. When Metabot creates a chart, it uses the query builder, so people can open the editor and see each step, including any metric it used. People with native query permission can also click View SQL in the editor to see the native query that Metabase runs on your database. To see the rows behind a number, people click it and choose See these records from the drill-through menu.
To check a definition itself, open the metric’s Definition tab, or click Explore to break the metric out by its dimensions in the Metrics explorer.
In MCP clients that show inline charts, such as Claude on the web, ChatGPT and Cursor, every chart has an Explore in Metabase button that opens the question in Metabase. An admin turns on inline charts for each client in Admin > AI > MCP. In Claude Code and other clients without inline charts, people can ask which metric the assistant used, and it can read that metric’s definition with get_content.
On Pro and Enterprise plans, the dependency graph in Data Studio shows what depends on a metric before you change it.
What do verified content and AI controls add on Pro and Enterprise plans?
Pro and Enterprise plans add these controls:
- Verify the definitions you trust. Admins can verify questions, models, metrics and dashboards, which then get a blue checkmark and rank higher in search. When anyone changes the query of a verified metric, Metabase removes the verification, so the change goes back to an admin.
- Keep Metabot on curated content. In Admin > AI, turn on Only use verified or curated content, on the Internal tab for your team and on the Embedded tab for embedded Metabot. Metabot then only uses content that’s verified, in an official collection, or published to the Library, and published tables count when their visibility layer is Final. Turn it on once you’ve curated content for the questions people ask.
- Write conventions in system prompts. In Admin > AI > System prompts, write instructions for Metabot chat, natural language queries and SQL generation, and keep facts about tables and columns in their descriptions. A system prompt shapes how Metabot answers, but it can’t give Metabot more access than the person has.
- Choose who uses AI, and how much. In Admin > AI > Usage controls, turn Metabot’s chat, SQL generation and other tools on or off for each group, and choose the MCP tools each group’s clients can use. You can also cap tokens or messages for Metabot at the whole instance, for each person in a group, or for a tenant.
- Review how people use AI. Monitor > AI auditing shows Metabot usage by user, group and tenant, with each conversation, and MCP analytics shows MCP calls by client, tool and user.
Row and column security and the Data Analysts group are part of Pro and Enterprise too. Pro costs $575 a month on Metabase Cloud or self-hosted, with 10 users included and $12 a month for each extra user. Enterprise starts at $20,000 a year (prices checked on November 12, 2026).
Next steps
- Library
- Metrics, measures, segments and the glossary
- Configure Metabot context
- AI settings and AI usage controls
- Metabot in Slack
- MCP server and MCP server tools
- Content verification
- Metabase on a dbt project
- Natural language questions in open-source Metabase
- Let your AI assistant answer questions from company data
- Compare Metabase plans