
MCP Superset
io.github.bintocher由 GitHub 帳號 bintocher 發布v0.2.3更新於 Oct 24, 2026
Apache Superset MCP server — 135+ tools for dashboards, charts, datasets, SQL Lab, and security
概覽
本機 MCP 伺服器,為 AI 助理提供 137 個工具來管理 Apache Superset 執行個體,涵蓋儀表板、圖表、資料集、SQL Lab、使用者、角色與列級安全。
- 可以做什麼
- 列出、建立、更新、複製、發布、匯出與匯入儀表板,包含原生篩選器與嵌入模式設定;管理圖表及其資料與快取預熱;註冊資料庫與資料集,測試連線,檢視 schema 與資料表,重新整理或複製資料集並以 ZIP 匯出匯入;執行唯讀 SQL Lab 查詢、取得結果、估算成本、匯出 CSV 並管理已儲存查詢;管理使用者、角色、權限、群組與列級安全,包含批次角色變更、儀表板存取授權/撤銷與權限稽核矩陣;管理標籤、排程報告、註解、稽核日誌以及整個執行個體的資產匯出匯入。
- 適用情境
- 適合管理或基於 Apache Superset 工作的情境:希望助理檢視與修改儀表板、資料集與 SQL Lab 查詢,或處理使用者、角色與列級安全管理,而不必在 Superset 介面中逐項操作。
- 執行需求
- 以 Python 套件形式在本機執行(pip 或 uvx,支援 stdio 或 HTTP/SSE)。需要可存取的 Superset 執行個體,以及 SUPERSET_BASE_URL、SUPERSET_USERNAME 與 SUPERSET_PASSWORD 變數;完整 API 存取需要 Superset 管理員使用者。受 SSO 保護的執行個體可改用瀏覽器工作階段 cookie。已在 Superset 6.0.1 上測試。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Superset,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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]
A comprehensive Model Context Protocol (MCP) server for Apache Superset. Gives AI assistants (Claude, GPT, etc.) full control over your Superset instance — dashboards, charts, datasets, SQL Lab, users, roles, RLS, and more — through 137 tools.
Comparison with Other Superset MCP Servers
Key differentiators:
- Only MCP server with full security management (users, roles, RLS, groups, permissions audit)
- Only one with built-in safety validations (confirmation flags, DDL/DML blocking)
- Only one with dashboard native filter management
- Only one with automatic datasource_access synchronization
- Only one with multiple transport options (HTTP, SSE, stdio)
- Only one with configurable CLI (
--host,--port,--transport,--env-file)
Features
- 137 MCP tools covering the complete Superset REST API
- Dashboard management — CRUD, copy, publish/unpublish, export/import, embedded mode, native filters
- Chart management — CRUD, copy, data retrieval, export/import, cache warmup
- Database management — CRUD, connection testing, schema/table introspection, SQL validation
- Dataset management — CRUD, duplicate, schema refresh, export/import
- SQL Lab — query execution, formatting, cost estimation, results & CSV export
- Security — users, roles, permissions, Row Level Security (RLS), groups
- Access control automation — grant/revoke dashboard access with automatic datasource permission sync
- Audit — comprehensive permissions matrix (user x dashboards x datasets x RLS)
- Tags, reports, annotations, saved queries — full CRUD
- Asset export/import — full instance backup and restore
- Built-in safety — confirmation flags for destructive operations, DDL/DML blocking in SQL Lab
- JWT authentication with automatic token refresh and CSRF handling
- Streamable HTTP, SSE, and stdio transports
Quick Start
Installation
Configuration
Create a .env file in the current directory, or set environment variables:
Session-cookie authentication (SSO/OAuth)
When Superset is behind SSO (OAuth/OIDC/SAML), password login via the REST API is unavailable. Instead, supply a browser session cookie:
Copy the cookie from your browser's dev tools (Application → Cookies →
your Superset domain → session). The MCP server sends it on every request
and fetches CSRF tokens with it. The session cannot be renewed server-side,
so when it expires you must paste a fresh value and restart the server.
Two things worth checking before you use this mode:
- The cookie name is not always
session. Instances that setSESSION_COOKIE_NAMEinsuperset_config.pyuse a different name (s, for example). Use the name shown in dev tools and setSUPERSET_SESSION_COOKIE_NAMEaccordingly. - The instance must accept session authentication on
/api/v1/. Where the REST API is configured for JWT only, requests carrying a valid session cookie still return401 {"msg": "Missing Authorization Header"}- refreshing the cookie will not help, and JWT mode is the only option there.
Treat the cookie as a credential: it grants full access to your Superset
account for the lifetime of the session. Keep it in .env (which is
gitignored), not in shell history or committed config.
Running
CLI Options
Connecting to MCP Clients
Claude Code
Add to your project's .mcp.json:
Then start the server: mcp-superset or uvx mcp-superset.
Claude Desktop
Add to claude_desktop_config.json:
Cursor / Windsurf
Other MCP Clients
Any MCP-compatible client can connect via:
- Streamable HTTP:
http://<host>:<port>/mcp - SSE:
http://<host>:<port>/sse - stdio: pipe to
mcp-superset --transport stdio
Available Tools (137)
Dashboards (15 tools)
Dashboard Filters (5 tools)
Charts (11 tools)
Databases (18 tools)
Datasets (11 tools)
SQL Lab & Queries (13 tools)
Security & Access Control (26 tools)
Groups (9 tools)
Tags (7 tools)
System & Reports (21 tools)
Audit (1 tool)
Safety Features
The server includes extensive built-in protections to prevent accidental data loss or misconfiguration.
Confirmation Flags
Destructive operations require explicit confirmation parameters:
Automatic Protections
- DDL/DML blocking — SQL Lab rejects
DROP,DELETE,UPDATE,INSERT,TRUNCATE,ALTER,CREATE,GRANT,REVOKE(SQL comments are stripped before checking) - System role protection — cannot delete Admin, Alpha, Gamma, Public roles
- Service account protection — cannot delete the MCP service user
- RLS safety —
rls_updaterequires bothrolesandtablesto prevent silent data wipe - Native filter IDs — automatically generated in
NATIVE_FILTER-<uuid>format - Chart validation — rejects charts without
granularity_sqla(required for dashboard time filters) - Auto-sync — datasource_access permissions are automatically synchronized when dashboard roles change
Architecture
Superset Compatibility
- Tested with: Apache Superset 6.0.1
- Authentication: JWT (recommended) — API Key (
sst_*) is not implemented in Superset - Required Superset user: Admin role (for full API access)
Recommended Superset Configuration
Add to your superset_config.py:
Development
Setup
Running Locally
Running Tests
Known Superset API Quirks
These are handled automatically by the MCP server, but useful to know when debugging:
License
MIT — Stanislav Chernov (@bintocher)
來源:README.md,提交 4e0a856
工具
0版本歷史
1- v0.2.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分