Skip to main content
Glama
Metabase MCP Server

Metabase MCP Server

by imlewc

メタベースサーバー MCP サーバー

鍛冶屋のバッジ

Metabase 統合用のモデル コンテキスト プロトコル サーバー。

これはTypeScriptベースのMCPサーバーで、Metabase APIとの統合を実装しています。AIアシスタントがMetabaseと連携し、以下の機能にアクセスできるようになります。

  • ダッシュボード、質問/カード、データベースをリソースとして

  • メタベースクエリを一覧表示および実行するためのツール

  • メタベースデータを表示および操作する機能

特徴

リソース

  • metabase:// URI 経由で Metabase リソースの一覧表示とアクセスを行う

  • ダッシュボード、カード/質問、データベースにアクセスする

  • 構造化データアクセス用の JSON コンテンツ タイプ

ツール

  • list_dashboards - Metabase内のすべてのダッシュボードを一覧表示する

  • list_cards - メタベース内のすべての質問/カードを一覧表示します

  • list_databases - メタベース内のすべてのデータベースを一覧表示する

  • execute_card - メタベースの質問/カードを実行して結果を取得する

  • get_dashboard_cards - ダッシュボード内のすべてのカードを取得する

  • execute_query - メタベースデータベースに対してSQLクエリを実行する

Related MCP server: Metabase MCP Server

構成

サーバーを実行する前に、次の環境変数を設定する必要があります。

# Required environment variables
export METABASE_URL=https://your-metabase-instance.com
export METABASE_USERNAME=your_username
export METABASE_PASSWORD=your_password

これらの環境変数はシェル プロファイルで設定することも、 dotenvなどのパッケージで.envファイルを使用することもできます。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "metabase-server": {
      "command": "/path/to/metabase-server/build/index.js",
      "env": {
        "METABASE_URL": "https://your-metabase-instance.com",
        "METABASE_USERNAME": "your_username",
        "METABASE_PASSWORD": "your_password"
      }
    }
  }
}

注: 必要に応じて、これらの環境変数を構成ファイルではなくシステムで設定することもできます。

Smithery経由でインストール

Smithery経由で Claude Desktop 用のメタベース サーバーを自動的にインストールするには:

npx -y @smithery/cli install @imlewc/metabase-server --client claude

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Metabase analytics platform, allowing users to query databases, manage dashboards and cards, execute SQL queries, and access analytics data through natural language.
      1
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Metabase analytics platform, allowing them to query databases, execute SQL, manage dashboards and cards, and access analytics data through natural language.
      -
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to interact with Metabase by providing access to dashboards, questions, and databases through the Metabase API. It allows users to list resources, execute existing cards, and run custom SQL queries to retrieve data through natural language.
      15 npm
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Metabase for database operations, SQL queries, dashboard management, and analytics automation.
      28
      MIT