Skip to content

feat(metabase): add Metabase integration#635

Merged
harshithmullapudi merged 2 commits intomainfrom
claude/cool-hodgkin
Mar 9, 2026
Merged

feat(metabase): add Metabase integration#635
harshithmullapudi merged 2 commits intomainfrom
claude/cool-hodgkin

Conversation

@AggManik
Copy link
Copy Markdown
Contributor

@AggManik AggManik commented Mar 6, 2026

Summary

Adds Metabase integration with API key auth, scheduled activity sync, and 14 MCP tools.

  • Auth — API key with two fields: metabase_url + api_key (validated via GET /api/user/current)
  • Sync — 15-min incremental activity feed sync (dashboard/question changes, DB syncs, logins)
  • MCP — 14 tools across dashboards, questions, databases, collections, and ad-hoc queries

MCP Tools

Tool Description
list_dashboards List all dashboards in Metabase
get_dashboard Get details of a dashboard including its cards/questions
create_dashboard Create a new dashboard
update_dashboard Update a dashboard name or description
list_questions List all saved questions (cards)
get_question Get details of a specific saved question
execute_question Run a saved question and return its results
execute_query Execute an ad-hoc SQL query against any database connection
list_databases List all database connections configured in Metabase
get_database_metadata Get schema metadata for a database (tables and fields)
sync_database_schema Trigger a schema sync for a database connection
list_collections List all collections
get_collection_items List items (dashboards, questions) inside a collection
get_recent_activity Get recent activity across all Metabase resources

Files

  • integrations/metabase/src/index.ts — MetabaseCLI with SETUP / SYNC / GET_TOOLS / CALL_TOOL handlers
  • integrations/metabase/src/account-create.ts — API key validation
  • integrations/metabase/src/utils.ts — axios client factory
  • integrations/metabase/src/schedule.ts — incremental activity sync (state-tracked via lastSyncTime)
  • integrations/metabase/src/mcp/index.ts — 14 MCP tools with Zod validation
  • integrations/metabase/scripts/register.ts — DB registration script (DATABASE_URL required)
  • apps/webapp/app/components/icons/metabase.tsx + icon-utils.tsx — Metabase icon

Closes #538

AggManik and others added 2 commits March 9, 2026 13:34
API key auth (metabase_url + api_key), 15-min activity sync, 14 MCP tools
covering dashboards, questions, databases, collections, and ad-hoc queries.
Closes #538.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@harshithmullapudi harshithmullapudi merged commit 0673874 into main Mar 9, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Review to Done in Public roadmap Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

New Integration: Metabase

2 participants