Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_database_get_related_objects

Retrieve charts and dashboards linked to a specific database in Apache Superset to identify dependencies and assess impact before modifications.

Instructions

Get charts and dashboards associated with a database

Makes a request to the /api/v1/database/{id}/related_objects/ endpoint to retrieve counts and references of charts and dashboards that depend on this database.

Args: database_id: ID of the database

Returns: A dictionary with counts and lists of related charts and dashboards

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_idYes

Implementation Reference

  • Handler function implementing the 'superset_database_get_related_objects' tool. It makes a GET request to Superset's /api/v1/database/{database_id}/related_objects/ endpoint to retrieve charts and dashboards associated with the specified database.
    @mcp.tool()
    @requires_auth
    @handle_api_errors
    async def superset_database_get_related_objects(
        ctx: Context, database_id: int
    ) -> Dict[str, Any]:
        """
        Get charts and dashboards associated with a database
    
        Makes a request to the /api/v1/database/{id}/related_objects/ endpoint to retrieve
        counts and references of charts and dashboards that depend on this database.
    
        Args:
            database_id: ID of the database
    
        Returns:
            A dictionary with counts and lists of related charts and dashboards
        """
        return await make_api_request(
            ctx, "get", f"/api/v1/database/{database_id}/related_objects/"
        )
Install Server

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