docs/features/feature-guides/ask-datahub-plugins/databricks.md
import FeatureAvailability from '@site/src/components/FeatureAvailability';
Note: Ask DataHub Plugins is currently in Private Beta. To enable this feature, please reach out to your DataHub customer support representative.
The Databricks Plugin connects Ask DataHub to your Databricks workspace via the Databricks MCP server, enabling conversational analytics directly from the chat. Like the Snowflake plugin, DataHub acts as the semantic layer — finding the right data — while Databricks serves as the data layer — executing queries and returning results.
With the Databricks plugin enabled, Ask DataHub can:
Because the plugin uses OAuth, each user authenticates with their own Databricks account. Users only see data they are authorized to access.
Example prompts:
The Databricks plugin uses User OAuth authentication — each user authenticates with their own Databricks account. Setup involves creating an OAuth app connection in Databricks, then configuring the plugin in DataHub.
| Field | Value |
|---|---|
| Application Name | DataHub (or any name you'll recognize) |
| Redirect URLs | https://<your-datahub-url>/integrations/oauth/callback |
| Access scopes | Check SQL |
| Generate a client secret | Checked |
:::caution Redirect URL
The Redirect URL must match the OAuth Callback URL shown in the DataHub plugin creation form exactly (e.g. https://your-org.acryl.io/integrations/oauth/callback). You can copy this URL from the DataHub form when creating the plugin in Step 3.
:::
After creating the connection, a dialog will show your Client ID and Client Secret. Copy both immediately — the client secret won't be shown again.
<p align="center"> </p>| Field | Value |
|---|---|
| Name | Databricks |
| Description | A description for the plugin |
| MCP Server URL | https://<your-workspace-hostname>/api/2.0/mcp/sql |
| Authentication Type | User OAuth (Each user authenticates) |
| Field | Value |
|---|---|
| Client ID | From Step 2 |
| Client Secret | From Step 2 |
| Default Scopes | sql (minimum required) |
:::info Access Scopes
The sql scope is the minimum required for Ask DataHub to execute queries. If you selected All APIs when creating the Databricks app connection, additional scopes will be available — select only what you need.
:::
Navigate to Settings > My AI Settings, find the Databricks plugin, and click Connect. You'll be redirected to Databricks to authenticate, then back to DataHub. See the overview for more details.
sql scope was selected when creating the app connection in Databricks