Skip to main content
Glama

mcp-superset

PyPI version PyPI downloads Python 3.12+ License: MIT CI CodeQL

Superset 6.0.1 MCP Typed Ruff uv Tools: 137 GitHub stars

这是一个为 Apache Superset 提供的综合 模型上下文协议 (MCP) 服务器。它通过 137 个工具让 AI 助手(Claude、GPT 等)能够完全控制您的 Superset 实例,包括仪表板、图表、数据集、SQL Lab、用户、角色、RLS 等。

与其他 Superset MCP 服务器的对比

特性

mcp-superset

superset-mcp

superset-mcp (Winding2020)

superset-mcp-server

工具总数

137

60

31

4

语言

Python

Python

TypeScript

TypeScript

仪表板 CRUD

15 个工具

5

8

-

仪表板原生筛选器

5 个工具

-

-

-

图表 CRUD

11 个工具

5

7

-

数据库工具

18 个工具

14

1

1

数据集工具

11 个工具

3

7

-

SQL Lab

5 个工具

7

1

1

安全性(用户/角色)

26 个工具

2

-

-

行级安全性 (RLS)

5 个工具

-

-

-

组

9 个工具

-

-

-

权限审计

是

-

-

-

仪表板访问权限授予/撤销

是

-

-

-

自动 datasource_access 同步

是

-

-

-

报告与注释

10 个工具

-

-

-

标签

7 个工具

7

-

-

资产导出/导入

是

-

-

-

安全:确认标志

14 种类型

-

-

-

安全:DDL/DML 拦截

是

-

-

-

安全:系统角色保护

是

-

-

-

传输方式

HTTP, SSE, stdio

stdio

stdio

stdio

认证方式

JWT + 自动刷新 + CSRF

用户名/密码 + 令牌文件

用户名/密码或令牌

LDAP

Superset 版本

6.0.1

4.1.1

未指定

未指定

带参数的 CLI

--host --port --transport

-

-

-

PyPI 包

mcp-superset

superset-mcp

superset-mcp (npm)

-

uvx 支持

是

-

-

-

许可证

MIT

MIT

-

Apache 2.0

GitHub 星标

新

170

21

5

主要区别:

  • 唯一具备完整安全管理(用户、角色、RLS、组、权限审计)的 MCP 服务器

  • 唯一具备内置安全验证(确认标志、DDL/DML 拦截)的服务器

  • 唯一具备仪表板原生筛选器管理的服务器

  • 唯一具备自动 datasource_access 同步的服务器

  • 唯一具备多种传输选项(HTTP、SSE、stdio)的服务器

  • 唯一具备可配置 CLI(--host, --port, --transport, --env-file)的服务器

Related MCP server: Superset MCP Server

功能

  • 137 个 MCP 工具,涵盖完整的 Superset REST API

  • 仪表板管理 — CRUD、复制、发布/取消发布、导出/导入、嵌入模式、原生筛选器

  • 图表管理 — CRUD、复制、数据检索、导出/导入、缓存预热

  • 数据库管理 — CRUD、连接测试、模式/表内省、SQL 验证

  • 数据集管理 — CRUD、复制、模式刷新、导出/导入

  • SQL Lab — 查询执行、格式化、成本估算、结果及 CSV 导出

  • 安全性 — 用户、角色、权限、行级安全性 (RLS)、组

  • 访问控制自动化 — 授予/撤销仪表板访问权限,并自动同步数据源权限

  • 审计 — 全面的权限矩阵(用户 x 仪表板 x 数据集 x RLS)

  • 标签、报告、注释、已保存查询 — 全面 CRUD

  • 资产导出/导入 — 完整的实例备份与恢复

  • 内置安全 — 针对破坏性操作的确认标志,SQL Lab 中的 DDL/DML 拦截

  • JWT 认证,支持自动令牌刷新和 CSRF 处理

  • 可流式传输的 HTTP、SSE 和 stdio 传输方式

快速入门

安装

# From PyPI
pip install mcp-superset

# With uv (recommended)
uv pip install mcp-superset

# Run without installing (uvx)
uvx mcp-superset

配置

在当前目录中创建一个 .env 文件,或设置环境变量:

# Required
SUPERSET_BASE_URL=https://superset.example.com
SUPERSET_USERNAME=admin
SUPERSET_PASSWORD=your_password

# Optional
SUPERSET_AUTH_PROVIDER=db          # db (default) or ldap
SUPERSET_MCP_HOST=127.0.0.1       # Server host (default: 127.0.0.1)
SUPERSET_MCP_PORT=8001             # Server port (default: 8001)
SUPERSET_MCP_TRANSPORT=streamable-http  # streamable-http (default), sse, or stdio

运行

# Using CLI (after pip install)
mcp-superset

# Run without installing
uvx mcp-superset

# Using Python module
python -m mcp_superset

# With uv from source
uv run mcp-superset

# With custom settings
mcp-superset --host 0.0.0.0 --port 9000 --transport sse

# With custom .env file
mcp-superset --env-file /path/to/.env

# Using stdio transport (for Claude Desktop, Cursor, etc.)
mcp-superset --transport stdio

CLI 选项

选项

默认值

环境变量

描述

--host

127.0.0.1

SUPERSET_MCP_HOST

服务器绑定地址

--port

8001

SUPERSET_MCP_PORT

服务器绑定端口

--transport

streamable-http

SUPERSET_MCP_TRANSPORT

传输方式: streamable-http, sse, stdio

--env-file

自动检测

—

.env 文件路径

--version

—

—

显示版本并退出

连接到 MCP 客户端

Claude Code

添加到项目的 .mcp.json 中:

{
  "mcpServers": {
    "superset": {
      "type": "http",
      "url": "http://localhost:8001/mcp"
    }
  }
}

然后启动服务器:mcp-superset 或 uvx mcp-superset。

Claude Desktop

添加到 claude_desktop_config.json 中:

{
  "mcpServers": {
    "superset": {
      "command": "uvx",
      "args": ["mcp-superset", "--transport", "stdio"],
      "env": {
        "SUPERSET_BASE_URL": "https://superset.example.com",
        "SUPERSET_USERNAME": "admin",
        "SUPERSET_PASSWORD": "your_password"
      }
    }
  }
}

Cursor / Windsurf

{
  "mcpServers": {
    "superset": {
      "command": "uvx",
      "args": ["mcp-superset", "--transport", "stdio"],
      "env": {
        "SUPERSET_BASE_URL": "https://superset.example.com",
        "SUPERSET_USERNAME": "admin",
        "SUPERSET_PASSWORD": "your_password"
      }
    }
  }
}

其他 MCP 客户端

任何兼容 MCP 的客户端都可以通过以下方式连接:

  • Streamable HTTP: http://<host>:<port>/mcp

  • SSE: http://<host>:<port>/sse

  • stdio: 管道传输至 mcp-superset --transport stdio

可用工具 (137)

仪表板 (15 个工具)

工具

描述

superset_dashboard_list

列出仪表板(支持筛选和分页)

superset_dashboard_get

按 ID 获取仪表板详情

superset_dashboard_create

创建新仪表板

superset_dashboard_update

更新仪表板属性

superset_dashboard_delete

删除仪表板(需要确认)

superset_dashboard_copy

复制仪表板

superset_dashboard_publish

发布草稿仪表板

superset_dashboard_unpublish

取消发布仪表板

superset_dashboard_charts

列出仪表板中的图表

superset_dashboard_datasets

列出仪表板使用的数据集

superset_dashboard_export

将仪表板导出为 ZIP (base64)

superset_dashboard_import

从 ZIP 文件导入仪表板

superset_dashboard_embedded_get

获取嵌入配置

superset_dashboard_embedded_set

启用嵌入模式并设置允许的域名

superset_dashboard_embedded_delete

禁用嵌入模式

仪表板筛选器 (5 个工具)

工具

描述

superset_dashboard_filter_list

列出仪表板上的原生筛选器

superset_dashboard_filter_add

添加原生筛选器(自动生成正确的 ID 格式)

superset_dashboard_filter_update

更新现有的原生筛选器

superset_dashboard_filter_delete

移除原生筛选器(需要确认)

superset_dashboard_filter_reset

移除所有筛选器(需要确认)

图表 (11 个工具)

工具

描述

superset_chart_list

列出图表(支持筛选和分页)

superset_chart_get

按 ID 获取图表详情

superset_chart_create

创建新图表

superset_chart_update

更新图表属性

superset_chart_delete

删除图表(需要确认)

superset_chart_copy

复制图表

superset_chart_data

执行图表查询并获取数据

superset_chart_get_data

从已保存的图表获取数据

superset_chart_export

将图表导出为 ZIP (base64)

superset_chart_import

从 ZIP 文件导入图表

superset_chart_cache_warmup

预热图表缓存

数据库 (18 个工具)

工具

描述

superset_database_list

列出数据库连接

superset_database_get

获取数据库详情

superset_database_create

注册新的数据库连接

superset_database_update

更新数据库设置

superset_database_delete

移除数据库(需要确认)

superset_database_test_connection

测试数据库连接性

superset_database_schemas

列出数据库中的模式

superset_database_tables

列出模式中的表

superset_database_catalogs

列出目录(针对多目录数据库)

superset_database_connection_info

获取连接字符串信息

superset_database_function_names

列出可用的 SQL 函数

superset_database_related_objects

查找使用此数据库的图表/数据集

superset_database_validate_sql

验证 SQL 语法

superset_database_validate_parameters

验证连接参数

superset_database_select_star

为表生成 SELECT * 查询

superset_database_table_metadata

获取表列和索引元数据

superset_database_export

将数据库配置导出为 ZIP

superset_database_available_engines

列出支持的数据库引擎

数据集 (11 个工具)

工具

描述

superset_dataset_list

列出数据集(支持筛选)

superset_dataset_get

获取数据集详情(包括列和指标)

superset_dataset_create

从表或 SQL 查询创建数据集

superset_dataset_update

更新数据集属性

superset_dataset_delete

删除数据集(需要确认)

superset_dataset_duplicate

复制数据集

superset_dataset_refresh_schema

从源刷新列

superset_dataset_related_objects

查找使用此数据集的图表

superset_dataset_export

将数据集导出为 ZIP

superset_dataset_import

从 ZIP 导入数据集

superset_dataset_get_or_create

获取现有数据集或创建新数据集

SQL Lab 与查询 (13 个工具)

工具

描述

superset_sqllab_execute

执行 SQL 查询(仅限 SELECT)

superset_sqllab_format_sql

格式化/美化 SQL

superset_sqllab_results

获取已完成查询的结果

superset_sqllab_estimate_cost

估算查询执行成本

superset_sqllab_export_csv

将查询结果导出为 CSV

superset_query_list

列出已执行的查询

superset_query_get

获取查询详情和结果

superset_query_stop

停止正在运行的查询

superset_saved_query_list

列出已保存的查询

superset_saved_query_create

保存新查询

superset_saved_query_get

获取已保存查询的详情

superset_saved_query_update

更新已保存的查询

superset_saved_query_delete

删除已保存的查询(需要确认)

Available Tools

137 tools
superset_annotation_createA

Create an annotation (timeline event) in the specified layer.

Annotations are displayed as vertical lines or areas on time-series charts.

Args: annotation_layer_id: Annotation layer ID (from annotation_layer_list). short_descr: Brief event description (displayed on the chart). start_dttm: Start datetime in ISO format. Example: "2024-01-01T00:00:00" end_dttm: End datetime in ISO format. Example: "2024-01-01T23:59:59" For a point-in-time event, set start_dttm = end_dttm. long_descr: Detailed event description (optional). json_metadata: JSON string with additional metadata (optional).

Inputs: end_dttm (required), start_dttm (required), short_descr (required), annotation_layer_id (required), +2 more. Returns: result

superset_annotation_deleteB

Delete an annotation from a layer.

Args: annotation_layer_id: Annotation layer ID. annotation_id: Annotation ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: annotation_id (required), annotation_layer_id (required), confirm_delete. Returns: result

superset_annotation_getB

Get an annotation by ID.

Args: annotation_layer_id: Annotation layer ID. annotation_id: Annotation ID (from annotation_list).

Inputs: annotation_id (required), annotation_layer_id (required). Returns: result

superset_annotation_layer_createA

Create a new annotation layer.

A layer is a container for annotations that can be overlaid on time-series charts.

Args: name: Layer name. descr: Layer description (optional).

Inputs: name (required), descr. Returns: result

superset_annotation_layer_deleteA

Delete an annotation layer along with all its annotations.

CRITICAL: deletes the layer AND all annotations within it permanently.

Args: annotation_layer_id: Layer ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: annotation_layer_id (required), confirm_delete. Returns: result

superset_annotation_layer_getA

Get annotation layer information by ID.

IMPORTANT: if the ID is unknown, call annotation_layer_list first.

Args: annotation_layer_id: Layer ID (from annotation_layer_list).

Inputs: annotation_layer_id (required). Returns: result

superset_annotation_layer_listA

List annotation layers.

An annotation layer is a container for annotations (timeline events) that can be overlaid on charts.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: page, get_all, page_size. Returns: result

superset_annotation_layer_updateA

Update an annotation layer. Pass only the fields to change.

Args: annotation_layer_id: Layer ID to update. name: New layer name. descr: New layer description.

Inputs: annotation_layer_id (required), name, descr. Returns: result

superset_annotation_listA

List annotations in the specified layer.

Args: annotation_layer_id: Annotation layer ID (from annotation_layer_list). page: Page number (starting from 0). page_size: Number of records per page (max 100). get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: annotation_layer_id (required), page, get_all, page_size. Returns: result

superset_annotation_updateA

Update an annotation. Pass only the fields to change.

Args: annotation_layer_id: Annotation layer ID. annotation_id: Annotation ID to update. short_descr: New brief description. start_dttm: New start datetime (ISO format: "2024-01-01T00:00:00"). end_dttm: New end datetime (ISO format). long_descr: New detailed description.

Inputs: annotation_id (required), annotation_layer_id (required), end_dttm, long_descr, +2 more. Returns: result

superset_assets_exportA

Export ALL Superset assets into a single ZIP file.

Includes: dashboards, charts, datasets, database connections (without passwords). Useful for backup or migration between instances.

Returns: JSON: {"format": "zip", "encoding": "base64", "data": "...", "size_bytes": N}

Inputs: no named parameters. Returns: result

superset_assets_importA

Import Superset assets from a ZIP file (created via assets_export).

CRITICAL: overwrite=True overwrites ALL matching objects (dashboards, charts, datasets, databases). This is irreversible.

Args: file_path: Absolute path to the ZIP file on disk. overwrite: Overwrite existing objects with matching UUIDs (default False). confirm_overwrite: Overwrite confirmation (REQUIRED when overwrite=True).

Inputs: file_path (required), overwrite, confirm_overwrite. Returns: result

superset_bulk_user_role_addA

Add a role to multiple users (without removing existing roles).

Select users by explicit IDs or by current role filter.

Args: role_id: Role ID to add. user_ids: Explicit list of user IDs. If None, uses filter_role_id. filter_role_id: Add to all users who have this role. Ignored if user_ids is set. exclude_admin: Skip Admin users (default True). confirm: True to apply. False for dry-run.

Inputs: role_id (required), confirm, user_ids, exclude_admin, +1 more. Returns: result

superset_bulk_user_role_removeA

Remove a role from multiple users.

Args: role_id: Role ID to remove. user_ids: Explicit list of user IDs. If None, removes from ALL users who have it. exclude_admin: Skip Admin users (default True). confirm: True to apply. False for dry-run.

Inputs: role_id (required), confirm, user_ids, exclude_admin. Returns: result

superset_bulk_user_role_replaceA

Replace one role with another for all users who have it.

Adds new_role_id first, then removes old_role_id (safe two-step).

Args: old_role_id: Role ID to replace. new_role_id: Role ID to set instead. exclude_admin: Skip Admin users (default True). confirm: True to apply. False for dry-run.

Inputs: new_role_id (required), old_role_id (required), confirm, exclude_admin. Returns: result

superset_chart_cache_warmupA

Warm up the cache for a chart.

Useful for speeding up loading of frequently used charts.

Args: chart_id: ID of the chart to warm up. dashboard_id: Dashboard ID for filter context (optional).

Inputs: chart_id (required), dashboard_id. Returns: result

superset_chart_copyA

Create a copy of an existing chart with a new name.

Copies all visualization parameters, type, dataset, and query_context. Dashboard bindings are NOT copied — specify new ones via the dashboards parameter.

Args: chart_id: ID of the source chart to copy. slice_name: Name for the new copy. dashboards: List of dashboard IDs to bind the copy to (optional).

Inputs: chart_id (required), slice_name (required), dashboards. Returns: result

superset_chart_createA

Create a new chart.

Args: slice_name: Chart name (displayed in the UI). viz_type: Visualization type (Superset 6.x). Main types: ECharts (recommended): - echarts_timeseries_bar — bar/horizontal bar chart - echarts_timeseries_line — line chart - echarts_timeseries_smooth — smoothed line - echarts_timeseries_step — step line - echarts_timeseries_scatter — scatter plot - echarts_area — area chart - mixed_timeseries — multiple series with 2 Y-axes - pie — pie chart - funnel — funnel chart - gauge_chart — gauge/speedometer - radar — radar chart - graph_chart — graph/network - tree_chart — tree diagram - treemap_v2 — treemap - sunburst_v2 — sunburst chart - sankey_v2 — Sankey diagram - heatmap_v2 — heatmap - histogram_v2 — histogram - box_plot — box plot - bubble_v2 — bubble chart - waterfall — waterfall chart - gantt_chart — Gantt chart KPI: - big_number_total — big number (KPI) - big_number — KPI with trend Tables: - table — table - pivot_table_v2 — pivot table Maps: - country_map — country map (ISO 3166-2 codes) - world_map — world map Other: - word_cloud — word cloud - handlebars — custom template DEPRECATED (DO NOT USE — "not registered" error): dist_bar -> echarts_timeseries_bar, bar -> echarts_timeseries_bar, area -> echarts_area, line -> echarts_timeseries_line, heatmap -> heatmap_v2, histogram -> histogram_v2, treemap -> treemap_v2, sunburst -> sunburst_v2, sankey -> sankey_v2, pivot_table -> pivot_table_v2, dual_line -> mixed_timeseries, line_multi -> mixed_timeseries datasource_id: Dataset ID (from superset_dataset_list). datasource_type: Data source type (default "table" — dataset). params: JSON string with visualization parameters (depend on viz_type). Define metrics, groupings, filters, colors, labels, etc.

    IMPORTANT — numeric and time formats:
      Do NOT use SMART_NUMBER or SMART_DATE — they abbreviate numbers
      (1.61k instead of 1610) and show literal text instead of dates.
      Use explicit formats:
      - y_axis_format: "d" (integers without separators), ",d" (with commas),
        ",.2f" (decimals)
      - number_format: ",d" (for pie chart)
      - x_axis_time_format: "%b %Y" (X-axis dates), "%Y-%m-%d" (ISO)
      - tooltipTimeFormat: "%Y-%m-%d" or "%Y-%m" (tooltip dates)
      - show_value: true (show numbers on bar chart columns)

    CRITICAL — date/time format in Superset 6.x:
      Superset 6.x uses ONLY D3 time format (strftime syntax).
      Do NOT use moment.js format (YYYY-MM-DD) — it will be rendered
      as literal text "YYYY-MM-DD" instead of an actual date!
      Correct formats (D3/strftime):
      - "%Y-%m-%d"       -> 2026-03-05 (ISO date)
      - "%Y-%m-%d %H:%M" -> 2026-03-05 14:30 (date + time)
      - "%d.%m.%Y"       -> 05.03.2026 (European format)
      - "%b %Y"          -> Mar 2026 (month + year)
      - "%Y"             -> 2026 (year only)
      - "%Y-%m"          -> 2026-03 (year-month)
      INCORRECT formats (moment.js — DO NOT WORK):
      - "YYYY-MM-DD" — renders literal "YYYY-MM-DD"
      - "DD.MM.YYYY" — renders literal "DD.MM.YYYY"
      - "MMM YYYY"   — renders literal "MMM YYYY"
      Parameters that accept date formats:
      - table_timestamp_format (tables)
      - x_axis_time_format (X-axis)
      - tooltipTimeFormat (tooltip)
      - y_axis_format (for big_number_total with date in metric)

    big_number_total (KPI cards) — REFERENCE parameters:
      - header_font_size: 0.27 (number size, ~53px in a 60px container)
      - subheader_font_size: 0.15 (subtitle/label size)
      - y_axis_format: "d" (integers without comma separators)
      IMPORTANT — scroll in KPI: the big_number_total container has a fixed
      height (usually 60px at 2 grid cells). Too large a font causes scrolling.
      Culprits: font-size + line-height (1.1x) + margin-bottom (8px default).
      If using dashboard CSS for custom font size, add
      `margin-bottom: 0 !important` to .header-line.
      Formula: font_size * 1.1 + margin <= container_height (60px).
      Recommended CSS: font-size 3.3rem (58px with line-height), margin-bottom: 0.

    country_map — required parameters:
      - select_country: "russia"
      - entity: "<column with ISO 3166-2 codes>"
      - metric: {...}
      Map tooltip (class .hover-popup) is clipped by the container
      .dashboard-chart (overflow:hidden). Fix via dashboard CSS:
      .dashboard-chart-id-{N} .dashboard-chart { overflow: visible !important; }
      .hover-popup { z-index: 99999 !important; }

query_context: JSON string with query context.
    Required for chart_get_data to work. Usually generated by the UI.
dashboards: List of dashboard IDs to bind the chart to.

Inputs: viz_type (required), slice_name (required), datasource_id (required), params, +3 more. Returns: result

superset_chart_dataA

Execute an arbitrary query against a dataset and retrieve data.

Allows fetching data directly from a dataset without creating a chart. To get data from an existing chart, use chart_get_data instead.

Args: query_context: JSON string with the query context. Format: { "datasource": {"id": <dataset_id>, "type": "table"}, "queries": [{ "columns": ["col1", "col2"], "metrics": [{"label": "count", "expressionType": "SIMPLE", "aggregate": "COUNT", "column": {"column_name": "id"}}], "filters": [{"col": "status", "op": "==", "val": "active"}], "orderby": [["col1", true]], "row_limit": 100, "time_range": "Last 7 days" }], "result_format": "json", "result_type": "full" } IMPORTANT: time_range is specified at the QUERY level, NOT inside extras. Allowed time_range values: "Last day", "Last week", "Last month", "Last year", "No filter", or "2024-01-01 : 2024-12-31".

Inputs: query_context (required). Returns: result

superset_chart_deleteA

Delete a chart by ID. The chart will be removed from all dashboards.

Args: chart_id: ID of the chart to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: chart_id (required), confirm_delete. Returns: result

superset_chart_exportA

Export charts with all dependencies (datasets, databases) as a ZIP file.

The result is a base64-encoded ZIP file. It can be imported back via superset_chart_import.

Args: chart_ids: Chart IDs separated by commas (e.g. "1,2,3").

Returns: JSON: {"format": "zip", "encoding": "base64", "data": "...", "size_bytes": N}

Inputs: chart_ids (required). Returns: result

superset_chart_getA

Get detailed information about a chart by ID.

Returns all settings: viz_type, params, query_context, dashboard bindings. IMPORTANT: if the ID is unknown, call superset_chart_list first.

Args: chart_id: Chart ID (integer from chart_list result).

Inputs: chart_id (required). Returns: result

superset_chart_get_dataA

Get data from a specific saved chart by its ID.

IMPORTANT: works only if the chart was saved with query_context (usually after opening and saving via the Superset UI). If query_context is missing, use superset_chart_data with a manually constructed query.

Args: chart_id: Chart ID.

Inputs: chart_id (required). Returns: result

superset_chart_importA

Import charts from a ZIP file (created via export).

The ZIP must contain YAML files with chart configurations and dependencies.

Args: file_path: Absolute path to the ZIP file on disk. overwrite: Overwrite existing objects with the same UUID (default False).

Inputs: file_path (required), overwrite. Returns: result

superset_chart_listA

List Superset charts with pagination.

IMPORTANT: always call this tool before chart_get/chart_delete to look up actual chart IDs.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. Examples: - By name: (filters:!((col:slice_name,opr:ct,value:search_term))) - By type: (filters:!((col:viz_type,opr:eq,value:table))) - By dataset: (filters:!((col:datasource_id,opr:eq,value:1))) get_all: Retrieve ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_chart_updateA

Update an existing chart. Pass only the fields to change.

Args: chart_id: ID of the chart to update. slice_name: New name. viz_type: New visualization type (see chart_create for the list of types). params: New JSON visualization parameters (replaces entirely). See chart_create for reference on numeric/time formats. IMPORTANT: params replaces ALL parameters — first get current ones via chart_get, modify the needed fields, and pass the full JSON. CRITICAL: for dates use D3 strftime format ("%Y-%m-%d"), NOT moment.js ("YYYY-MM-DD") — otherwise a literal will be shown! query_context: New JSON query context (replaces entirely). IMPORTANT: when changing params you should also update query_context, otherwise the chart will use the old query context. dashboards: New list of dashboard IDs (REPLACES all bindings). confirm_params_replace: Confirmation for replacing params (REQUIRED when passing params).

Inputs: chart_id (required), params, viz_type, dashboards, +3 more. Returns: result

superset_dashboard_chartsA

Get the list of all charts placed on a dashboard.

Returns chart IDs and names. Useful for analyzing dashboard contents.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_copyA

Create a copy of an existing dashboard with all its charts.

Args: dashboard_id: ID of the source dashboard to copy. dashboard_title: Title for the new copy. json_metadata: JSON metadata for the copy. IMPORTANT: Superset requires this field. If not provided, "{}" will be used.

Inputs: dashboard_id (required), dashboard_title (required), json_metadata. Returns: result

superset_dashboard_createA

Create a new dashboard.

IMPORTANT: when roles are specified, datasource_access is automatically synced for the given roles — each role will get access to all dashboard datasets.

Args: dashboard_title: Dashboard title (displayed in the UI). slug: URL slug for a pretty link (e.g. "my-dashboard"). Must be unique. published: Publish immediately (default False — draft). json_metadata: JSON string with dashboard metadata. Contains filter settings, color palette, refresh interval. Use "{}" for empty metadata. css: Custom CSS for dashboard styling. position_json: JSON string with widget positioning on the dashboard. Defines the layout of charts, headers, dividers in the grid. roles: List of role IDs that can access the dashboard. Users without one of these roles will NOT see the dashboard. Empty list = accessible to all.

Inputs: dashboard_title (required), css, slug, roles, +3 more. Returns: result

superset_dashboard_datasetsB

Get the list of all datasets used by a dashboard's charts.

Useful for understanding the dashboard's dependencies on data sources.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_deleteA

Delete a dashboard by ID. Charts and datasets are NOT deleted — only the dashboard itself.

CRITICAL: the dashboard will be permanently deleted.

Args: dashboard_id: ID of the dashboard to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: dashboard_id (required), confirm_delete. Returns: result

superset_dashboard_embedded_deleteB

Disable dashboard embedding (embedded mode).

After disabling, the dashboard can no longer be embedded via iframe.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_embedded_getA

Get the embedding (embedded) settings of a dashboard.

IMPORTANT: will return 404 if embedded mode has not been configured via embedded_set.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_embedded_setA

Enable dashboard embedding (embedded mode) and configure allowed domains.

Once enabled, the dashboard can be embedded via iframe on the specified domains.

Args: dashboard_id: Dashboard ID. allowed_domains: List of domains where embedding is allowed (e.g. ["example.com", "app.example.com"]). Empty list = all domains.

Inputs: dashboard_id (required), allowed_domains. Returns: result

superset_dashboard_exportA

Export dashboards with all dependencies (charts, datasets, databases) as a ZIP.

The result is a base64-encoded ZIP file. It can be imported back via superset_dashboard_import.

Args: dashboard_ids: Comma-separated dashboard IDs (e.g. "1,2,3").

Returns: JSON: {"format": "zip", "encoding": "base64", "data": "...", "size_bytes": N}

Inputs: dashboard_ids (required). Returns: result

superset_dashboard_filter_addA

Add a native filter to a dashboard with correct defaults.

Automatically populates chartsInScope with all dashboard charts, builds correct scope, defaultDataMask, and cascadeParentIds. Filter ID is generated in NATIVE_FILTER- format — this is REQUIRED for Superset 6.0.1 (custom IDs are silently ignored by the frontend).

Args: dashboard_id: Dashboard ID. name: Display name of the filter (e.g. "Full Name"). column: Dataset column name for filtering (e.g. "full_name"). dataset_id: ID of the dataset providing filter values. filter_type: Filter type: "filter_select", "filter_time", "filter_range". multi_select: Allow multiple selection (default True). search_all_options: Search all values, not just loaded ones (for large lists). enable_empty_filter: Empty filter means filtering by NULL. cascade_parent_id: ID of the parent filter for cascading.

Inputs: name (required), column (required), dataset_id (required), dashboard_id (required), +5 more. Returns: result

superset_dashboard_filter_deleteA

Delete a native filter from a dashboard by ID.

Args: dashboard_id: Dashboard ID. filter_id: ID of the filter to delete (format "NATIVE_FILTER-"). confirm_delete: Deletion confirmation (REQUIRED).

Inputs: filter_id (required), dashboard_id (required), confirm_delete. Returns: result

superset_dashboard_filter_listA

Get a list of native filters on a dashboard in a readable format.

Parses json_metadata and returns configuration of each filter: ID, name, type, column, dataset, chartsInScope, controlValues.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_filter_resetA

Recreate ALL native filters on a dashboard with correct defaults.

Deletes all current filters and creates new ones from the provided list. Automatically populates chartsInScope, scope, defaultDataMask, cascadeParentIds.

CRITICAL: all current filters will be DELETED and replaced with new ones.

Args: dashboard_id: Dashboard ID. dataset_id: Dataset ID for all filters. filters_json: JSON array of filter definitions. Each element: confirm_reset: Filter reset confirmation (REQUIRED). { "name": "Full Name", "column": "full_name", "type": "filter_select", // filter_select | filter_time | filter_range "multi_select": true, // optional, default true "search_all_options": false, // optional, default false "enable_empty_filter": false, // optional, default false "cascade_parent_id": null // optional, parent filter ID }

Inputs: dataset_id (required), dashboard_id (required), filters_json (required), confirm_reset. Returns: result

superset_dashboard_filter_updateA

Update a native filter on a dashboard by ID. Pass only the fields to change.

Args: dashboard_id: Dashboard ID. filter_id: Filter ID (format "NATIVE_FILTER-"). name: New filter name. column: New column for filtering. multi_select: Multiple selection. search_all_options: Search all values. enable_empty_filter: Empty filter = NULL. cascade_parent_id: Parent filter ID (None — remove cascading).

Inputs: filter_id (required), dashboard_id (required), name, column, +4 more. Returns: result

superset_dashboard_getA

Get detailed information about a dashboard by ID.

IMPORTANT: if the ID is unknown, first call superset_dashboard_list to find the desired dashboard. A non-existent ID will return 404.

Args: dashboard_id: Dashboard ID (integer from dashboard_list result).

Inputs: dashboard_id (required). Returns: result

superset_dashboard_grant_role_accessA

Grant a role access to a dashboard by automatically finding all dashboard datasets and adding datasource_access to the role's permissions.

The tool automatically:

  1. Finds all datasets used by the dashboard's charts

  2. Finds permission_view_menu_id for datasource_access of each dataset

  3. Checks which permissions the role already has

  4. Adds missing datasource_access to the role's existing permissions

  5. Checks for RLS rules on the datasets and warns if missing

Without confirm_grant=True, shows the action plan (dry-run).

Args: dashboard_id: Dashboard ID (from dashboard_list). role_id: ID of the role to grant access to (from role_list). confirm_grant: True to apply changes. False for dry-run only.

Inputs: role_id (required), dashboard_id (required), confirm_grant. Returns: result

superset_dashboard_importA

Import dashboards from a ZIP file (created via export).

The ZIP should contain YAML files with dashboard and dependency configurations.

Args: file_path: Absolute path to the ZIP file on disk. overwrite: Overwrite existing objects with the same UUID (default False).

Inputs: file_path (required), overwrite. Returns: result

superset_dashboard_listA

List Superset dashboards with pagination.

IMPORTANT: always call this tool before dashboard_get to find out the current dashboard IDs.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By title: (filters:!((col:dashboard_title,opr:ct,value:search))) - By owner: (filters:!((col:owners,opr:rel_m_m,value:1))) - Published only: (filters:!((col:published,opr:eq,value:!t))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_dashboard_publishA

Publish a dashboard (make it visible to users with appropriate permissions).

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_revoke_role_accessA

Revoke a role's access to a dashboard by removing datasource_access for the dashboard's datasets from the role's permissions.

IMPORTANT: if a dataset is used by other dashboards that the role also has access to, revoking will break access to those dashboards as well. The tool will check and warn about this.

Without confirm_revoke=True, shows the action plan (dry-run).

Args: dashboard_id: Dashboard ID (from dashboard_list). role_id: ID of the role to revoke access from (from role_list). confirm_revoke: True to apply. False for dry-run only.

Inputs: role_id (required), dashboard_id (required), confirm_revoke. Returns: result

superset_dashboard_unpublishA

Unpublish a dashboard (convert to draft).

The dashboard will remain accessible to owners and admins but will be hidden from the general list.

Args: dashboard_id: Dashboard ID.

Inputs: dashboard_id (required). Returns: result

superset_dashboard_updateA

Update an existing dashboard. Pass only the fields to change.

IMPORTANT: after the update, datasource_access is automatically synced — each role from dashboard.roles will get access to all dashboard datasets.

Args: dashboard_id: ID of the dashboard to update. dashboard_title: New title. slug: New URL slug (must be unique). published: Change publication status (true — published, false — draft). json_metadata: Dashboard JSON metadata (string or object, fully replaced). css: New custom CSS for the dashboard. Injected as a tag on the dashboard page. Does NOT affect Explore view (chart editor) — only the dashboard.

    Common CSS fixes:

      1) KPI big_number_total — digit size and scroll:
      KPI container has a fixed height (~60px at 2 cells).
      Default font is small. To enlarge via CSS:
        div[class*="big_number"] .header-line {
          font-size: 3.3rem !important;  /* digits */
          font-weight: 700 !important;
          line-height: 1.1 !important;
          margin-bottom: 0 !important;  /* REQUIRED! otherwise scroll */
        }
        div[class*="big_number"] .subheader-line {
          font-size: 1rem !important;  /* label */
          font-weight: 400 !important;
          opacity: 0.7;
        }
      IMPORTANT: margin-bottom on .header-line defaults to 8px — together with
      line-height causes overflow and scroll. Verification formula:
      font_size_px * 1.1 + margin_bottom <= 60px.
      3.3rem = 52.8px -> 52.8 * 1.1 = 58px + 0 = 58px < 60px OK

      2) Country Map tooltip clipped by container — culprit is
      DIV.dashboard-chart (styled-component with overflow:hidden).
      Tooltip = DIV.hover-popup (NOT .datamaps-hoverover!). Fix:
        .dashboard-chart-id-{N} .dashboard-chart {
          overflow: visible !important;
        }
        .hover-popup { z-index: 99999 !important; }

      To analyze CSS issues: open the dashboard in Playwright,
      find the chart element, walk up parentElement,
      check getComputedStyle(el).overflow at each level.

position_json: Widget positioning on the dashboard (string or object).
    Defines the layout of charts, headers, dividers in the grid.
    IMPORTANT: fully replaced — first get current layout via
    dashboard_get, modify needed elements and pass the entire JSON.
owners: List of owner user IDs (REPLACES all current owners).
roles: List of role IDs for dashboard access (REPLACES current ones).
    On change, datasource_access is automatically synced.

Inputs: dashboard_id (required), css, slug, roles, +5 more. Returns: result

superset_database_available_enginesA

List supported database engine types for creating connections.

Returns available engines: PostgreSQL, MySQL, SQLite, etc. Useful for selecting an engine when creating a new connection.

Inputs: no named parameters. Returns: result

superset_database_catalogsA

List catalogs in a database (for engines that support catalogs).

Not supported by all engines. PostgreSQL and MySQL typically do not use catalogs.

Args: database_id: Database connection ID.

Inputs: database_id (required). Returns: result

superset_database_connection_infoA

Get connection information (URI without password, parameters).

Args: database_id: Database connection ID.

Inputs: database_id (required). Returns: result

superset_database_createA

Create a new database connection.

IMPORTANT: Superset validates database availability on creation. The URI must be reachable from the Superset server (not the client's localhost).

Args: database_name: Human-readable connection name. sqlalchemy_uri: SQLAlchemy connection URI string. Examples: - PostgreSQL: postgresql://user:pass@host:5432/dbname - MySQL: mysql://user:pass@host:3306/dbname - SQLite: sqlite:///path/to/db.sqlite expose_in_sqllab: Whether to show in SQL Lab (default True). allow_ctas: Allow CREATE TABLE AS SELECT. allow_cvas: Allow CREATE VIEW AS SELECT. allow_dml: Allow INSERT/UPDATE/DELETE. allow_run_async: Allow asynchronous query execution. extra: JSON string with additional settings (engine_params, metadata_params).

Inputs: database_name (required), sqlalchemy_uri (required), extra, allow_dml, +4 more. Returns: result

superset_database_deleteA

Delete a database connection. All associated datasets will become broken.

CRITICAL: deleting a connection breaks ALL datasets, charts, and dashboards using this DB.

Args: database_id: Connection ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: database_id (required), confirm_delete. Returns: result

superset_database_exportA

Export database connection configurations as a ZIP file.

IMPORTANT: passwords are NOT exported for security reasons.

Args: database_ids: Comma-separated connection IDs (e.g. "1,2").

Returns: JSON: {"format": "zip", "encoding": "base64", "data": "...", "size_bytes": N}

Inputs: database_ids (required). Returns: result

superset_database_function_namesA

List available SQL functions in the database.

Useful for building SQL queries with engine-specific functions.

Args: database_id: Database connection ID.

Inputs: database_id (required). Returns: result

superset_database_getA

Get detailed information about a database connection by ID.

IMPORTANT: if the ID is unknown, call superset_database_list first.

Args: database_id: Connection ID (integer from database_list result).

Inputs: database_id (required). Returns: result

superset_database_listA

List database connections configured in Superset.

Returns the ID, name, engine type, and status of each connection. IMPORTANT: always call before database_get to discover current IDs.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. Examples: - By name: (filters:!((col:database_name,opr:ct,value:postgres))) - By type: (filters:!((col:backend,opr:eq,value:postgresql))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_database_schemasA

List schemas available in a database.

Useful for selecting a schema before querying tables or creating a dataset.

Args: database_id: Database connection ID (from database_list).

Inputs: database_id (required). Returns: result

superset_database_select_starA

Generate a SELECT * SQL query for a table (with LIMIT).

Useful for quickly inspecting table structure and data.

Args: database_id: Database connection ID. table_name: Table name. schema_name: Schema (e.g. "public"). If not specified, uses the default schema.

Inputs: table_name (required), database_id (required), schema_name. Returns: result

superset_database_table_metadataA

Get table metadata: columns, data types, indexes, and primary keys.

Useful for understanding table structure before writing SQL queries.

Args: database_id: Database connection ID. table_name: Table name. schema_name: Schema (e.g. "public"). If not specified, uses the default schema.

Inputs: table_name (required), database_id (required), schema_name. Returns: result

superset_database_tablesA

List tables and views in the specified database schema.

Useful for selecting a table before creating a dataset.

Args: database_id: Database connection ID (from database_list). schema_name: Schema name (from database_schemas). Examples: "public", "source". Passed in RISON format without quotes.

Inputs: database_id (required), schema_name (required). Returns: result

superset_database_test_connectionA

Test a database connection without creating it.

IMPORTANT: the URI must be reachable from the Superset server.

Args: database_name: Connection name (shown in error messages). sqlalchemy_uri: SQLAlchemy URI to test. extra: JSON string with additional settings.

Inputs: database_name (required), sqlalchemy_uri (required), extra. Returns: result

superset_database_updateA

Update a database connection. Pass only the fields you want to change.

Args: database_id: Connection ID to update. database_name: New connection name. sqlalchemy_uri: New SQLAlchemy URI. CRITICAL: changing the URI breaks all datasets and charts using this connection. expose_in_sqllab: Whether to show in SQL Lab. allow_ctas: Allow CREATE TABLE AS SELECT. allow_cvas: Allow CREATE VIEW AS SELECT. allow_dml: Allow INSERT/UPDATE/DELETE. extra: JSON string with additional settings. confirm_uri_change: Confirmation for URI change (REQUIRED when changing sqlalchemy_uri).

Inputs: database_id (required), extra, allow_dml, allow_ctas, +5 more. Returns: result

superset_database_validate_parametersA

Validate database connection parameters without creating a connection.

Args: engine: Database engine type: "postgresql", "mysql", "sqlite", "mssql", etc. parameters: Connection parameters dictionary: {"host": "...", "port": 5432, "database": "...", "username": "...", "password": "..."} configuration_method: Configuration method: "sqlalchemy_form" (default) or "dynamic_form".

Inputs: engine (required), parameters (required), configuration_method. Returns: result

superset_database_validate_sqlA

Validate SQL query syntax without executing it (EXPLAIN-like check).

IMPORTANT: not all database engines support SQL validation. PostgreSQL does.

Args: database_id: Database connection ID. sql: SQL query to validate. schema: Schema for validation context (e.g. "public").

Inputs: sql (required), database_id (required), schema. Returns: result

superset_dataset_createA

Create a new dataset (physical or virtual).

A physical dataset references an existing table/view in the database. A virtual dataset uses an arbitrary SQL query as the data source.

Args: table_name: Table/view name (for physical) or dataset name (for virtual). database: Database connection ID (from superset_database_list). schema_name: Database schema (e.g. "public", "source"). If omitted, uses the DB default schema. sql: SQL query for a virtual dataset. If provided, creates a virtual dataset based on this query.

Returns: JSON string with the created dataset details.

Inputs: database (required), table_name (required), sql, schema_name. Returns: result

superset_dataset_deleteA

Delete a dataset. Charts using this dataset will stop working.

CRITICAL: deleting a dataset breaks all linked charts and dashboards.

Args: dataset_id: ID of the dataset to delete. confirm_delete: Deletion confirmation (REQUIRED).

Returns: JSON string with the deletion result.

Inputs: dataset_id (required), confirm_delete. Returns: result

superset_dataset_duplicateA

Create a copy of an existing dataset (with columns and metrics).

Args: base_model_id: ID of the source dataset to copy. IMPORTANT: the field is called base_model_id, NOT base_id or dataset_id. table_name: Name for the new dataset (must be unique).

Returns: JSON string with the duplicated dataset details.

Inputs: table_name (required), base_model_id (required). Returns: result

superset_dataset_exportA

Export datasets with dependencies (databases) to a ZIP file.

The result is a base64-encoded ZIP. Can be imported via dataset_import.

Args: dataset_ids: Comma-separated dataset IDs (e.g. "1,2,3").

Returns: JSON: {"format": "zip", "encoding": "base64", "data": "...", "size_bytes": N}

Inputs: dataset_ids (required). Returns: result

superset_dataset_getA

Get detailed information about a dataset: columns, metrics, SQL.

IMPORTANT: if the ID is unknown, call superset_dataset_list first.

Args: dataset_id: Dataset ID (integer from dataset_list result).

Returns: JSON string with dataset details.

Inputs: dataset_id (required). Returns: result

superset_dataset_get_or_createA

Get an existing dataset or create a new one for a table.

If a dataset for the specified table already exists, returns it. If not, creates a new physical dataset.

Args: database_id: Database connection ID (from superset_database_list). table_name: Table name in the database. schema_name: Database schema (e.g. "public", "source"). If omitted, uses the DB default schema.

Returns: JSON string with the dataset details.

Inputs: table_name (required), database_id (required), schema_name. Returns: result

superset_dataset_importA

Import datasets from a ZIP file (created via export).

Args: file_path: Absolute path to the ZIP file on disk. overwrite: Overwrite existing objects with matching UUIDs (default False).

Returns: JSON string with the import result.

Inputs: file_path (required), overwrite. Returns: result

superset_dataset_listA

List Superset datasets with pagination.

A dataset is a reference to a table/view or a virtual SQL query in Superset. IMPORTANT: always call before dataset_get to discover current IDs.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. Examples: - By name: (filters:!((col:table_name,opr:ct,value:search_term))) - By schema: (filters:!((col:schema,opr:eq,value:public))) - By database: (filters:!((col:database,opr:rel_o_m,value:1))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Returns: JSON string with the list of datasets.

Inputs: q, page, get_all, page_size. Returns: result

superset_dataset_refresh_schemaA

Refresh the dataset schema from the source (rescan columns and types).

Useful after ALTER TABLE or any structural change to the underlying table.

Args: dataset_id: Dataset ID.

Returns: JSON string with the refresh result.

Inputs: dataset_id (required). Returns: result

superset_dataset_updateA

Update a dataset. Only pass the fields you want to change.

Args: dataset_id: ID of the dataset to update. table_name: New table/dataset name. sql: New SQL query (only for virtual datasets). description: Dataset description (displayed in Superset UI). columns: JSON string describing columns. CRITICAL: passing columns REPLACES ALL dataset columns! To update a single column (e.g. verbose_name), pass ALL columns with their IDs. After an error, dataset_refresh_schema will restore columns from SQL. Format: [{"id": 123, "column_name": "id", "type": "INTEGER", ...}] metrics: JSON string describing metrics. Format: [{"metric_name": "count", "expression": "COUNT(*)", "metric_type": "count"}] confirm_columns_replace: Confirmation for replacing ALL columns (REQUIRED when passing columns). always_filter_main_dttm: Force the dataset's main datetime filter on/off. Superset resets this flag to false on any PUT that omits it, which breaks dashboard time filters when only columns/metrics are updated. Pass an explicit value to set it; leave it None and the current value is preserved automatically whenever columns are replaced.

Returns: JSON string with the updated dataset details.

Inputs: dataset_id (required), sql, columns, metrics, +4 more. Returns: result

superset_get_base_urlA

Get the base URL of the configured Superset instance.

Returns the URL used by the MCP server to connect to Superset.

Inputs: no named parameters. Returns: result

superset_get_current_userA

Get information about the current authenticated user (mcp_service).

Returns: JSON with username, name, email, roles, and active status.

Inputs: no named parameters. Returns: result

superset_get_current_user_rolesA

Get the list of roles for the current user (mcp_service).

Returns: JSON with IDs and names of all assigned roles.

Inputs: no named parameters. Returns: result

superset_get_menuA

Get the Superset navigation menu structure.

Useful for understanding available sections and the current user's permissions.

Inputs: no named parameters. Returns: result

superset_group_add_rolesA

Add roles to a group without removing existing ones.

Args: group_id: Group ID. role_ids: List of role IDs to add.

Inputs: group_id (required), role_ids (required). Returns: result

superset_group_add_usersA

Add users to a group without removing existing ones.

Convenience tool: fetches current group users, merges in new ones, and updates the group.

Args: group_id: Group ID. user_ids: List of user IDs to add.

Inputs: group_id (required), user_ids (required). Returns: result

superset_group_createA

Create a new user group.

A group combines users and roles. Users in a group automatically inherit all roles of the group.

Args: name: Unique group name (e.g. "la_region_Moscow"). label: Display label (e.g. "Moscow region"). description: Group description. roles: List of role IDs to assign to the group. users: List of user IDs to add to the group.

Inputs: name (required), label, roles, users, +1 more. Returns: result

superset_group_deleteB

Delete a user group.

Users in the group are NOT deleted, but they lose the roles that were assigned through this group.

Args: group_id: ID of the group to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: group_id (required), confirm_delete. Returns: result

superset_group_getA

Get detailed information about a group by ID.

Returns: name, label, description, list of roles and users.

Args: group_id: Group ID (from group_list).

Inputs: group_id (required). Returns: result

superset_group_listA

List Superset user groups.

A group combines users and roles. Users in a group inherit all roles assigned to the group.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By name: (filters:!((col:name,opr:ct,value:moscow))) get_all: Fetch ALL records with automatic pagination.

Inputs: q, page, get_all, page_size. Returns: result

superset_group_remove_rolesA

Remove roles from a group without removing the rest.

Args: group_id: Group ID. role_ids: List of role IDs to remove.

Inputs: group_id (required), role_ids (required). Returns: result

superset_group_remove_usersB

Remove users from a group without removing the rest.

Args: group_id: Group ID. user_ids: List of user IDs to remove from the group.

Inputs: group_id (required), user_ids (required). Returns: result

superset_group_updateA

Update a group. Only pass the fields you want to change.

IMPORTANT: roles REPLACES the entire role list of the group (does not append). IMPORTANT: users REPLACES the entire user list of the group (does not append).

To add a single role/user: fetch current ones via group_get, add the ID to the list, pass the complete list.

Args: group_id: ID of the group to update. name: New group name. label: New label. description: New description. roles: New COMPLETE list of role IDs (REPLACES all current ones). users: New COMPLETE list of user IDs (REPLACES all current ones). confirm_roles_replace: Confirmation for role replacement (REQUIRED when roles is set). confirm_users_replace: Confirmation for user replacement (REQUIRED when users is set).

Inputs: group_id (required), name, label, roles, +4 more. Returns: result

superset_log_listA

Get the audit log of all Superset user actions.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By user: (filters:!((col:user,opr:rel_o_m,value:1))) - By action: (filters:!((col:action,opr:ct,value:explore))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_permission_listA

Get the list of all available permissions (permission_view_menu) in Superset.

Each permission is a combination of an action (can_read, can_write, can_explore) and a resource.

Args: page: Page number (starting from 0). page_size: Number of records per page (defaults to 100). q: RISON filter for searching. get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_permissions_auditA

Audit access rights: user x dashboards/datasets/RLS permission matrix.

For each user shows:

  • Groups they belong to

  • Effective roles (direct + inherited from groups)

  • Access to each dashboard (1/0/partial) — checks BOTH:

    • Dashboard visibility (user's role in dashboard.roles, or roles empty)

    • Data access (datasource_access to ALL datasets) Values: 1 = full access, 0 = no access, "visible_no_data" = can open but charts fail

  • Access to each dataset (1/0)

  • Available regions via RLS

Args: page: Results page (starting from 0). page_size: Users per page (max 50). username_filter: Filter by username (substring match). include_admin: Include Admin users (they have access to everything).

Inputs: page, page_size, include_admin, username_filter. Returns: result

superset_query_getA

Retrieve detailed information about a query from the history by ID.

Args: query_id: Query ID (integer from query_list result).

Inputs: query_id (required). Returns: result

superset_query_listA

Retrieve the history of executed SQL queries.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By status: (filters:!((col:status,opr:eq,value:success))) - By database: (filters:!((col:database,opr:rel_o_m,value:1))) get_all: Retrieve ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_query_stopA

Stop a running asynchronous query.

Args: query_id: Query client_id to stop (string from sqllab_execute result).

Inputs: query_id (required). Returns: result

superset_recent_activityA

Get recent activity of the current user (views, edits).

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: page, get_all, page_size. Returns: result

superset_report_createA

Create a report (periodic delivery) or alert (SQL-condition based).

For Report: specify dashboard or chart — Superset will send a screenshot on schedule. For Alert: specify database and sql — Superset checks the condition and notifies on trigger.

Args: name: Report/alert name. crontab: Cron schedule. Examples: - "0 9 * * *" — every day at 9:00 - "0 9 * * 1" — every Monday at 9:00 - "0 */6 * * *" — every 6 hours report_type: Type: "Report" (periodic delivery, default) or "Alert" (condition-based). dashboard: Dashboard ID for screenshot (for Report). chart: Chart ID for screenshot (for Report). database: Database connection ID (for Alert — SQL condition). sql: SQL query for condition check (for Alert). The alert triggers when the query returns a non-empty result. recipients: JSON string with recipient list. Format: [{"type": "Email", "recipient_config_json": {"target": "user@example.com"}}] active: Whether active (default True).

Inputs: name (required), crontab (required), sql, chart, +5 more. Returns: result

superset_report_deleteA

Delete a report/alert. The delivery schedule will be stopped.

Args: report_id: Report ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: report_id (required), confirm_delete. Returns: result

superset_report_getA

Get detailed information about a report/alert by ID.

IMPORTANT: if the ID is unknown, call superset_report_list first.

Args: report_id: Report ID (integer from report_list result).

Inputs: report_id (required). Returns: result

superset_report_listA

List Superset reports and alerts.

Reports send periodic screenshots of dashboards/charts. Alerts send notifications when a SQL condition is met.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By name: (filters:!((col:name,opr:ct,value:search_term))) - By type: (filters:!((col:type,opr:eq,value:Report))) - Active only: (filters:!((col:active,opr:eq,value:!t))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_report_updateA

Update a report/alert. Pass only the fields to change.

Args: report_id: Report ID to update. name: New name. crontab: New cron schedule (e.g. "0 9 * * *"). active: Enable/disable the report. recipients: JSON string with new recipient list (REPLACES all current recipients).

Inputs: report_id (required), name, active, crontab, +1 more. Returns: result

superset_rls_createA

Create a Row Level Security rule.

RLS automatically adds a WHERE clause to queries for users with the specified roles accessing the specified datasets.

Args: name: Rule name. clause: SQL WHERE condition without the WHERE keyword. Examples: - "region = 'Moscow'" - "user_id = {{ current_user_id() }}" - "status IN ('active', 'pending')" tables: List of dataset IDs the rule applies to (from dataset_list). roles: List of role IDs the rule applies to (from role_list). filter_type: Filter type: - "Regular" (default) — additional restriction for the specified roles - "Base" — base filter applied to all users group_key: Rule grouping key (optional). description: Rule description (optional).

Inputs: name (required), roles (required), clause (required), tables (required), +3 more. Returns: result

superset_rls_deleteA

Delete an RLS rule. Restrictions for associated roles will be lifted.

CRITICAL: deleting a deny-by-default rule (clause='1=0') will immediately expose ALL data to users with those roles.

Args: rls_id: ID of the RLS rule to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: rls_id (required), confirm_delete. Returns: result

superset_rls_getA

Get detailed information about an RLS rule by ID.

Args: rls_id: RLS rule ID (from rls_list).

Inputs: rls_id (required). Returns: result

superset_rls_listA

Get the list of Row Level Security rules.

RLS adds a WHERE clause to queries for specific roles.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_rls_updateA

Update an RLS rule.

CRITICAL: Superset PUT API REPLACES the roles and tables fields entirely. If you pass only roles without tables, Superset will WIPE tables with an empty list (and vice versa). Therefore, this tool REQUIRES passing roles and tables simultaneously if either one is specified.

For safe updates:

  1. First get the current rule via rls_list

  2. Pass BOTH roles AND tables (even if you only change one)

Args: rls_id: ID of the RLS rule to update. name: New name. filter_type: New type: "Regular" or "Base". clause: New SQL WHERE condition (without the WHERE keyword). tables: List of dataset IDs (REPLACES all current). REQUIRED if roles is specified. roles: List of role IDs (REPLACES all current). REQUIRED if tables is specified. group_key: New grouping key. description: New description.

Inputs: rls_id (required), name, roles, clause, +4 more. Returns: result

superset_role_copy_permissionsA

Copy all permissions from one role to another (full replacement).

Args: source_role_id: Role to copy permissions FROM. target_role_id: Role to copy permissions TO (existing permissions will be REPLACED). confirm: True to apply. False for dry-run.

Inputs: source_role_id (required), target_role_id (required), confirm. Returns: result

superset_role_createA

Create a new role (without permissions). Permissions are added via role_permission_add.

Args: name: Role name (must be unique).

Inputs: name (required). Returns: result

superset_role_deleteA

Delete a role. Users with this role will lose the associated permissions.

BLOCKED for system roles: Admin, Alpha, Gamma, Public, sql_lab, no_access, la_report_*, la_region_*, la_developer.

Args: role_id: ID of the role to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: role_id (required), confirm_delete. Returns: result

superset_role_getA

Get role information by ID.

IMPORTANT: if the ID is unknown, call superset_role_list first.

Args: role_id: Role ID (integer from role_list result).

Inputs: role_id (required). Returns: result

superset_role_listA

Get the list of Superset roles.

Standard roles: Admin, Alpha, Gamma, sql_lab, Public.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. Examples: - By name: (filters:!((col:name,opr:ct,value:admin))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_role_permission_addA

Set the permissions list for a role (FULL REPLACEMENT).

WARNING: this endpoint REPLACES ALL role permissions with the provided list! To ADD a single permission:

  1. Call superset_role_permissions_get to get current permission IDs

  2. Add the new ID to the list

  3. Pass the FULL list to this tool with confirm_full_replace=True

Args: role_id: Role ID. permission_view_menu_ids: FULL list of permission IDs for the role. Permission IDs can be obtained via superset_permission_list. confirm_full_replace: Confirmation for full permission replacement (REQUIRED).

Inputs: role_id (required), permission_view_menu_ids (required), confirm_full_replace. Returns: result

superset_role_permissions_getA

Get the current list of permissions for a role.

IMPORTANT: call this BEFORE role_permission_add to avoid losing existing permissions.

Args: role_id: Role ID.

Inputs: role_id (required). Returns: result

superset_role_updateC

Rename a role.

Args: role_id: ID of the role to rename. name: New role name.

Inputs: name (required), role_id (required). Returns: result

superset_saved_query_createA

Create a saved SQL query for reuse.

Args: label: Query name (displayed in the list). db_id: Database connection ID (from superset_database_list). sql: SQL query to save. schema: Default schema (e.g. "public"). description: Query description.

Inputs: sql (required), db_id (required), label (required), schema, +1 more. Returns: result

superset_saved_query_deleteA

Delete a saved query.

Args: saved_query_id: Saved query ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: saved_query_id (required), confirm_delete. Returns: result

superset_saved_query_getA

Retrieve a saved query by ID: SQL text, schema, description.

Args: saved_query_id: Saved query ID (from saved_query_list).

Inputs: saved_query_id (required). Returns: result

superset_saved_query_listA

Retrieve a list of saved SQL queries.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By label: (filters:!((col:label,opr:ct,value:search_term))) - By database: (filters:!((col:database,opr:rel_o_m,value:1))) get_all: Retrieve ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_saved_query_updateA

Update a saved query. Pass only the fields to change.

Args: saved_query_id: Saved query ID. label: New name. sql: New SQL query. schema: New default schema. description: New description.

Inputs: saved_query_id (required), sql, label, schema, +1 more. Returns: result

superset_sqllab_estimate_costA

Estimate the cost of executing a SQL query (EXPLAIN).

Not all database engines support this feature. PostgreSQL does.

Args: database_id: Database connection ID. sql: SQL query to estimate. schema: Schema for context (e.g. "public").

Inputs: sql (required), database_id (required), schema. Returns: result

superset_sqllab_executeA

Execute a SQL query via SQL Lab and return the result.

IMPORTANT: before executing, make sure the SQL query is correct. Use superset_database_table_metadata or superset_database_tables to find actual table and column names. Maximum 1000 rows in the result (queryLimit).

Args: database_id: Database connection ID (from superset_database_list). sql: SQL query to execute. Examples: - SELECT * FROM public.my_table LIMIT 10 - SELECT count(*) FROM source.stat schema: Default schema for the query (e.g. "public", "source"). If not specified, the database default schema is used. catalog: Database catalog (for databases with catalog support, optional). tab_name: Tab name in SQL Lab UI (optional, for organization). template_params: JSON string with Jinja template parameters (optional). Example: '{"start_date": "2024-01-01"}'

Inputs: sql (required), database_id (required), schema, catalog, +2 more. Returns: result

superset_sqllab_export_csvA

Export query results to CSV format.

IMPORTANT: requires a configured Results Backend (Redis/S3) in Superset.

Args: client_id: Query client_id (from the superset_sqllab_execute result).

Inputs: client_id (required). Returns: result

superset_sqllab_format_sqlA

Format a SQL query (pretty print with indentation).

Args: sql: SQL query to format.

Inputs: sql (required). Returns: result

superset_sqllab_resultsA

Retrieve results of a previously executed query by key.

IMPORTANT: requires a configured Results Backend (Redis/S3) in Superset. Without it, returns 500. The key is taken from the results_key field of sqllab_execute response.

Args: results_key: Results key from the superset_sqllab_execute response.

Inputs: results_key (required). Returns: result

superset_tag_bulk_createA

Bulk-create tags with object attachments.

Allows creating multiple tags and attaching them to objects in a single request.

Args: tags: JSON string with a list of tags. Format: [ {"name": "production", "objects_to_tag": [["dashboard", 1], ["chart", 5]]}, {"name": "analytics", "objects_to_tag": [["dataset", 3]]} ] objects_to_tag: pairs of [object_type, object_id]. Allowed types: "dashboard", "chart", "dataset", "saved_query".

Inputs: tags (required). Returns: result

superset_tag_createA

Create a new tag and optionally attach it to Superset objects.

IMPORTANT: Superset API returns {} on creation (without tag ID). To get the new tag's ID, call superset_tag_list after creation.

Object attachment is only possible during creation via objects_to_tag. Direct attachment endpoints (POST/DELETE /api/v1/tag/{type}/{id}/) do not work in 6.0.1.

Args: name: Tag name. description: Tag description (optional). objects_to_tag: JSON string with a list of objects to tag. Format: [["dashboard", 1], ["chart", 5], ["dataset", 3], ["saved_query", 2]] Each element is a pair [object_type, object_id]. Allowed types: "dashboard", "chart", "dataset", "saved_query".

Inputs: name (required), description, objects_to_tag. Returns: result

superset_tag_deleteA

Delete a tag. All object attachments will be removed.

Args: tag_id: Tag ID to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: tag_id (required), confirm_delete. Returns: result

superset_tag_getA

Get tag information by ID.

IMPORTANT: if the ID is unknown, call superset_tag_list first.

Args: tag_id: Tag ID (integer from tag_list result).

Inputs: tag_id (required). Returns: result

superset_tag_get_objectsA

Get objects tagged with the specified tags.

Returns dashboards, charts, datasets, and queries with the specified tags.

Args: tags: Comma-separated tag names (e.g. "analytics,production"). If not specified, returns all tagged objects. page: Page number (starting from 0). page_size: Number of records per page (max 100). get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: page, tags, get_all, page_size. Returns: result

superset_tag_listA

List Superset tags.

Tags are used to group and organize dashboards, charts, and datasets. IMPORTANT: always call before tag_get/tag_update to find current IDs. When creating a tag, the API returns {} without an ID — use tag_list to get the ID.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for search. Examples: - By name: (filters:!((col:name,opr:ct,value:search_term))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_tag_updateA

Update a tag (rename or change description).

IMPORTANT: the name field is REQUIRED in Superset 6.0.1 — even if the name is not changing, it must be provided. Without it, Superset returns 500.

Args: tag_id: Tag ID to update. name: Tag name (REQUIRED, even if unchanged). description: New description (optional).

Inputs: name (required), tag_id (required), description. Returns: result

superset_user_createA

Create a new Superset user.

Args: first_name: User's first name. last_name: User's last name. username: Login name (must be unique). email: Email address (must be unique). password: Password. roles: List of role IDs to assign (from superset_role_list). If not specified, the default role (Public) will be assigned. active: Whether the account is active (defaults to True).

Inputs: email (required), password (required), username (required), last_name (required), +3 more. Returns: result

superset_user_deleteA

Delete a Superset user. This operation is irreversible.

CRITICAL: deleting the current service account (mcp_service) will lock out the entire MCP server. Deleting dashboard owners may change access to those dashboards.

Args: user_id: ID of the user to delete. confirm_delete: Deletion confirmation (REQUIRED).

Inputs: user_id (required), confirm_delete. Returns: result

superset_user_getA

Get detailed information about a user by ID.

IMPORTANT: if the ID is unknown, call superset_user_list first.

Args: user_id: User ID (integer from user_list result).

Inputs: user_id (required). Returns: result

superset_user_listA

Get the list of Superset users.

Args: page: Page number (starting from 0). page_size: Number of records per page (max 100). q: RISON filter for searching. Examples: - By username: (filters:!((col:username,opr:ct,value:admin))) - Active only: (filters:!((col:active,opr:eq,value:!t))) - By role: (filters:!((col:roles,opr:rel_m_m,value:1))) get_all: Fetch ALL records with automatic pagination (ignores page/page_size).

Inputs: q, page, get_all, page_size. Returns: result

superset_user_updateA

Update a user. Only pass the fields you want to change.

IMPORTANT: roles REPLACES the entire role list (does not append). To add a single role: get the current roles via user_get, add the new ID to the list, then pass the full list.

Args: user_id: ID of the user to update. first_name: New first name. last_name: New last name. email: New email (must be unique). roles: New list of role IDs (REPLACES all current roles). active: Activate/deactivate the account. confirm_roles_replace: Confirmation for role replacement (REQUIRED when passing roles).

Inputs: user_id (required), email, roles, active, +3 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 137 tools

    Disambiguation4/5

    The tools mostly have clear, distinct purposes (e.g., dashboard_list vs chart_list vs dataset_list). A few pairs could be confused, such as superset_sqllab_export_csv vs superset_sqllab_results or superset_chart_data vs superset_chart_get_data, but detailed descriptions mitigate ambiguity. Overall, each tool targets a specific object or action, though the sheer quantity makes selection challenging.

    Naming Consistency5/5

    Every tool follows the consistent pattern `superset_<object>_<action>` (e.g., dashboard_create, chart_update, dataset_delete). Exceptions like superset_get_menu or superset_get_current_user still use a verb-oriented convention. No mixed casing or inconsistent verb styles; the prefix `superset_` unifies the entire set.

    Tool Count1/5

    With 137 tools, this is far beyond the typical well-scoped server and exceeds even the 50+ threshold for an extreme mismatch. While Superset is a complex platform, exposing this many tools burdens the agent with excessive choice and likely includes many rarely-used operations. The count is inappropriate for efficient discovery and selection.

    Completeness5/5

    The tool surface covers comprehensive CRUD and lifecycle operations for all major Superset entities: dashboards, charts, databases, datasets, users, roles, RLS rules, tags, reports, annotations, and groups. It also includes import/export, bulk operations, permissions auditing, and SQL lab utilities. No obvious gaps prevent common workflows; the set is remarkably thorough.

    Maintenance

    ActivityStale
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP server enabling AI agents to programmatically connect to and control Apache Superset instances, allowing users to manage dashboards, charts, databases, datasets, and run SQL queries through natural language interactions.
      60
      195
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for Apache Superset that enables AI models to manage dashboards, create charts with auto-detection, and execute SQL queries programmatically. It utilizes stateless HTTP transport to ensure compatibility with integration tools like Open WebUI.
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      An MCP server that provides AI assistants with full access to Apache Superset instances, enabling interaction with dashboards, charts, datasets, databases, and SQL execution capabilities.
      34
      -