Skip to content

Menu

Apache Superset MCP Server logo

Apache Superset MCP Server

Published

At a glance

GitHub repository
apache/superset
Watch out for
Many tools write to Superset, including delete_chart, delete_dashboard and delete_dataset, so the account the service runs as should have only the permissions you are comfortable handing an agent.

Apache Superset ships an MCP service inside its main repository, under superset/mcp_service. It is part of the Apache project itself, not a separate package, and it is being worked on actively. The README describes it as a schema-driven interface to dashboards, charts, datasets and instance metadata, built on FastMCP for LLM agents and automation tools.

You run it next to your own Superset instance. By default it listens over HTTP on port 5008, and in larger deployments it sits behind an ingress that routes /mcp to it. It can also run over stdio, either through npx pointed at the mcp_service folder with --stdio or with python -m superset.mcp_service.

The tool set is wide. Beyond reading charts and dashboards, an agent can generate charts and dashboards, edit datasets and metrics, and run SQL through SQL Lab, all under the permissions of the Superset user it acts as.

How it connects

Your AI app

An assistant or agent that supports MCP

Apache Superset MCP Server

Runs as

  • npx (Node.js)
  • Python (uv / pip)
  • Docker

Gives the agent

  • Charts
  • Dashboards
  • Datasets
  • SQL Lab
  • Explore and instance info

Apache Superset

The data or system the tools act on

Your AI app talks to Apache Superset MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Charts
list_charts, get_chart_info, get_chart_data and get_chart_sql read charts, generate_chart and update_chart create or change them, and get_chart_preview can return a PNG or an ASCII rendering.
Dashboards
list_dashboards, get_dashboard_info and get_dashboard_layout read dashboards, while generate_dashboard, add_chart_to_existing_dashboard and manage_native_filters build and adjust them.
Datasets
list_datasets, get_dataset_info and query_dataset inspect data, and create_dataset, create_virtual_dataset and create_dataset_metric add new definitions.
SQL Lab
execute_sql runs a query, save_sql_query stores it, and open_sql_lab_with_context hands the user a prepared SQL Lab session.
Explore and instance info
generate_explore_link builds a link into the Explore view, and get_instance_info, get_schema and health_check describe the running instance.

Setting it up

Install Superset from source with Python 3.11 or 3.12, run pip install -e .[development,fastmcp], build the frontend, and start the service with superset mcp run --port 5008 --debug (the Docker route uses docker-compose-light.yml with the mcp profile instead). For local testing set MCP_DEV_USERNAME in superset_config.py so the service acts as a known user; for production, set MCP_AUTH_ENABLED and MCP_JWT_PUBLIC_KEY to use JWT authentication, and never combine the two. To connect Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Because Claude Desktop does not accept plain HTTP servers, the README points the command at superset/mcp_service/run_proxy.sh, or you can use npx with the path to the mcp_service folder plus --stdio, or the venv's python with args -m superset.mcp_service. Restart Claude Desktop afterwards.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Ask an agent to build a chart from an existing dataset with generate_chart and check it with get_chart_preview.
  • Assemble a new dashboard from several charts with generate_dashboard and tune its filters with manage_native_filters.
  • Run an ad hoc query with execute_sql and save it for the team with save_sql_query.
  • Audit what a dashboard depends on using get_dashboard_datasets and get_dataset_info.

Limitations and things to watch

  • Many tools write to Superset, including delete_chart, delete_dashboard and delete_dataset, so the account the service runs as should have only the permissions you are comfortable handing an agent.
  • The server refuses to start if MCP_DEV_USERNAME is set together with MCP_AUTH_ENABLED, and dev-mode identity is not meant for production.
  • PNG chart previews need a headless browser configured through WEBDRIVER_BASEURL, and responses are capped by MCP_RESPONSE_SIZE_CONFIG png_max_bytes, which defaults to 1,000,000.
  • Claude Desktop will not connect to a non-HTTPS server directly, so plain HTTP setups need the bundled proxy script or stdio.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…