Back to Home
enessari icon

metabase-ai-assistant

Verified Safe

by enessari

Overview

The Metabase AI Assistant integrates an AI agent with Metabase to enable AI-powered data exploration, SQL generation, dashboard creation, and Metabase instance management through an MCP client.

Installation

Run Command
npm run mcp

Environment Variables

  • METABASE_URL
  • METABASE_USERNAME
  • METABASE_PASSWORD
  • METABASE_API_KEY
  • ANTHROPIC_API_KEY
  • OPENAI_API_KEY
  • MB_METADATA_ENABLED
  • MB_METADATA_ENGINE
  • MB_METADATA_HOST
  • MB_METADATA_PORT
  • MB_METADATA_DATABASE
  • MB_METADATA_USER
  • MB_METADATA_PASSWORD
  • MB_METADATA_SSL
  • METABASE_EMBEDDING_SECRET_KEY
  • LOG_LEVEL
  • AI_PROVIDER

Security Notes

The server implements robust security controls for direct database (DDL) operations, including enforced naming prefixes (claude_ai_), explicit approval requirements, dry-run modes, and blacklisting of dangerous SQL commands (e.g., DROP DATABASE, TRUNCATE). The Metabase metadata client is explicitly read-only. Environment variables are used for credentials, preventing hardcoding. A minor theoretical risk exists from `JSON.parse` operations on AI-generated content, though AI models are typically constrained to valid JSON output.

Similar Servers

Stats

Interest Score58
Security Score9
Cost ClassHigh
Avg Tokens10000
Stars3
Forks0
Last Update2026-01-14

Tags

MetabaseAIData AnalyticsBISQL GenerationAutomation