> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Databricks

> Query your lakehouse, jobs and pipelines from an investigation.

Connect Databricks as a [connector](https://docs.incident.io/nexus/extensions/connectors.md) to let incident.io's agents query tables and check jobs and pipelines in your workspace.

Databricks offers two ways in:

* **[MCP server](#connect-the-mcp-server)** Recommended: Databricks maintains the tools.
* **[HTTP API](#connect-the-http-api)**: the workspace REST API, for when you want to choose exactly which operations agents can call.

**What you'll need:**

* Your workspace hostname: the first part of the URL you sign in to Databricks at, such as `example.cloud.databricks.com`. The workspace ID is the number after `o=` in that URL.
* A personal access token for a Databricks user with access to the data agents should query. Create one from your username in the top bar under **Settings → Developer → Access tokens**, with **Generate new token**.
* The **Manage Nexus sources** permission in incident.io.

## Connect the MCP server

Databricks serves its [managed MCP servers](https://docs.databricks.com/aws/en/generative-ai/mcp/managed-mcp) from your workspace. These steps connect Databricks SQL through Unity Gateway. Other servers, such as Genie spaces and Unity Catalog functions, connect the same way with their own URLs.

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **MCP server**.
2. Leave network access as **Public internet**, and give the connector a display name such as `Databricks`.
3. Enter `https://<workspace hostname>/ai-gateway/mcp-services/system.ai.dbsql?o=<workspace ID>` as the server URL, and click **Check URL**.
4. Under **Authentication**, choose **Bearer token** and enter your personal access token.
5. Review which tools are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

## Connect the HTTP API

Databricks doesn't publish an OpenAPI document for its REST API, so write one that describes the [endpoints](https://docs.databricks.com/api/workspace/introduction) agents should call, such as listing job runs.

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **HTTP API**.
2. Paste your OpenAPI document.
3. Enter `https://<workspace hostname>` as the base URL.
4. Under authentication, choose **Bearer token** and enter your personal access token.
5. Test the connection, review which operations are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

See [Connectors](https://docs.incident.io/nexus/extensions/connectors.md#permissions) for how to control which tools agents can call, and from where.

## Pair it with a skill

Agents work best with a connector when it's paired with a [skill](https://docs.incident.io/nexus/extensions/plugins.md). For Databricks, say which catalogs, schemas and tables hold what, which jobs and pipelines feed them, and example queries for the questions you ask during incidents.
