Superset MCP Serverのロゴ

Superset MCP Server

コミュニティ
Winding2020

A Model Context Protocol (MCP) server for managing Apache Superset datasets, metrics, and SQL queries.

公開者Winding2020
リポジトリsuperset-mcp
言語TypeScript
フォーク
6
スター
24
利用可能なツール
28
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Superset MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 28個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには24件のスターと6件のフォークがあります。

Superset MCP Server

A Model Context Protocol (MCP) server for managing Apache Superset datasets, metrics, and SQL queries.

📖 中文文档

🚀 Features

  • Dataset Management: Full CRUD operations for Superset datasets
  • Metrics Management: Create, update, and manage dataset metrics
  • Calculated Columns: Create and manage calculated columns for datasets
  • Chart Management: View and modify chart visualization parameters and filters
  • Dashboard Operations: Access dashboard information, charts, and filters
  • SQL Query Execution: Execute SQL queries directly through Superset
  • Database Integration: List and manage database connections
  • Resource Access: Browse datasets, databases, and metrics through MCP resources

📋 Prerequisites

  • Node.js 18+
  • Access to an Apache Superset instance
  • Valid Superset credentials (username/password or access token)

🛠️ Installation

Using with Cursor or Claude Desktop

1. Add to MCP Configuration

Add the following configuration to your MCP settings file:

json
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ],
      "env": {
        "SUPERSET_BASE_URL": "",
        "SUPERSET_USERNAME": "",
        "SUPERSET_PASSWORD": ""
      }
    }
  }
}

2. Environment Variables

Configure your Superset connection by updating the env section in the MCP configuration:

json
"env": {
  "SUPERSET_BASE_URL": "your-superset-url",
  "SUPERSET_USERNAME": "your_username",
  "SUPERSET_PASSWORD": "your_password",
}

Alternative: Using Access Token

json
"env": {
  "SUPERSET_BASE_URL": "your-superset-url",
  "SUPERSET_ACCESS_TOKEN": "your_access_token"
}

🔧 Available Tools

Dataset Operations

ToolDescription
list_datasetsGet paginated list of all datasets with filtering and sorting
get_datasetGet detailed information for a specific dataset
create_datasetCreate a new dataset (physical or virtual with SQL)
update_datasetUpdate existing dataset properties
delete_datasetDelete a dataset
refresh_dataset_schemaRefresh dataset schema from source database
find_and_replace_in_sqlFind and replace text in virtual dataset SQL

Metrics Operations

ToolDescription
get_dataset_metricsGet all metrics for a dataset
create_dataset_metricCreate a new metric with SQL expression
update_dataset_metricUpdate existing metric properties
delete_dataset_metricDelete a metric

Calculated Columns Operations

ToolDescription
get_dataset_columnsGet column information (including calculated columns)
create_calculated_columnCreate a new calculated column with SQL expression
update_calculated_columnUpdate existing calculated column
delete_calculated_columnDelete a calculated column

Chart Operations

ToolDescription
list_chartsGet paginated list of all charts with filtering and sorting
create_chartCreate a new chart; for most viz types you should first call get_chart_params to obtain the correct params schema
get_chart_paramsGet required parameters format for chart visualization types
get_current_chart_configGet current chart configuration details (viz params, relationships, ownership, query context)
update_chartUpdate chart properties including metadata, datasource, and visualization parameters
get_chart_filtersGet current data filters applied to a chart
set_chart_filtersSet data filters for a chart (permanently updates the chart)

Dashboard Operations

ToolDescription
list_dashboardsGet paginated list of all dashboards with filtering and sorting
get_dashboard_chartsGet all charts in a specific dashboard with their information
get_dashboard_filtersGet dashboard's filter configuration (native filters, global filters)
get_dashboard_chart_query_contextGet complete query context for a chart in dashboard (dataset ID, used metrics with SQL expressions, calculated columns, applied filters)
get_dashboard_configGet dashboard details and embedded configuration
update_dashboard_configUpdate dashboard properties and/or embedded configuration
add_chart_to_dashboardAdd an existing chart to a dashboard and place it in the layout
remove_chart_from_dashboardRemove a chart from a dashboard and clean up its layout

SQL Operations

ToolDescription
execute_sqlExecute SQL queries with result limiting and data display

Database Operations

ToolDescription
list_databasesGet all configured database connections

📚 Resources

Access read-only overviews through MCP resources:

  • superset://datasets - Overview of all datasets
  • superset://databases - List of database connections

Prompt examples

Use these natural prompts with your MCP-enabled assistant; it will pick the right tools and arguments.

  • List datasets

    • "Show the first 10 datasets, most recently changed first. Only include id and table_name."
  • Create a chart

    • "Create a simple table chart called 'Sample Table' using dataset 12."
  • Update a chart

    • "Change chart 42 to a bar chart grouped by country and using SUM(value)."
  • Dashboard query context

    • "On the 'sales-kpi' dashboard, show the full query context for chart 101."
  • Run SQL

    • "On database 3, fetch the 10 most recently created users, returning only id and name."

インストール

TypingMind
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ],
      "env": {
        "SUPERSET_BASE_URL": "<SUPERSET_BASE_URL>"
      }
    }
  }
}

利用可能なツール

  • list_charts

    Get list of all charts in Superset with optional filtering, sorting, and pagination. Uses Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.

  • create_chart

    Create a new chart in Superset. IMPORTANT: You must first call get_chart_params with your desired viz_type to get the correct parameter structure before using this tool. Without the proper parameter structure, chart creation will fail.

  • get_current_chart_config

    Get complete chart information including metadata, configuration, and relationships. This provides comprehensive details about a chart including its visualization parameters, datasource info, ownership, dashboards, tags, and more.

  • get_chart_params

    Get the required parameters format for a specific chart visualization type (viz_type). ALWAYS use this tool before creating or updating charts to ensure you have the correct parameter structure. This tool provides the exact schema needed for the params field in create_chart and update_chart.

  • update_chart

    Update chart properties including metadata, datasource, and visualization settings. This tool replaces the old update_chart_params with a unified interface that accepts object format params and can modify any chart property. IMPORTANT: When updating visualization parameters, first call get_chart_params with the chart's viz_type to get the correct parameter structure.

  • get_chart_filters

    Get current data filters applied to a chart. This extracts filters from the chart's query context or form data. Use this tool to see what filters are currently applied before modifying them.

  • set_chart_filters

    Set data filters for a chart. This permanently updates the chart's query context with the specified filters. Filters are applied at the data level, affecting what data is retrieved from the datasource.

  • list_datasets

    Retrieves a list of all datasets in Superset. Supports powerful filtering, sorting, and pagination. You can specify which columns to return, making it efficient for fetching just the needed information.

  • get_dataset

    Fetches detailed information for a single dataset by its ID. For virtual datasets, this tool returns the raw SQL query.

  • create_dataset

    Creates a new dataset in Superset. You can create a physical dataset by linking to a table in a database, or a virtual dataset by providing a custom SQL query. For a physical dataset, provide database_id and table_name. For a virtual dataset, provide database_id, a table_name (as an alias), and a sql query.

  • update_dataset

    Updates an existing dataset's properties. You can change its name, description, or underlying SQL query. This is also the tool to adjust settings like cache timeout. Note: To add, remove, or update individual columns in a virtual dataset's SQL, prefer using the more specific tools: add_dataset_column, update_dataset_column, or remove_dataset_column.

  • delete_dataset

    Deletes a dataset from Superset. This is a permanent operation and cannot be undone. Be cautious, as deleting a dataset will also break any charts and dashboards that depend on it.

  • refresh_dataset_schema

    Refreshes a dataset's schema by syncing it with the latest information from the source database table. This is useful when the underlying table structure has changed (e.g., columns were added or removed) to ensure Superset has the most up-to-date column information.

  • find_and_replace_in_sql

    Performs a simple text find-and-replace on a virtual dataset's SQL query. This is a powerful but direct tool; be sure to provide the exact text to find and its replacement to maintain valid SQL.

  • get_dataset_metrics

    Get all metrics for a specified dataset

  • create_dataset_metric

    Create one or more new metrics for a dataset

  • update_dataset_metric

    Update one or more metrics in a dataset

  • delete_dataset_metric

    Delete one or more metrics from a dataset

  • get_dataset_columns

    Get column information of a dataset, useful for referencing available fields when creating metrics

  • create_calculated_column

    Create one or more new calculated columns for a dataset

  • update_calculated_column

    Update one or more existing calculated columns in a dataset

  • delete_calculated_column

    Delete one or more calculated columns from a dataset

  • list_databases

    Get all databases configured in Superset

  • execute_sql

    Execute SQL query using /api/v1/sqllab/execute/ endpoint

  • list_dashboards

    Get paginated list of all dashboards with optional filtering, sorting, and pagination. Uses Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.

  • get_dashboard_chart_query_context

    Get the complete query context for a specific chart in a dashboard, including the chart's dataset ID, used metrics with their SQL expressions, calculated columns, and all applied dashboard filters. This tool provides comprehensive information about the chart's data sources and query structure.

  • get_dashboard_charts

    Get all charts in a specific dashboard with their basic information including chart IDs, names, visualization types, and dataset information.

  • get_dashboard_filters

    Get the dashboard's filter configuration including native filters, global filters, and their scope settings.

Superset MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Superset MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Superset MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Superset MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてSuperset MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Superset MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Superset MCP Serverを使ってこのタスクを手伝ってもらえますか?
Superset MCP Server
はい、読みました。
Superset MCP Serverで調べた結果をお伝えします。

よくある質問

Superset MCP Server MCPサーバーは何に使いますか?

Superset MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでSuperset MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでSuperset MCP Serverを利用できます。

TypingMindでSuperset MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Superset MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Superset MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Superset MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでSuperset MCP Server MCPのどのようなツールを利用できますか?

Superset MCP Serverは28個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Superset MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Superset MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

Superset Datasets Overview

Overview information of all datasets in Superset

Superset Database List

All database connections configured in Superset

Dataset Metrics Overview

Overview of metrics defined in all datasets

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇