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
- A portal with at least one access group
- An account with Databricks for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth (User Authorization) (default) | OAuth | Signs in to Databricks after entering workspaceUrl |
| OAuth (Machine-to-Machine) | Custom credentials | clientId, clientSecret and workspaceUrl |
| Personal Access Token | API token | token |
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:
| Scope | Name | What it allows |
|---|---|---|
all-apis | All APIs | Full access to all Databricks APIs |
sql | SQL | Access to Databricks SQL APIs |
file.files | Files | Access to file management APIs |
clusters | Clusters | Access to cluster management APIs |
offline_access | Offline Access | Obtain refresh tokens for long-lived access |
OAuth (Machine-to-Machine)
To connect, a person enters these values:
clientId: Service principal client IDclientSecret: Service principal OAuth secretworkspaceUrl: 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:
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
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.
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 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. Needspath.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. Needslevel.search_runs: Search for MLflow runs across one or more experiments. NeedsexperimentIds.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. NeedswarehouseIdandstatement.manage_secrets: Manage secret scopes and secrets. Needsaction.manage_dbfs: Interact with the Databricks File System (DBFS). Needsactionandpath.query_serving_endpoint: Send an inference request to a model serving endpoint. NeedsendpointName.run_job: Trigger an immediate run of an existing job, optionally with override parameters. Needsaction.
Destructive tools (7)
manage_job: Create, update, or delete a multi-task workflow job. Needsaction.manage_warehouse: Create, start, stop, or delete a SQL warehouse. Needsaction.manage_pipeline: Create, start, stop, or delete Delta Live Tables pipelines. Needsaction.manage_cluster: Create, edit, start, restart, stop, or permanently delete an Apache Spark cluster. Needsaction.manage_notebook: Import, export, or delete notebooks and create workspace directories. Needsactionandpath.manage_files: Manage files and directories with the current Databricks Files API for workspace files and Unity Catalog Volumes. Needsactionandpath.manage_vector_search: Manage and query Databricks Vector Search endpoints and indexes. Needsaction.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Databricks there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Databricks on metorial.com: the integration overview