databricks-mcp-toolkit

v0.2.0
databricks-mcp-toolkit Checked 2 days ago Published 19 days ago

Model Context Protocol (MCP) server for Databricks: clusters, jobs, SQL, Unity Catalog, volumes and notebooks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_clusters

List pinned and active clusters, plus clusters terminated in the last 30 days.

ParameterTypeDescription
fullbooleanReturn the full cluster objects instead of a summary.
page_token

get_cluster

Get the full configuration and state of one cluster.

ParameterTypeDescription
cluster_id *string

list_spark_versions

List Databricks Runtime versions (spark_version keys) available for new clusters.

list_node_types

List instance types (node_type_id values) available in this workspace.

create_cluster

Create an all-purpose cluster. This starts billable compute.

ParameterTypeDescription
cluster_name *string
node_type_id *stringInstance type from list_node_types.
spark_version *stringRuntime key from list_spark_versions, e.g. '16.4.x-scala2.12'.
autoscale_max_workers
autoscale_min_workers
autotermination_minutesintegerIdle minutes before auto-terminate. 0 disables it.
extra_specAny other Clusters API create fields, e.g. spark_conf, custom_tags, data_security_mode.
num_workersFixed worker count. Omit if using autoscale.

start_cluster

Start a terminated cluster.

ParameterTypeDescription
cluster_id *string

restart_cluster

Restart a running cluster. Running commands and notebook state are lost.

ParameterTypeDescription
cluster_id *string

resize_cluster

Resize a running cluster to a fixed worker count or an autoscale range.

ParameterTypeDescription
cluster_id *string
autoscale_max_workers
autoscale_min_workers
num_workers

terminate_cluster

Terminate (stop) a cluster. Its config is kept and it can be started again.

ParameterTypeDescription
cluster_id *string

list_jobs

List jobs (summary: id, name, creator, created time).

ParameterTypeDescription
limitinteger
nameExact job name filter (case-insensitive).
page_token

get_job

Get a job's full settings (tasks, clusters, schedule, parameters).

ParameterTypeDescription
job_id *integer
page_tokenFor jobs with more than 100 tasks.

list_job_runs

List job runs, newest first.

ParameterTypeDescription
active_onlyboolean
completed_onlyboolean
job_idOmit to list runs across all jobs.
limitinteger
page_token

get_run

Get a run's details, including per-task state.

ParameterTypeDescription
run_id *integer
page_token

get_run_output

Get a run's output: notebook exit value, logs, error and trace. For a multi-task run, returns each task's output.

ParameterTypeDescription
run_id *integer

wait_for_run

Poll a run until it finishes or the timeout passes. Returns its final state.

ParameterTypeDescription
run_id *integer
poll_interval_secondsinteger
timeout_secondsinteger

run_job

Trigger a run of an existing job. Returns run_id.

ParameterTypeDescription
job_id *integer
job_parametersJob-level parameters (preferred for jobs that define them).
notebook_paramsLegacy notebook widget params for older jobs.

submit_run

Submit a one-time run without creating a job. Returns run_id.

ParameterTypeDescription
run_spec *objectJobs API runs/submit body. Needs 'tasks': a list of {task_key, notebook_task | spark_python_task | sql_task | ..., plus existing_cluster_id, new_cluster, or environment_key for serverless}. Optional:…

cancel_run

Cancel an active run.

ParameterTypeDescription
run_id *integer

list_workspace

List notebooks, files and folders in a workspace directory.

ParameterTypeDescription
path *stringWorkspace folder, e.g. /Users/me@example.com or /Shared.

get_workspace_object

Get metadata (type, language, ids) for a workspace path.

ParameterTypeDescription
path *string

export_notebook

Export a notebook's contents as text.

ParameterTypeDescription
path *string
formatstring

import_notebook

Create or (with overwrite=true) replace a notebook. language is required for SOURCE.

ParameterTypeDescription
content *stringNotebook source as plain text (not base64).
path *string
formatstring
language
overwriteboolean

create_workspace_directory

Create a workspace folder, including missing parents.

ParameterTypeDescription
path *string

list_volume_directory

List files and folders in a Unity Catalog volume directory.

ParameterTypeDescription
path *stringe.g. /Volumes/main/default/raw/2026/
page_token

read_volume_file

Read the start of a text file in a volume (up to max_bytes).

ParameterTypeDescription
path *string
max_bytesinteger

write_volume_file

Write a text file to a volume. Fails if it exists unless overwrite=true.

ParameterTypeDescription
content *string
path *string
overwriteboolean

delete_volume_file

Delete a file from a volume.

ParameterTypeDescription
path *string

create_volume_directory

Create a directory in a volume, including missing parents.

ParameterTypeDescription
path *string

list_dbfs

List a legacy DBFS path. Prefer volumes for new data.

ParameterTypeDescription
path *stringDBFS path, e.g. /FileStore or dbfs:/tmp.

read_dbfs_file

Read the start of a text file on legacy DBFS.

ParameterTypeDescription
path *string
max_bytesinteger

list_sql_warehouses

List SQL warehouses with their id, state and size.

get_sql_warehouse

Get one SQL warehouse's full configuration and state.

ParameterTypeDescription
warehouse_id *string

start_sql_warehouse

Start a stopped SQL warehouse.

ParameterTypeDescription
warehouse_id *string

stop_sql_warehouse

Stop a SQL warehouse. Running queries on it are cancelled.

ParameterTypeDescription
warehouse_id *string

execute_sql

Run a SQL statement on a SQL warehouse and return columns + rows. If it outlives timeout_seconds you get a statement_id to poll with get_sql_statement.

ParameterTypeDescription
statement *string
catalog
parametersNamed parameters, referenced as :name in the statement.
row_limitinteger
schema
timeout_secondsinteger
warehouse_idDefaults to DATABRICKS_WAREHOUSE_ID. See list_sql_warehouses.

get_sql_statement

Get the state and (if finished) results of a SQL statement.

ParameterTypeDescription
statement_id *string

cancel_sql_statement

Cancel a running SQL statement.

ParameterTypeDescription
statement_id *string

list_catalogs

List Unity Catalog catalogs you can see.

ParameterTypeDescription
max_resultsinteger
page_token

list_schemas

List schemas in a catalog.

ParameterTypeDescription
catalog_name *string
max_resultsinteger
page_token

list_tables

List tables and views in a schema (names and types; use get_table for columns).

ParameterTypeDescription
catalog_name *string
schema_name *string
max_resultsinteger
page_token

get_table

Get a table's columns, types, comments, format and storage location.

ParameterTypeDescription
full_name *stringcatalog.schema.table

list_volumes

List Unity Catalog volumes in a schema.

ParameterTypeDescription
catalog_name *string
schema_name *string
max_resultsinteger
page_token

run_command

Run one snippet of code on a running cluster and return its result. Creates and destroys a throwaway context; use create_execution_context to keep state between calls.

ParameterTypeDescription
cluster_id *string
command *string
languagestring
timeout_secondsinteger

create_execution_context

Create a stateful execution context on a running cluster. Returns its id.

ParameterTypeDescription
cluster_id *string
languagestring

execute_command

Run code in an existing context; variables persist between calls.

ParameterTypeDescription
cluster_id *string
command *string
context_id *string
languagestring
timeout_secondsinteger
waitbooleanWait for the result instead of returning the command id.

get_command_status

Get a command's status and, when finished, its results.

ParameterTypeDescription
cluster_id *string
command_id *string
context_id *string

cancel_command

Cancel a running command.

ParameterTypeDescription
cluster_id *string
command_id *string
context_id *string

destroy_execution_context

Destroy an execution context and free its resources on the cluster.

ParameterTypeDescription
cluster_id *string
context_id *string