Logotipo de Superset MCP Server

Superset MCP Server

Comunidad
Winding2020

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

EditorWinding2020
Repositoriosuperset-mcp
IdiomaTypeScript
Forks
6
Estrellas
24
Herramientas disponibles
28
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Superset MCP Server ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 28 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    24 estrellas y 6 forks en el repositorio enlazado.

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

Instalación

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

Herramientas disponibles

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

Usa el MCP de Superset MCP Server con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Superset MCP Server, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Superset MCP Server como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Superset MCP Server.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Superset MCP Server y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Superset MCP Server.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Superset MCP Server para ayudarme con esta tarea?
Superset MCP Server
Claro. Lo he leído.
Esto he encontrado usando Superset MCP Server.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Superset MCP Server?

Superset MCP Server es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Superset MCP Server con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Superset MCP Server con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Superset MCP Server con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Superset MCP Server conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Superset MCP Server a TypingMind?

Superset MCP Server funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Superset MCP Server en TypingMind?

Superset MCP Server ofrece 28 herramientas MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Superset MCP Server?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Superset MCP Server requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

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

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇