databricks-mcp-toolkit
v0.2.0Model 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.
| Parameter | Type | Description |
|---|---|---|
full | boolean | Return the full cluster objects instead of a summary. |
page_token |
get_cluster
Get the full configuration and state of one cluster.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
cluster_name * | string | |
node_type_id * | string | Instance type from list_node_types. |
spark_version * | string | Runtime key from list_spark_versions, e.g. '16.4.x-scala2.12'. |
autoscale_max_workers | ||
autoscale_min_workers | ||
autotermination_minutes | integer | Idle minutes before auto-terminate. 0 disables it. |
extra_spec | Any other Clusters API create fields, e.g. spark_conf, custom_tags, data_security_mode. | |
num_workers | Fixed worker count. Omit if using autoscale. |
start_cluster
Start a terminated cluster.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string |
restart_cluster
Restart a running cluster. Running commands and notebook state are lost.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string |
resize_cluster
Resize a running cluster to a fixed worker count or an autoscale range.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string |
list_jobs
List jobs (summary: id, name, creator, created time).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
name | Exact job name filter (case-insensitive). | |
page_token |
get_job
Get a job's full settings (tasks, clusters, schedule, parameters).
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | |
page_token | For jobs with more than 100 tasks. |
list_job_runs
List job runs, newest first.
| Parameter | Type | Description |
|---|---|---|
active_only | boolean | |
completed_only | boolean | |
job_id | Omit to list runs across all jobs. | |
limit | integer | |
page_token |
get_run
Get a run's details, including per-task state.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
run_id * | integer |
wait_for_run
Poll a run until it finishes or the timeout passes. Returns its final state.
| Parameter | Type | Description |
|---|---|---|
run_id * | integer | |
poll_interval_seconds | integer | |
timeout_seconds | integer |
run_job
Trigger a run of an existing job. Returns run_id.
| Parameter | Type | Description |
|---|---|---|
job_id * | integer | |
job_parameters | Job-level parameters (preferred for jobs that define them). | |
notebook_params | Legacy notebook widget params for older jobs. |
submit_run
Submit a one-time run without creating a job. Returns run_id.
| Parameter | Type | Description |
|---|---|---|
run_spec * | object | Jobs 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.
| Parameter | Type | Description |
|---|---|---|
run_id * | integer |
list_workspace
List notebooks, files and folders in a workspace directory.
| Parameter | Type | Description |
|---|---|---|
path * | string | Workspace folder, e.g. /Users/me@example.com or /Shared. |
get_workspace_object
Get metadata (type, language, ids) for a workspace path.
| Parameter | Type | Description |
|---|---|---|
path * | string |
export_notebook
Export a notebook's contents as text.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
format | string |
import_notebook
Create or (with overwrite=true) replace a notebook. language is required for SOURCE.
| Parameter | Type | Description |
|---|---|---|
content * | string | Notebook source as plain text (not base64). |
path * | string | |
format | string | |
language | ||
overwrite | boolean |
create_workspace_directory
Create a workspace folder, including missing parents.
| Parameter | Type | Description |
|---|---|---|
path * | string |
list_volume_directory
List files and folders in a Unity Catalog volume directory.
| Parameter | Type | Description |
|---|---|---|
path * | string | e.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).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
max_bytes | integer |
write_volume_file
Write a text file to a volume. Fails if it exists unless overwrite=true.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string | |
overwrite | boolean |
delete_volume_file
Delete a file from a volume.
| Parameter | Type | Description |
|---|---|---|
path * | string |
create_volume_directory
Create a directory in a volume, including missing parents.
| Parameter | Type | Description |
|---|---|---|
path * | string |
list_dbfs
List a legacy DBFS path. Prefer volumes for new data.
| Parameter | Type | Description |
|---|---|---|
path * | string | DBFS path, e.g. /FileStore or dbfs:/tmp. |
read_dbfs_file
Read the start of a text file on legacy DBFS.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
max_bytes | integer |
list_sql_warehouses
List SQL warehouses with their id, state and size.
get_sql_warehouse
Get one SQL warehouse's full configuration and state.
| Parameter | Type | Description |
|---|---|---|
warehouse_id * | string |
start_sql_warehouse
Start a stopped SQL warehouse.
| Parameter | Type | Description |
|---|---|---|
warehouse_id * | string |
stop_sql_warehouse
Stop a SQL warehouse. Running queries on it are cancelled.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
statement * | string | |
catalog | ||
parameters | Named parameters, referenced as :name in the statement. | |
row_limit | integer | |
schema | ||
timeout_seconds | integer | |
warehouse_id | Defaults to DATABRICKS_WAREHOUSE_ID. See list_sql_warehouses. |
get_sql_statement
Get the state and (if finished) results of a SQL statement.
| Parameter | Type | Description |
|---|---|---|
statement_id * | string |
cancel_sql_statement
Cancel a running SQL statement.
| Parameter | Type | Description |
|---|---|---|
statement_id * | string |
list_catalogs
List Unity Catalog catalogs you can see.
| Parameter | Type | Description |
|---|---|---|
max_results | integer | |
page_token |
list_schemas
List schemas in a catalog.
| Parameter | Type | Description |
|---|---|---|
catalog_name * | string | |
max_results | integer | |
page_token |
list_tables
List tables and views in a schema (names and types; use get_table for columns).
| Parameter | Type | Description |
|---|---|---|
catalog_name * | string | |
schema_name * | string | |
max_results | integer | |
page_token |
get_table
Get a table's columns, types, comments, format and storage location.
| Parameter | Type | Description |
|---|---|---|
full_name * | string | catalog.schema.table |
list_volumes
List Unity Catalog volumes in a schema.
| Parameter | Type | Description |
|---|---|---|
catalog_name * | string | |
schema_name * | string | |
max_results | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
command * | string | |
language | string | |
timeout_seconds | integer |
create_execution_context
Create a stateful execution context on a running cluster. Returns its id.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
language | string |
execute_command
Run code in an existing context; variables persist between calls.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
command * | string | |
context_id * | string | |
language | string | |
timeout_seconds | integer | |
wait | boolean | Wait for the result instead of returning the command id. |
get_command_status
Get a command's status and, when finished, its results.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
command_id * | string | |
context_id * | string |
cancel_command
Cancel a running command.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
command_id * | string | |
context_id * | string |
destroy_execution_context
Destroy an execution context and free its resources on the cluster.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
context_id * | string |