Skip to main content

Model Control Protocol (MCP) server for Apache Superset integration with AI assistants

Project description

Superset MCP Server

A Model Control Protocol (MCP) server for Apache Superset integration with AI assistants. This server enables AI assistants to interact with and control a Superset instance programmatically.

Project Structure

superset-mcp-py/
├── main.py                 # Main MCP server entry point
├── utils.py               # Utility functions and decorators
├── pyproject.toml         # Project configuration and dependencies
├── superset.spec.json     # MCP server specification
├── rebuild.ps1           # PowerShell build script
├── uv.lock               # UV package manager lock file
└── tools/                # MCP tools organized by category
    ├── __init__.py       # Tools package initialization
    ├── auth_tools.py     # Authentication and token management
    ├── chart_tools.py    # Chart/slice operations
    ├── dashboard_tools.py # Dashboard management
    ├── database_tools.py # Database connection tools
    ├── dataset_tools.py  # Dataset/table operations
    └── sqllab_tools.py   # SQL Lab query execution

Available Tools

Authentication Tools

  • Token Validation: Check if the current access token is still valid
  • Token Refresh: Refresh the access token using the refresh endpoint
  • User Authentication: Authenticate with Superset and get access token

Dashboard Tools

  • superset_dashboard_list: Get a list of all accessible dashboards
  • superset_dashboard_get_by_id: Get detailed information for a specific dashboard
  • superset_dashboard_create: Create a new dashboard with title and metadata
  • superset_dashboard_update: Update existing dashboard properties

Chart Tools

  • superset_chart_list: Get a list of all accessible charts/slices
  • superset_chart_get_by_id: Get detailed information for a specific chart
  • superset_chart_create: Create a new chart with visualization configuration
  • superset_chart_update: Update existing chart properties and settings
  • superset_chart_delete: Delete a chart (permanent operation)

Database Tools

  • superset_database_list: Get a list of all database connections
  • superset_database_get_by_id: Get detailed database connection information
  • superset_database_get_function_names: Get SQL functions supported by a database
  • superset_database_validate_sql: Validate SQL syntax against a specific database

Dataset Tools

  • superset_dataset_list: Get a list of all accessible datasets
  • superset_dataset_get_by_id: Get detailed dataset information including columns and metrics
  • superset_dataset_create: Create a new dataset from an existing database table
  • superset_dataset_update: Update dataset properties and configuration

SQL Lab Tools

  • superset_sqllab_execute_query: Execute SQL queries against databases through SQL Lab

Dependencies

  • fastapi: Web framework for additional endpoints
  • httpx: HTTP client for Superset API communication
  • mcp: Model Control Protocol framework
  • uvicorn: ASGI server
  • python-dotenv: Environment variable management
  • pydantic: Data validation and settings management

Configuration

Set the following environment variables:

  • SUPERSET_BASE_URL: Base URL of your Superset instance (default: http://localhost:8088)
  • SUPERSET_USERNAME: Username for authentication (default: admin)
  • SUPERSET_PASSWORD: Password for authentication (default: admin)
  • SUPERSET_AUTH_PROVIDER: Authentication provider (default: db)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superset_mcp-0.3.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superset_mcp-0.3.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file superset_mcp-0.3.4.tar.gz.

File metadata

  • Download URL: superset_mcp-0.3.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for superset_mcp-0.3.4.tar.gz
Algorithm Hash digest
SHA256 cc16d48ac708f03355f9ed54fa7eb3a9191bb5b80f32946fd233fa78bd5798fb
MD5 98d0146415b73ab51f55b244ca05a47a
BLAKE2b-256 f3c5f249f79d88274243982c279f27306097358306efd7a59edb1da7e0554495

See more details on using hashes here.

File details

Details for the file superset_mcp-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for superset_mcp-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c087867171fa5512b5360c38c139dccb08542692850b150f1371ff9b4278803c
MD5 5cbd2dbf37f71f8daa0a95cefadc93db
BLAKE2b-256 392d2d495bd66895aa2621a252a62292da79a6f95dca935bb11993ce16bdc46b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page