Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_database_schemas

Retrieve all schema names from a specific database in Apache Superset to understand database structure and organize data for analysis.

Instructions

Get schemas for a specific database

Makes a request to the /api/v1/database/{id}/schemas/ endpoint to retrieve all schemas available in the database.

Args: database_id: ID of the database

Returns: A dictionary with list of schema names

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_idYes

Implementation Reference

  • main.py:856-874 (handler)
    The handler function implementing the 'superset_database_schemas' tool. It requires authentication and handles API errors. The function makes a GET request to the Superset API endpoint /api/v1/database/{database_id}/schemas/ using the make_api_request helper to retrieve the list of schemas for the specified database.
    @mcp.tool() @requires_auth @handle_api_errors async def superset_database_schemas(ctx: Context, database_id: int) -> Dict[str, Any]: """ Get schemas for a specific database Makes a request to the /api/v1/database/{id}/schemas/ endpoint to retrieve all schemas available in the database. Args: database_id: ID of the database Returns: A dictionary with list of schema names """ return await make_api_request( ctx, "get", f"/api/v1/database/{database_id}/schemas/" )

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