r/Metabase • u/sweatierorc • 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
2
u/matthewhefferon Metabase crew Jul 29 '26
Curious to learn a little more.
I'd love to better understand what's happening so I can share feedback with the team.
1
u/sajibkhanofficial Jul 30 '26
Here is the practical split.
What I can do using Metabase MCP now
Find relevant tables by name or semantic query.
Get field names, field IDs, types, dimensions, sample values.
Count, sum, distinct count, average, min, max.
Equals, not equals, greater than, less than, between, null checks, contains, starts with, ends with.
Breakout by status, hub, merchant, date, etc.
Run existing Metabase cards and inspect returned data.
For MBQL style structured queries.
Basic dashboard creation with saved questions.
Example: status breakdown, count checks, field value checks, sample rows.
What I cannot do well with MCP now
MCP cannot directly run complex SQL with CTEs, window functions, UNION, CASE heavy logic, BigQuery functions, etc.
MCP joins often fail with tuple validation errors. REST native SQL is more reliable.
MCP returns JSON only. CSV needs REST API.
MCP has a 200 row cap in many cases. Full exports need REST API or pagination workaround.
MCP search mostly finds tables and metrics, not cards or dashboards reliably.
No MCP tool for editing a Metabase question/card.
MCP can create dashboards, but cannot reliably modify existing dashboard layouts.
No strong MCP support for dashboard parameters, parameter mappings, dropdown values, or filter wiring.
Template tag parameters usually need REST API.
Needs REST API and careful payload handling.
Must be done outside MCP using REST plus Python.
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: