2026-11-26 15:40 UTC

Metabase shares lessons from rebuilding its MCP server

state: seedheat: mediumuncertainty: mediumrelevance: mediummcp tool-design metabaseMetabaseAleksandr Lesnenko

What is this?

Metabase engineer Aleksandr Lesnenko’s Nov. 17, 2026 engineering post describes how the company redesigned its official MCP server after its first version, introduced with Metabase 60, largely exposed REST API endpoints as tools that models struggled to use. Metabase says the rebuild began in version 64 and was refined in later releases; the server is on by default, and the post identifies additional group-level tool access controls for Pro and Enterprise admins in Metabase 65. The article is first-party documentation of the design and availability, not independent evidence of adoption or measured performance.

Why it matters

The practical lesson is that giving an agent API access is not the same as making an integration work well: tool count, context use, safe editing, and permissions shape what an agent can reliably do. Metabase’s examples—compact results, server-held query handles, incremental dashboard and document edits, and errors that name a fix—could help developers build agents that make fewer destructive or silent mistakes. The post also describes safeguards, not a guarantee against prompt injection or other model errors.

Current assessment

New first-party engineering account, published Nov. 17, 2026. Metabase says its server lets compatible agents find and edit analytics content, run queries, create charts and configure alerts under the connecting user’s permissions. For the redesign, it describes consolidating operations into broader tools; returning short results with explicit pagination; using server-side handles so models need not retype queries; applying dashboard operations transactionally and document edits incrementally; and providing on-demand skills and corrective error messages. It also describes permission checks at call time and quoting/fencing untrusted database text, while explicitly acknowledging these measures cannot ensure a model will ignore malicious instructions. Metabase says admins can disable MCP, restrict some permissions at connection, and—on Pro and Enterprise in Metabase 65—limit tools by group. Availability and design details are supported by the company’s post; effectiveness, adoption, and comparative reliability are not independently established by the supplied evidence.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 242h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-16 13:00⭐ origin echo-reconstructedThe Metabase blog post is the original source. It describes the team’s first MCP server in Metabase 60, its rebuild for Metabase 64, and les
Aleksandr Lesnenko on blog (echo) · attributed from hn.story.50535081
—
11-17 17:38first on hacker news · published · +28.6hRebuilding the Metabase MCP server: lessons for MCP tool design
ReDeiPirati
—
11-17 17:38amplified on hacker news 👑hn.story.50535081
ReDeiPirati
peak 11 · 1 comments · 100% of case engagement
11-17 23:20our radar first saw it · +34.3hdiscovery anchor: hn.story.50535081—
pace: p59 vs 2096 stories at the 168h mark (now 242h old) — ahead of artex-japan-website-hacks (1.1x), behind 1password-for-ai-agents (0.9x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnRebuilding the Metabase MCP server: lessons for MCP tool design
Retrieved article excerpt

Open article · Retrieved 2026-11-17T23:21:39.697796+00:00

New  [Metabase 65: Data apps, per-group MCP tool access, AI Research, events on dashboards, and more.](https://www.metabase.com/releases/metabase-65)

Product

[Business Intelligence   Self-service analytics for your team](https://www.metabase.com/product/business-intelligence)  [Embedded Analytics   Fast, flexible customer-facing analytics](https://www.metabase.com/product/embedded-analytics)

[Data Studio  New    Curate your semantic layer](https://www.metabase.com/product/data-studio)  [Metabase AI   Metabot, MCP server and CLI](https://www.metabase.com/features/metabase-ai)  [Data Apps  Beta    Apps on numbers you trust](https://www.metabase.com/product/data-apps)

[Data sources   20+ databases and warehouses](https://www.metabase.com/data-sources)  [Security   SSO, 2FA, row-level security](https://www.metabase.com/security)  [Cloud   Regional hosting, managed by us](https://www.metabase.com/cloud)

[Features](https://www.metabase.com/features)

[Dashboards and reporting](https://www.metabase.com/features/analytics-dashboards) [Query builder](https://www.metabase.com/features/query-builder) [SQL editor](https://www.metabase.com/features/sql-editor) [Drill-through](https://www.metabase.com/features/drill-through) [CSV upload](https://www.metabase.com/product/csv-uploads)

[Embedded analytics SDK](https://www.metabase.com/product/embedded-analytics-sdk) [White-label analytics](https://www.metabase.com/features/white-label-analytics) [Data segregation](https://www.metabase.com/features/data-segregation) [Permissions](https://www.metabase.com/features/permissions) [Usage analytics](https://www.metabase.com/features/usage-analytics)

 [New  Metabase 65: Data apps, AI Research, and more](https://www.metabase.com/releases/metabase-65)

Docs

[###### Documentation

The Metabase manual](https://www.metabase.com/docs/latest/) [###### Learn

Guides and tutorials](https://www.metabase.com/learn)

Getting Started [Querying and Dashboards

Everyone exploring and analyzing data](https://www.metabase.com/docs/latest/getting-started/start) [Embedding

Developers building in-product analytics](https://www.metabase.com/docs/latest/embedding/introduction) [Administration

People running their company’s instance](https://www.metabase.com/learn/metabase-basics/administration/administration-and-operation/guide)

Guides [Installing Metabase](https://www.metabase.com/docs/latest/installation-and-operation/installing-metabase) [Adding a database](https://www.metabase.com/docs/latest/databases/connecting) [Asking questions](https://www.metabase.com/docs/latest/questions/introduction) [Creating a dashboard](https://www.metabase.com/docs/latest/dashboards/introduction) [Solving common problems](https://www.metabase.com/docs/latest/troubleshooting-guide/)

Resources

[Blog 

News, updates, and ideas](https://www.metabase.com/blog) [Events 

Join a live event or watch on demand](https://www.metabase.com/events) [Customers 

Real companies, real data, real stories](https://www.metabase.com/case-studies) [Discussion 

Share and connect with other users](https://discourse.metabase.com/) [Professional Services 

Extra help from our team](https://www.metabase.com/product/professional-services) [Metabase Experts 

Find a local expert](https://www.metabase.com/partners)

Recent Blog Posts  [Rebuilding the Metabase MCP server: lessons for MCP tool design](https://www.metabase.com/blog/mcp-tool-design-lessons)   [From Toronto Hackathon to Stockholm meetup: Metabase data app world tour](https://www.metabase.com/blog/data-apps-world-tour)  ['Wait, you don't have a semantic layer yet?' AI analytics readiness pulse](https://www.metabase.com/blog/ai-analytics-readiness-pulse)  [As humans write less code: workloads shift from human to agent verification with iterative test suites](https://www.metabase.com/blog/from-human-to-agent-verification)  [We don't use PHP](https://www.metabase.com/blog/metabase-doesnt-use-php)

Pricing

[###### Business Intelligence pricing

Self-service analytics for your team](https://www.metabase.com/pricing?use_case=bi) [###### Embedded Analytics pricing

Fast, flexible customer-facing analytics](https://www.metabase.com/pricing?use_case=ea)

[50.4k](https://github.com/metabase/metabase)  [Log in](https://www.metabase.com/cloud/login) [Get started](https://store.metabase.com/checkout)

Product
 

 

Use cases

[Business Intelligence   Self-service analytics for your team](https://www.metabase.com/product/business-intelligence)  [Embedded Analytics   Fast, flexible customer-facing analytics](https://www.metabase.com/product/embedded-analytics)

Platform  [Data Studio New](https://www.metabase.com/product/data-studio)   [Metabase AI](https://www.metabase.com/features/metabase-ai)   [Data Apps Beta](https://www.metabase.com/product/data-apps)    [Data sources](https://www.metabase.com/data-sources)   [Security](https://www.metabase.com/security)   [Cloud](https://www.metabase.com/cloud)

  
Features
 

 

[Dashboards and reporting](https://www.metabase.com/features/analytics-dashboards) [Query builder](https://www.metabase.com/features/query-builder) [SQL editor](https://www.metabase.com/features/sql-editor) [Drill-through](https://www.metabase.com/features/drill-through) [CSV upload](https://www.metabase.com/product/csv-uploads) [Embedded analytics SDK](https://www.metabase.com/product/embedded-analytics-sdk) [White-label analytics](https://www.metabase.com/features/white-label-analytics) [Data segregation](https://www.metabase.com/features/data-segregation) [Permissions](https://www.metabase.com/features/permissions) [Usage analytics](https://www.metabase.com/features/usage-analytics)  [New  Metabase 65: Data apps, AI Research, and more](https://www.metabase.com/releases/metabase-65)

  
Docs
 

 

[Documentation

The Metabase manual](https://www.metabase.com/docs/latest/)  [Learn

Guides and tutorials](https://www.metabase.com/learn)

Getting Started [Querying and Dashboards

Everyone exploring and analyzing data](https://www.metabase.com/docs/latest/getting-started/start) [Embedding

Developers building in-product analytics](https://www.metabase.com/docs/latest/embedding/introduction) [Administration

People running their company’s instance](https://www.metabase.com/learn/metabase-basics/administration/administration-and-operation/guide)

Guides [Installing Metabase](https://www.metabase.com/docs/latest/installation-and-operation/installing-metabase) [Adding a database](https://www.metabase.com/docs/latest/databases/connecting) [Asking questions](https://www.metabase.com/docs/latest/questions/introduction) [Creating a dashboard](https://www.metabase.com/docs/latest/dashboards/introduction) [Solving common problems](https://www.metabase.com/docs/latest/troubleshooting-guide/)

  
Resources
 

 

[Blog](https://www.metabase.com/blog) [Events](https://www.metabase.com/events) [Customers](https://www.metabase.com/case-studies) [Discussion](https://discourse.metabase.com/) [Professional Services](https://www.metabase.com/product/professional-services) [Metabase Experts](https://www.metabase.com/partners)

  
Pricing
 

 

[###### Business Intelligence pricing

Self-service analytics for your team](https://www.metabase.com/pricing?use_case=bi) [###### Embedded Analytics pricing

Fast, flexible customer-facing analytics](https://www.metabase.com/pricing?use_case=ea)

[Log in](https://www.metabase.com/cloud/login)  [50.4k on GitHub](https://github.com/metabase/metabase)

[All posts](https://www.metabase.com/blog)

Nov 17, 2026 in **Engineering** 

‧

17 min read

# Rebuilding the Metabase MCP server: lessons for MCP tool design

##### [Aleksandr Lesnenko](https://www.metabase.com/blog/authors/aleksandr-lesnenko)

‧ Nov 17, 2026 in **Engineering** 

‧ 17 min read

##### Share this article

Copied to clipboard

An MCP server gives AI agents a set of tools for working in another app. [Ours](https://www.metabase.com/docs/latest/ai/mcp) lets an agent do what you’d do in Metabase: find questions and dashboards, run queries and chart the results, build dashboards and documents, and set up alerts, all with your permissions. Our API could already do all of that. The hard part was turning it into tools a model actually uses well.

It took us two tries. The first version, in Metabase 60, wrapped our REST API, and models had a hard time with it. So we rebuilt it for [Metabase 64](https://www.metabase.com/releases/metabase-64#mcp-gets-a-major-upgrade-do-almost-anything-in-metabase-from-your-ai-client) refined it in the next release, and we’ll keep doing so. This post covers what went wrong the first time, what we changed and why, and what we’d tell anyone building an MCP server or an agent of their own. Most of it isn’t specific to Metabase.

## Version one: a REST API turned into tools

Version one was built on the Agent API, our REST API for people writing their own agents, and nearly every endpoint became a tool.

That was a fast way to ship, but an endpoint designed for a program makes an awkward tool for a model. At first, the tool that built a query returned it as a long base64 string, which the model then had to copy exactly into the next call. By Metabase 63, four different tools could run a query: `query`, `execute_query`, `execute_sql`, and `execute_question`. For the rebuild, we started from how a model reads and writes instead.

## Fewer, broader tools

The obvious design is a read tool for each kind of content, plus a create and an update tool for each kind that can be written. With 11 readable kinds and 10 writable ones, that’s 31 tools. In many clients, every tool’s name, description, and input schema sit in the model’s context before it calls anything.

The new server covers the same ground with 10 of its 24 tools. `get_content` reads any of the 11 kinds and takes a batch of IDs, where one bad ID doesn’t fail the rest. Each of the nine write tools takes a `method` of `create` or `update`, and an update changes only the fields it names. Renaming a question with `question_write`:

```
{ "method": "update", "id": 118, "name": "Revenue by region (EMEA)" }
```

There’s no delete tool. Most write tools take an `archived` flag that archives the item or restores it, so anything an agent archives can be brought back.

To fit OpenAI’s strict tool rules, every tool’s input schema marks nearly every field as required and lets the optional ones be `null`. A client can then send `null` for every field the model didn’t set, so `null` can’t mean “clear this field”. Most write tools take an explicit list instead, like `"clear": ["description"]`.

Broader tools need longer descriptions, and some clients cap how long a description can be. From March to October 2026, [Claude Code cut every MCP tool description at 2,048 characters by default](https://code.claude.com/docs/en/changelog#2-1-84). That’s one reason the glossary tool’s description doesn’t list the instance’s defined terms: on an instance with a big glossary, the list would be cut partway, and the model would take what was left for the whole glossary. Instead, the description tells it to call `glossary()` before answering any question about the data.

Results cost context too. `get_content`, `search`, `browse_data`, and `browse_collection` return a short form by default, and the model asks for more detail when it needs it. When a paged list is cut off, the result says so and names the next step, like “Returned 50 of 212 — continue with `offset: 50`.” Without that line, a model tends to read the first page as the whole answer.

## Edits instead of rewrites

### Dashboards: a list of operations

In the API, a dashboard is one JSON document. The example dashboard that ships with Metabase has a layout of about 15,000 characters. The save endpoint treats the cards and tabs it receives as the complete layout, so to change one card, a model has to send back every card and tab on the dashboard.

A model doesn’t copy text; it regenerates it, token by token.
ReDeiPirati111
🟧 echo.blog ⭐The Metabase blog post is the original source. It describes the team’s first MCP server in Metabase 60, its rebuild for Metabase 64, and lesAleksandr Lesnenko——

Interpretation history

Decision trace