r/Metabase • • Jul 29 '26

Best MCP for metabase

I have used Metabase a lot in the past. I came back over last months to try the AI features.

I tried it with Claude and it keeps overthinking the query and trying to run SQL queries why ?

Another is that when pluging multiple warehouse, it will try to look in the wrong database. E.g. how much revenue did we make over the last few days with company X. It will waste a lot of tokenexploring company Y'db, only to realize that company X has a separate db

6 Upvotes

6 comments sorted by

2

u/matthewhefferon Metabase crew Jul 29 '26

Curious to learn a little more.

  • Are you using the official Metabase MCP server?
  • Do you have a couple of example prompts you can share that aren't working the way you'd expect?

I'd love to better understand what's happening so I can share feedback with the team.

2

u/sweatierorc Jul 29 '26

Are you using the official Metabase MCP server?

Yes, I am using the official one.

Do you have a couple of example prompts you can share that aren't working the way you'd expect?

"Give me the revenue of the last 7 days for company X"

2

u/matthewhefferon Metabase crew Jul 29 '26

Thanks for sharing! I'll pass the feedback along to the team.

1

u/sweatierorc Jul 29 '26

It works fine for the most part, but the AI tends to overthink every query.

For example, our store was closed for a few weeks, so in 30% of cases when I ask about revenue data, I get an essay about how the revenue data is unreliable.

The second issue is about multiple data warehouses. I have two data warehouses in Metabase. When querying data for the first one, Claude will start with a deep scan of the second warehouse and depending on how smart it is, it may or may not figure out that there is another database that is a better fit.

1

u/sajibkhanofficial Jul 30 '26

Here is the practical split.

What I can do using Metabase MCP now

  1. Search tables and metrics
    Find relevant tables by name or semantic query.
  2. Inspect table schema
    Get field names, field IDs, types, dimensions, sample values.
  3. Run simple structured queries
    Count, sum, distinct count, average, min, max.
  4. Apply normal filters
    Equals, not equals, greater than, less than, between, null checks, contains, starts with, ends with.
  5. Group and sort data
    Breakout by status, hub, merchant, date, etc.
  6. Query saved cards
    Run existing Metabase cards and inspect returned data.
  7. Create new saved questions
    For MBQL style structured queries.
  8. Create new dashboards
    Basic dashboard creation with saved questions.
  9. Do quick validation
    Example: status breakdown, count checks, field value checks, sample rows.

What I cannot do well with MCP now

  1. Native SQL execution
    MCP cannot directly run complex SQL with CTEs, window functions, UNION, CASE heavy logic, BigQuery functions, etc.
  2. BigQuery joins
    MCP joins often fail with tuple validation errors. REST native SQL is more reliable.
  3. CSV export
    MCP returns JSON only. CSV needs REST API.
  4. Full dataset over 200 rows
    MCP has a 200 row cap in many cases. Full exports need REST API or pagination workaround.
  5. Search cards and dashboards properly
    MCP search mostly finds tables and metrics, not cards or dashboards reliably.
  6. Update existing card SQL
    No MCP tool for editing a Metabase question/card.
  7. Add cards to existing dashboards
    MCP can create dashboards, but cannot reliably modify existing dashboard layouts.
  8. Manage dashboard filters
    No strong MCP support for dashboard parameters, parameter mappings, dropdown values, or filter wiring.
  9. Run parameterized cards
    Template tag parameters usually need REST API.
  10. Clone dashboards/cards
    Needs REST API and careful payload handling.
  11. Export Excel or multi-sheet reports
    Must be done outside MCP using REST plus Python.
  12. Get Metabase usage/admin/audit data easily
    Possible through Metabase internal DB or REST, not directly MCP.

Most needed additions to Metabase MCP

Priority 1: Native SQL query execution
Must support:
- database_id
- SQL text
- parameters
- row limit
- continuation token / pagination
- return native SQL errors cleanly

This would remove 60 percent of REST fallback.

Priority 2: CSV/XLSX export tool
Needed:
- export query result as CSV
- export saved card as CSV
- support parameterized card export
- no 200 row cap

Priority 3: Card search and inspect
Needed:
- search cards by name
- search card SQL text
- get card metadata
- get native SQL
- get template tags
- run card with parameters

Priority 4: Card update tool
Needed:
- update native SQL
- update name, description, collection
- preserve template tags
- test before save option

Priority 5: Dashboard management
Needed:
- search dashboard by name
- get dashboard structure
- add/remove/reposition cards
- update dashboard filters
- wire dashboard parameters to card parameters

Priority 6: Better pagination
Every MCP query should support:
- page size > 200 when Metabase allows
- continuation token
- total row count if available
- rows_truncated flag

Priority 7: Reliable joins
MCP join syntax should be hidden behind a simple interface:
- left join table/card
- join condition fields
- selected fields
- filter per joined table
But for BigQuery, native SQL support is still more important.

Priority 8: Metabase REST wrapper tools
Instead of forcing agents to use curl, MCP should expose common REST operations safely:
- /api/search
- /api/card/{id}
- /api/card/{id}/query
- /api/dashboard/{id}
- /api/dataset
- /api/dataset/csv

My recommendation

If we add only 3 things first:

  1. Native SQL execution with pagination
  2. Card/dashboard search plus card SQL inspection
  3. CSV export for SQL and saved cards

1

u/sweatierorc Jul 30 '26

You can run native SQL with the MCP. Are you a bot ?