Skip to content

Docker superset mcp no such command on latest #39872

@japrogramer

Description

@japrogramer

Bug description

Here is the error from the mcp client

MCP Server Error: failed to initialize server: failed to create client: failed to start client: unexpected status code: 502

and this is what is server side.

  2026-05-05 02:38:16,370:INFO:superset.app:Configuration sync to database completed successfully
  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Superset 6.0.1
  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  
  superset@159f336abbd3:/app$ superset mcp run --host 0.0.0.0 --port 5008
  Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
  /app/.venv/lib/python3.10/site-packages/flask_limiter/extension.py:324: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
    warnings.warn(
  2026-05-05 02:38:54,136:INFO:alembic.runtime.migration:Context impl SQLiteImpl.
  2026-05-05 02:38:54,137:INFO:alembic.runtime.migration:Will assume non-transactional DDL.
  2026-05-05 02:38:54,464:INFO:superset.app:Syncing configuration to database…
  2026-05-05 02:38:54,473:INFO:superset.app:Configuration sync to database completed successfully
  Usage: superset [OPTIONS] COMMAND [ARGS]…
  Try 'superset --help' for help.
  
  Error: No such command ‘mcp’.

copied docker compose from https://superset.apache.org/admin-docs/configuration/mcp-server/

# docker-compose.yml
services:
  superset:
    image: apache/superset:latest
    ports:
      - "8088:8088"
    volumes:
      - ./superset_config.py:/app/superset_config.py
    environment:
      - SUPERSET_CONFIG_PATH=/app/superset_config.py

  mcp:
    image: apache/superset:latest
    command: ["superset", "mcp", "run", "--host", "0.0.0.0", "--port", "5008"]
    ports:
      - "5008:5008"
    volumes:
      - ./superset_config.py:/app/superset_config.py
    environment:
      - SUPERSET_CONFIG_PATH=/app/superset_config.py
    depends_on:
      - superset

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    install:dockerInstallation - docker container

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions