Logo von Superset MCP Server

Superset MCP Server

Community
Winding2020

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

HerausgeberWinding2020
Repositorysuperset-mcp
SpracheTypeScript
Forks
6
Sterne
24
Verfügbare Tools
28
Transporttypstdio
Kategorien
Links
  • Tools mit KI-Workflows verbinden

    Superset MCP Server stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 28 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    24 Sterne und 6 Forks im verlinkten Repository.

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."

Installation

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

Verfügbare Tools

  • 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 mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Superset MCP Server verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Superset MCP Server als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Superset MCP Server ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Superset MCP Server. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Superset MCP Server.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Superset MCP Server bei dieser Aufgabe helfen?
Superset MCP Server
Gerne. Ich habe es gelesen.
Das habe ich mit Superset MCP Server gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Superset MCP Server verwendet?

Superset MCP Server ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Superset MCP Server MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Superset MCP Server mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Superset MCP Server MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Superset MCP Server verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Superset MCP Server MCP mit TypingMind?

Superset MCP Server wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Superset MCP Server MCP in TypingMind bereit?

Superset MCP Server stellt 28 MCP-Tools bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Superset MCP Server MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Superset MCP Server eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

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

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇