Apache Superset 集成
STDIO用于与Apache Superset交互的MCP服务器
用于与Apache Superset交互的MCP服务器
MCP server for interacting with Apache Superset, enabling AI agents to connect to and control a Superset instance programmatically.
To install Superset Integration for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @aptro/superset-mcp --client claude
Set Up Superset Locally
Run this script to start Superset locally:
git clone --branch 4.1.1 --depth 1 https://github.com/apache/superset && \ cd superset && \ docker compose -f docker-compose-image-tag.yml up
Once Superset is running, you should be able to access it at http://localhost:8088 with default credentials:
Clone This Repository
Clone this repository to your local machine.
Configure Environment Variables
Create a .env
file in the root directory with your Superset credentials:
SUPERSET_BASE_URL=http://localhost:8088 # Change to your Superset URL
SUPERSET_USERNAME=your_username
SUPERSET_PASSWORD=your_password
Install Dependencies
uv pip install .
Install MCP Config for Claude
To use with Claude Desktop app:
mcp install main.py
After setup, you can interact with your Superset instance via Claude using natural language requests. Here are some examples:
This plugin offers the following MCP tools that Claude can use:
superset_auth_check_token_validity
- Check if the current access token is validsuperset_auth_refresh_token
- Refresh the access tokensuperset_auth_authenticate_user
- Authenticate with Supersetsuperset_dashboard_list
- List all dashboardssuperset_dashboard_get_by_id
- Get a specific dashboardsuperset_dashboard_create
- Create a new dashboardsuperset_dashboard_update
- Update an existing dashboardsuperset_dashboard_delete
- Delete a dashboardsuperset_chart_list
- List all chartssuperset_chart_get_by_id
- Get a specific chartsuperset_chart_create
- Create a new chartsuperset_chart_update
- Update an existing chartsuperset_chart_delete
- Delete a chartsuperset_database_list
- List all databasessuperset_database_get_by_id
- Get a specific databasesuperset_database_create
- Create a new database connectionsuperset_database_get_tables
- List tables in a databasesuperset_database_schemas
- Get schemas for a databasesuperset_database_test_connection
- Test a database connectionsuperset_database_update
- Update an existing database connectionsuperset_database_delete
- Delete a database connectionsuperset_database_get_catalogs
- Get catalogs for a databasesuperset_database_get_connection
- Get database connection informationsuperset_database_get_function_names
- Get function names supported by a databasesuperset_database_get_related_objects
- Get charts and dashboards associated with a databasesuperset_database_validate_sql
- Validate arbitrary SQL against a databasesuperset_database_validate_parameters
- Validate database connection parameterssuperset_dataset_list
- List all datasetssuperset_dataset_get_by_id
- Get a specific datasetsuperset_dataset_create
- Create a new datasetsuperset_sqllab_execute_query
- Execute a SQL querysuperset_sqllab_get_saved_queries
- List saved SQL queriessuperset_sqllab_format_sql
- Format a SQL querysuperset_sqllab_get_results
- Get query resultssuperset_sqllab_estimate_query_cost
- Estimate query costsuperset_sqllab_export_query_results
- Export query results to CSVsuperset_sqllab_get_bootstrap_data
- Get SQL Lab bootstrap datasuperset_query_list
- List all queriessuperset_query_get_by_id
- Get a specific querysuperset_query_stop
- Stop a running querysuperset_saved_query_get_by_id
- Get a specific saved querysuperset_saved_query_create
- Create a new saved querysuperset_user_get_current
- Get current user infosuperset_user_get_roles
- Get user rolessuperset_activity_get_recent
- Get recent activity datasuperset_menu_get
- Get menu datasuperset_config_get_base_url
- Get the base URL of the Superset instancesuperset_tag_list
- List all tagssuperset_tag_create
- Create a new tagsuperset_tag_get_by_id
- Get a specific tagsuperset_tag_objects
- Get objects associated with tagssuperset_tag_delete
- Delete a tagsuperset_tag_object_add
- Add a tag to an objectsuperset_tag_object_remove
- Remove a tag from an objectsuperset_explore_form_data_create
- Create form data for chart explorationsuperset_explore_form_data_get
- Get form data for chart explorationsuperset_explore_permalink_create
- Create a permalink for chart explorationsuperset_explore_permalink_get
- Get a permalink for chart explorationsuperset_advanced_data_type_convert
- Convert a value to an advanced data typesuperset_advanced_data_type_list
- List available advanced data typesVariable | Description | Default |
---|---|---|
SUPERSET_BASE_URL | URL of your Superset instance | http://localhost:8088 |
SUPERSET_USERNAME | Username for Superset | None |
SUPERSET_PASSWORD | Password for Superset | None |
.env
file.env
file.env
file.superset_token
file in the project directoryContributions are welcome! Please feel free to submit a Pull Request.
MIT