Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_config_get_base_url

Retrieve the configured base URL of the Superset instance to construct full resource URLs or display connection information for the MCP server.

Instructions

Get the base URL of the Superset instance

Returns the configured Superset base URL that this MCP server is connecting to. This can be useful for constructing full URLs to Superset resources or for displaying information about the connected instance.

This tool does not require authentication as it only returns configuration information.

Returns: A dictionary with the Superset base URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function implementing the 'superset_config_get_base_url' tool. It retrieves the Superset base URL from the application context and returns it along with a descriptive message. Registered via @mcp.tool() decorator.
    @mcp.tool() @handle_api_errors async def superset_config_get_base_url(ctx: Context) -> Dict[str, Any]: """ Get the base URL of the Superset instance Returns the configured Superset base URL that this MCP server is connecting to. This can be useful for constructing full URLs to Superset resources or for displaying information about the connected instance. This tool does not require authentication as it only returns configuration information. Returns: A dictionary with the Superset base URL """ superset_ctx: SupersetContext = ctx.request_context.lifespan_context return { "base_url": superset_ctx.base_url, "message": f"Connected to Superset instance at: {superset_ctx.base_url}", }
  • The lifespan context initialization where the base_url is set from the SUPERSET_BASE_URL constant, used by the tool.
    ctx = SupersetContext(client=client, base_url=SUPERSET_BASE_URL, app=app)
  • main.py:59-60 (helper)
    Environment variable configuration for the Superset base URL, defaulting to localhost:8088.
    SUPERSET_BASE_URL = os.getenv("SUPERSET_BASE_URL", "http://localhost:8088") SUPERSET_USERNAME = os.getenv("SUPERSET_USERNAME")

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aptro/superset-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server