Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_query_list

Retrieve query history from Apache Superset to monitor SQL execution status, duration, and results through paginated API requests.

Instructions

Get a list of queries from Superset

Makes a request to the /api/v1/query/ endpoint to retrieve query history. Results are paginated and include both finished and running queries.

Returns: A dictionary containing query information including status, duration, and SQL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'superset_query_list' tool. It lists recent queries from Superset by making a GET request to the /api/v1/query/ endpoint using the shared make_api_request helper. Decorated with @mcp.tool() for registration, @requires_auth for authentication check, and @handle_api_errors for error handling.
    @requires_auth @handle_api_errors async def superset_query_list(ctx: Context) -> Dict[str, Any]: """ Get a list of queries from Superset Makes a request to the /api/v1/query/ endpoint to retrieve query history. Results are paginated and include both finished and running queries. Returns: A dictionary containing query information including status, duration, and SQL """ return await make_api_request(ctx, "get", "/api/v1/query/")

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