Connector guide7-minute read28 MCP tools7 languages

Databricks to MCP: SQL, Unity Catalog and Jobs in any AI Agent

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

HCBy HelpCode teamUpdated 7 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Databricks

Databricks

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

tools

28

Region

INTL

Category

Databases

Authentication

Bearer Token

Required env vars

DATABRICKS_HOSTDATABRICKS_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Databricks in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Try asking

Example prompts for Databricks

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Databricks · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Databricks, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Databricks

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Setup

  1. Open your Databricks workspace and copy its host from the address bar into DATABRICKS_HOST, without https://, for example dbc-a1b2c3d4-e5f6.cloud.databricks.com (AWS), adb-1234567890123456.7.azuredatabricks.net (Azure) or 1234567890123456.7.gcp.databricks.com (Google Cloud).
  2. Click your user name at the top right, then Settings → Developer → Access tokens → Manage → Generate new token. Give it a comment and a lifetime and copy it into DATABRICKS_TOKEN: Databricks shows it only once. Your workspace admin must allow personal access tokens.
  3. For least privilege, create the token for a service principal that has only the grants the AI needs: USE CATALOG, USE SCHEMA and SELECT on the data, and CAN USE on one SQL warehouse. The connector acts with the rights of the token's user.
  4. Install the connector and run databricks_get_current_user to see who the AI acts as.

Compute costs money, so the AI asks first: Databricks bills compute in DBUs. A query on a stopped SQL warehouse starts it automatically, and a running warehouse or cluster costs money until it stops by itself. Before it runs SQL, the AI checks the warehouse with databricks_list_warehouses; if it is not running, it tells you the query will start it, and how big it is, and waits for your yes. A serverless warehouse starts in seconds.

SQL on a warehouse: databricks_execute_sql runs one statement and returns up to 200 rows by default (at most 10,000). For anything that changes data, tables or permissions (INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, GRANT) the AI shows you the exact statement and waits for an explicit yes; the token's Unity Catalog grants decide what is allowed at all. Long statements keep running in the background: databricks_get_statement follows them and databricks_get_statement_chunk fetches more rows.

Unity Catalog: databricks_list_catalogs, databricks_list_schemas, databricks_list_tables and databricks_get_table show catalogs, schemas, tables, views and their columns, so the AI writes SQL against the right names.

Every other change asks first too: databricks_start_cluster, databricks_terminate_cluster, databricks_start_warehouse, databricks_stop_warehouse, databricks_run_job, databricks_cancel_job_run and databricks_cancel_statement. Terminating a cluster or stopping a warehouse ends the queries and notebooks running on it. This connector deletes nothing.

Jobs: databricks_list_jobs and databricks_get_job show jobs, schedules, parameters and tasks; databricks_run_job starts a run now; databricks_list_job_runs, databricks_get_job_run and databricks_get_run_output show runs, task states, errors and notebook output (kept for 60 days).

Notebooks and files: databricks_list_workspace browses folders and notebooks, databricks_export_notebook returns the source code of a small notebook, databricks_list_volume_files lists a Unity Catalog volume and databricks_list_dbfs lists legacy DBFS paths. The Spark configuration, environment variables and init scripts of clusters are left out because they can contain secrets.

Common errors: 401, or 403 Invalid access token: the token is wrong, expired or revoked, or DATABRICKS_HOST points at another workspace. 403 PERMISSION_DENIED: the user lacks a grant, such as USE CATALOG, SELECT, CAN USE on the warehouse or CAN MANAGE RUN on the job. 404 RESOURCE_DOES_NOT_EXIST: wrong id or name, or Unity Catalog is not enabled for the workspace. 429: too many requests; wait and retry.

The connector does not create, edit or delete clusters, warehouses, jobs, tables or files, does not upload files, and does not cover Delta Live Tables pipelines, MLflow, Model Serving, Genie or Vector Search.

Prerequisites: DATABRICKS_HOST, DATABRICKS_TOKEN

Install the connector locally

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Open http://localhost:3000/connectors/store, pick Databricks and paste in the env vars listed under Prerequisites.

Available tools

ToolWhat it does
databricks_get_current_userGet the Databricks user or service principal behind the token: user name, display name, id, active flag, groups and entitlements
databricks_list_clustersList the workspace's clusters (all-purpose and job clusters) with id, name, state, Spark version, node types, size or autoscale range…
databricks_get_clusterGet one cluster's state and configuration: Spark version, node types, workers or autoscale range, auto-termination, access mode, memory and…
databricks_start_clusterStart a terminated cluster
databricks_terminate_clusterTerminate (stop) a running cluster
databricks_list_warehousesList the SQL warehouses with id, name, state (RUNNING, STOPPED, STARTING), size, type, serverless flag, cluster counts, active sessions and…
databricks_get_warehouseGet one SQL warehouse: state, size, type, serverless flag, scaling range, active sessions, auto-stop minutes, health and its JDBC/ODBC…
databricks_start_warehouseStart a stopped SQL warehouse
databricks_stop_warehouseStop a running SQL warehouse
databricks_execute_sqlRun one SQL statement on a SQL warehouse and return columns and up to row_limit rows (default 200)
databricks_get_statementGet the state and result of a SQL statement started with databricks_execute_sql: status (PENDING, RUNNING, SUCCEEDED, FAILED, CANCELED)…
databricks_get_statement_chunkGet a further chunk of rows of a finished SQL statement, by chunk index (next_chunk_index of the previous answer)
databricks_cancel_statementCancel a running SQL statement
databricks_list_jobsList the workspace's jobs with id, name, creator, schedule and creation time
databricks_get_jobGet one job: name, description, run-as user, schedule or trigger, job parameters, concurrency, timeout and its tasks (key, dependencies…
databricks_run_jobTrigger a run of an existing job now
databricks_list_job_runsList job runs, newest first, with run id, job id, state, start and end time, duration and a link to the run page
databricks_get_job_runGet one job run: state and result, times, trigger, parameters and each task's run_id, state and run page link
databricks_get_run_outputGet the output of one task run: notebook exit value, SQL output, error message and trace, and logs
databricks_cancel_job_runCancel a job run (asynchronously)
databricks_list_catalogsList the Unity Catalog catalogs the user can see, with name, type, owner and comment
databricks_list_schemasList the schemas of a Unity Catalog catalog with full name, owner and comment
databricks_list_tablesList the tables and views of a Unity Catalog schema with full name, type (MANAGED, EXTERNAL, VIEW, MATERIALIZED_VIEW), format, owner and…
databricks_get_tableGet a Unity Catalog table or view by full name: columns with types, nullability, comments and partitioning, table type, format, owner…
databricks_list_workspaceList the contents of a workspace folder: notebooks (with language), files, folders, repos and libraries, with path, object id and…
databricks_export_notebookGet the source code of one notebook or workspace file as text (Python, SQL, Scala or R source)
databricks_list_volume_filesList the files and folders in a Unity Catalog volume directory, with name, size and modification time
databricks_list_dbfsList a legacy DBFS directory (path, size, folder flag, modification time)

Example prompts

  • "Which SQL warehouses do we have, and which ones are running right now?"
  • "Show me the tables in main.sales and the columns of the orders table."
  • "What was our revenue by country last month? Use the serverless warehouse, and tell me first if it has to start."
  • "Did last night's nightly_etl job succeed? If a task failed, show me its error."
  • "Run the weekly_report job now, after you tell me what it does and which cluster it uses."

Next steps

Was this guide helpful?

Your Databricks agent is one click away.

Install the connector, paste the key, prompt your AI client. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Databricks to ChatGPT via MCP

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Connectors

How to Connect Databricks to Claude via MCP

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Connectors

How to Connect Databricks to Cursor via MCP

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Connectors

How to Connect Databricks to Gemini via MCP

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Connectors

How to Connect Databricks to Meta Muse via MCP

Let your AI work with your Databricks workspace: run SQL on a warehouse, explore Unity Catalog catalogs, schemas and tables, check clusters, warehouses, jobs and runs, read notebooks, and start or stop compute or trigger jobs after your confirmation. With a personal access token.

Connectors

Avito to MCP: Manage Avito Ads, Prices and Statistics from any AI Agent

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.