MetorialDocs

Set up Databricks in Metorial for Claude, ChatGPT and Cursor

Share Databricks with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 22 tools (10 read-only).

To give your team Databricks in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Databricks integration in a Metorial portal, and each person signs in to Databricks with their own account. Agents can manage Databricks workspaces, clusters, jobs, and data assets. The integration has 22 tools, 10 read-only, 5 write and 7 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Databricks in a portal and how each person connects
  • The 5 OAuth scopes Databricks can request, and what each one allows
  • How to keep the 10 read-only tools and reject the other 12

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (User Authorization) (default)OAuthSigns in to Databricks after entering workspaceUrl
OAuth (Machine-to-Machine)Custom credentialsclientId, clientSecret and workspaceUrl
Personal Access TokenAPI tokentoken

The portal and metorial setup use OAuth (User Authorization) unless someone picks another method.

OAuth (User Authorization)

Before the sign-in, setup asks for:

  • workspaceUrl: Databricks workspace URL (e.g., https://adb-1234567890123456.7.azuredatabricks.net)

People sign in to Databricks and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
all-apisAll APIsFull access to all Databricks APIs
sqlSQLAccess to Databricks SQL APIs
file.filesFilesAccess to file management APIs
clustersClustersAccess to cluster management APIs
offline_accessOffline AccessObtain refresh tokens for long-lived access

OAuth (Machine-to-Machine)

To connect, a person enters these values:

  • clientId: Service principal client ID
  • clientSecret: Service principal OAuth secret
  • workspaceUrl: Databricks workspace URL (e.g., https://adb-1234567890123456.7.azuredatabricks.net)

Personal Access Token

To connect, a person enters:

  • token: Databricks personal access token

Setup settings

Whichever method you pick, setup also asks for:

  • workspaceUrl: Databricks workspace URL (e.g., https://adb-1234567890123456.7.azuredatabricks.net)

Use your own Databricks OAuth app

With your own OAuth app, people see your company's name on the Databricks consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Databricks and copy the Redirect URI.

Register the app with Databricks

Create an OAuth app or client in Databricks and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Databricks integration.

Admin: share Databricks in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Databricks. Under Auth Method, keep OAuth (User Authorization) or pick another. For how members connect, choose Each person connects, so everyone signs in to Databricks as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Databricks.

Choose who gets it

Add the access groups that should see Databricks. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Databricks integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search databricks

Employee: connect Databricks

In the portal

Open Databricks in the catalog

Sign in to your portal and open Databricks. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Databricks sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search databricks
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth (User Authorization). To connect with OAuth (Machine-to-Machine) instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Databricks connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list databricks
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 10 read-only tools, such as list_jobs and get_job_run, and lose the 5 write tools, such as run_job or execute_sql, and the 7 destructive tools, such as manage_job or manage_files.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list databricks
metorial tools <integration-id>
metorial call <integration-id> list_clusters -d '{}'

metorial tools lists the 22 tools, minus any you rejected. list_clusters takes no input. It lists all available Apache Spark clusters in the workspace.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (10)

  • list_experiments: List MLflow experiments in the workspace.
  • list_pipelines: List Delta Live Tables pipelines in the workspace.
  • get_job_run: Retrieve details and status of a specific job run, including task states, timing, and output.
  • browse_workspace: List notebooks, folders, and other objects in a workspace directory. Needs path.
  • list_warehouses: List all SQL warehouses in the workspace with their status and configuration.
  • browse_catalog: Navigate the Unity Catalog hierarchy: list catalogs, schemas within a catalog, tables within a schema, or get details of a specific table. Needs level.
  • search_runs: Search for MLflow runs across one or more experiments. Needs experimentIds.
  • list_jobs: List jobs defined in the workspace.
  • list_clusters: List all available Apache Spark clusters in the workspace.
  • list_serving_endpoints: List all model serving endpoints in the workspace.

Write tools (5)

  • execute_sql: Execute a SQL statement on a SQL warehouse and return the results. Needs warehouseId and statement.
  • manage_secrets: Manage secret scopes and secrets. Needs action.
  • manage_dbfs: Interact with the Databricks File System (DBFS). Needs action and path.
  • query_serving_endpoint: Send an inference request to a model serving endpoint. Needs endpointName.
  • run_job: Trigger an immediate run of an existing job, optionally with override parameters. Needs action.

Destructive tools (7)

  • manage_job: Create, update, or delete a multi-task workflow job. Needs action.
  • manage_warehouse: Create, start, stop, or delete a SQL warehouse. Needs action.
  • manage_pipeline: Create, start, stop, or delete Delta Live Tables pipelines. Needs action.
  • manage_cluster: Create, edit, start, restart, stop, or permanently delete an Apache Spark cluster. Needs action.
  • manage_notebook: Import, export, or delete notebooks and create workspace directories. Needs action and path.
  • manage_files: Manage files and directories with the current Databricks Files API for workspace files and Unity Catalog Volumes. Needs action and path.
  • manage_vector_search: Manage and query Databricks Vector Search endpoints and indexes. Needs action.

Triggers

Databricks has 2 triggers, which fire on events in Databricks:

  • job_run_events: [Polling fallback] Polls for completed, failed, or timed-out job runs.
  • model_registry_events: Triggered by model registry webhook events such as new model versions, stage transitions, and transition requests.

Next steps