SuperAPI AI Directory

mcp-superset

Apache Superset: dashboards, charts, datasets, SQL Lab, security (users, roles, RLS, groups) and permissions audit, with built-in safety validations.

Open website

About this tool

Purpose: mcp-superset is a Model Context Protocol (MCP) server used to let AI assistants (such as Claude, GPT, etc.) fully operate an Apache Superset instance through 137 tools, covering dashboards, charts, datasets, SQL Lab, users, roles, row-level security (RLS), and more.

Main capabilities: dashboard management (create, read, update, delete, copy, publish/unpublish, import/export, embedded mode, native filters); chart management (create, read, update, delete, copy, fetch data, import/export, cache warmup); database management (create, read, update, delete, connection testing, schema/table introspection, SQL validation); dataset management (create, read, update, delete, copy, schema refresh, import/export); SQL Lab (query execution, formatting, cost estimation, results and CSV export); security (users, roles, permissions, RLS, groups); access control automation (grant/revoke dashboard access and automatically synchronize datasource permissions); auditing (permission matrix of users x dashboards x datasets x RLS); full create, read, update, delete for tags, reports, annotations, and saved queries; asset import/export to implement instance backup and restore.

Usage: create a .env in the current directory or set environment variables; when Superset is behind SSO (OAuth/OIDC/SAML), instead use a browser session cookie (copied from developer tools; note that the cookie name may not be session and must be set according to SESSION_COOKIE_NAME), and this cookie is treated as a credential and should be placed in a gitignored .env. Clients can add the project .mcp.json or claude_desktop_config.json, then run mcp-superset or uvx mcp-superset. Supports three transports: Streamable HTTP (http://<host>:<port>/mcp), SSE (http://<host>:<port>/sse), and stdio (mcp-superset --transport stdio).

Security and limitations: destructive operations require an explicit confirmation parameter; SQL Lab automatically intercepts DDL/DML (DROP, DELETE, UPDATE, INSERT, TRUNCATE, ALTER, CREATE, GRANT,REVOKE, and SQL comments are stripped before checking); system roles (Admin, Alpha, Gamma, Public) and the MCP service account cannot be deleted; rls_update requires both roles and tables to be provided; native filter IDs are generated automatically; charts missing granularity_sqla will be rejected. Tested on Apache Superset 6.0.1, JWT authentication is recommended (Superset has not implemented API Key sst_*), and a user with the Admin role is required. Session cookies cannot be renewed server-side; after expiration, a new value must be pasted and the server restarted; if the instance supports only JWT, carrying a valid session cookie still returns 401. Licensed under MIT.