Superset MCP Server logo

Superset MCP Server

Community
Winding2020

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

PublisherWinding2020
Repositorysuperset-mcp
LanguageTypeScript
Forks
6
Stars
24
Available tools
28
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Superset MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 28 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    24 stars and 6 forks from the linked 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>"
      }
    }
  }
}

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

Use Superset MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Superset MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Superset MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Superset MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "superset-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "superset-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Superset MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Superset MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Superset MCP Server to help me with this task?
Superset MCP Server
Sure. I read it.
Here is what I found using Superset MCP Server.

Frequently asked questions

What is the Superset MCP Server MCP server used for?

Superset MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Superset MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Superset MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Superset MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Superset MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Superset MCP Server MCP to TypingMind?

Superset MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Superset MCP Server MCP provide in TypingMind?

Superset MCP Server exposes 28 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Superset MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Superset MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

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

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇