Starburst Galaxy

  •  Get started

  •  Working with data

  •  AI workflows

  •  Data engineering

  •  Developer tools

  •  Cluster administration

  •  Security and compliance

  •  Troubleshooting

  • Galaxy status

  •  Reference

  • Model Context Protocol (MCP) on Starburst Galaxy #

    Starburst Galaxy hosted Model Context Protocol (MCP) functionality enables AI assistants and applications to connect to your Galaxy data infrastructure using the MCP standard. With the MCP server, you can allow AI tools to discover your clusters and catalogs, execute read-only SQL queries against your data through natural language interactions, and more.

    MCP on Starburst Galaxy provides a secure, standardized way to integrate Galaxy with popular AI development tools like Claude Desktop, Cline, GitHub Copilot, and other MCP-compatible applications.

    Use cases #

    The Starburst Galaxy MCP server enables the following workflows:

    • Data exploration: Allow AI assistants to help you discover and understand your data structures, schemas, and catalog organization.
    • Query assistance: Enable AI tools to help you write, optimize, and execute SQL queries against your Galaxy data.
    • Documentation generation: Use AI to automatically document data schemas, table structures, and catalog contents.
    • Data analysis: Perform read-only analysis and reporting through natural language queries to AI assistants.
    • Development workflows: Integrate Galaxy queries into your AI-powered development environment for rapid prototyping and testing.

    Prerequisites #

    Before you begin using the Starburst Galaxy MCP server, you must have:

    • A Starburst Galaxy account in the Mission Critical, Enterprise, or free trial tier
    • An MCP-compatible client application (such as Claude Desktop, Cline, or LibreChat)
    • Your Galaxy account (for example, mycompany.galaxy.starburst.io)
    • For OAuth authentication (recommended), one or more configured OAuth clients

    Authentication #

    The Starburst Galaxy MCP server supports two authentication methods:

    Basic authentication #

    Use your Galaxy username and password to authenticate. Basic authentication is suitable for testing and development purposes.

    You can also use a service account’s credentials for programmatic access.

    Submit credentials as an HTTP Basic authentication header base64 encoded. Use the format <email>:<password> (before encoding).

    Note that public API tokens are not supported for MCP authentication.

    Use OAuth 2.0 with an OAuth client for production deployments and shared environments. This method complies with the MCP Authorization standard and provides better security for access.

    Galaxy supports MCP authorization protocol versions 2025-06-18 and above.

    Requirements:

    Configuration #

    The following examples show how to configure the Starburst Galaxy MCP server in popular MCP client applications. Replace <account-name> with your Galaxy account name.

    The MCP server URL format is:

    https://<account-name>.mcp.galaxy.starburst.io
    

    Claude Code #

    Add the following configuration to your Claude Code settings file:

    Basic authentication:

    {
      "mcpServers": {
        "my-mcp-server-name": {
          "type": "http",
          "url": "https://<account-name>.mcp.galaxy.starburst.io",
          "headers": {
            "Authorization": "Basic <base64_encoded_credentials>"
          }
        }
      }
    }
    

    Save the configuration file and restart Claude.

    Generic MCP client #

    For any MCP-compatible client that supports custom server configuration, use the following format:

    Server URL: https://<account-name>.mcp.galaxy.starburst.io

    Basic authentication:

    • Username: Your Galaxy email (may be a service account’s email)
    • Password: Your Galaxy password
    • Optionally, a custom header of Authorization: Basic <base64_encoded_credentials>

    OAuth 2.0 authentication:

    • Client ID: Your OAuth client ID from Galaxy
    • Client Secret: Your OAuth client secret from Galaxy
    • Scope(s): galaxy.mcp (the only accepted scope for MCP)
    • Authorization endpoint: https://<account-name>.galaxy.starburst.io/oauth/v2/authorize
    • Token endpoint: https://<account-name>.galaxy.starburst.io/oauth/v2/token

    Refer to your MCP client’s documentation for specific configuration steps.

    Limits and constraints #

    The Starburst Galaxy MCP server has the following limits and constraints:

    Query operations:

    • Result sets are limited to 100KB.
    • Only read-only SQL statements are supported (SELECT, SHOW, EXPLAIN).
    • Write operations (INSERT, UPDATE, DELETE, CREATE, DROP, etc.) are not permitted.

    Authentication:

    • OAuth Dynamic Client Registration (DCR) is not supported; you must use existing Galaxy OAuth clients.
    • When setting up an OAuth connection, you must use the galaxy.mcp scope.

    Access control:

    • Users can only access clusters, catalogs, and data permitted by their role’s privileges.
    • Currently, setting a custom role is not supported. The default role assigned to the authenticated user is the role used for MCP operations.