Integrate MindsDB with Astra DB Serverless

MindsDB provides a federated query engine, aggregating all of your data sources into a unified search experience. You can use Astra DB Serverless databases as a data source for MindsDB.

Prepare Astra

  1. Create an Astra DB Serverless database or use an existing one, and load data that you want to query through MindsDB.

  2. Generate an application token with a role that can read from your database.

  3. Download your database’s Secure Connect Bundle (SCB).

Connect MindsDB

  1. If you haven’t done so already, install MindsDB and the Astra dependencies.

    The MindsDB integration uses the ScyllaDB Python driver, which is a fork of the DataStax Python driver.

  2. Use the MindsDB API’s CREATE DATABASE command to connect your Astra data source:

    CREATE DATABASE astra_connection
    WITH
        engine = "astra",
        parameters = {
            "user": "token",
            "password": "APPLICATION_TOKEN",
            "secure_connect_bundle": "PATH/TO/SCB.zip"
        };

    Replace the following:

    • APPLICATION_TOKEN: Your Astra application token.

    • PATH/TO/SCB.zip: The path to your database’s SCB zip file.

Query your Astra data source

After you establish the connection, you can query your Astra DB Serverless database. For example:

SELECT *
FROM astra_connection.keystore.example_table
LIMIT 10;

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax, an IBM Company | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com