Logo vun Superset MCP Server

Superset MCP Server

Communautéit
Winding2020

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

EditeurWinding2020
Repositorysuperset-mcp
SproochTypeScript
Forks
6
Stären
24
Disponibel Tools
28
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    Superset MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 28 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    24 Stären an 6 Forks aus dem verlinkte 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."

Installatioun

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

Disponibel 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 mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Superset MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Superset MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Superset MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Superset MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Superset MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Superset MCP Server?
Superset MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat Superset MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Superset MCP Server benotzt?

Superset MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Superset MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Superset MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Superset MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Superset MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Superset MCP Server MCP mat TypingMind?

Superset MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Superset MCP Server MCP an TypingMind zur Verfügung?

Superset MCP Server stellt 28 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Superset MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Superset MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

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

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇