databricks_ops_mcp
Provides tools for interacting with Databricks, enabling management of jobs, SQL execution, notebooks, Unity Catalog governance, lineage, clusters, and DLT pipelines.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@databricks_ops_mcpShow me failed job runs from today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
databricks_ops_mcp
A governed MCP server exposing Databricks operations as tools — jobs orchestration, SQL execution, notebook creation, Unity Catalog governance, lineage, clusters, and DLT pipelines. Built as a reuse template: same pattern as a SharePoint/Jira MCP server, pointed at the Databricks REST API.
Tools (17)
Category | Read-only | Write-gated |
Jobs | list_jobs, get_run_status, list_failed_runs | run_job, repair_run |
SQL | preview_table | execute_sql (DML/DDL only; SELECT is free) |
Workspace | export_notebook, list_workspace | create_notebook |
Unity Catalog | list_tables, get_table_grants, get_table_lineage | — |
Compute/DLT | list_clusters, list_pipelines | restart_cluster, start_pipeline_update |
Related MCP server: Databricks MCP Server
Safety model
Dry-run by default: every write tool returns a validated dry-run message until
DBX_WRITE_ENABLED=true. Promote per environment (DEV=true, PROD=false + approval flow).Audit log: every tool call appends a JSONL record (timestamp, tool, payload).
Context safety: results capped at
DBX_MAX_RESULT_ROWS/DBX_MAX_RESULT_CHARS.Read-only SQL enforcement: statements must start with SELECT/SHOW/DESCRIBE/EXPLAIN/WITH unless writes are enabled; multi-statement submissions are rejected.
Placeholders only: no real hostnames, principals, or credentials anywhere in code. Everything comes from environment variables.
Setup
pip install -r requirements.txt
cp .env.example .env # fill in host, token (PAT or OAuth M2M), warehouse IDRun
# Local (stdio) — for Claude Desktop / Claude Code
python server.py
# Remote (streamable HTTP) — for Databricks Apps / ECS / Lambda-backed deployments
MCP_TRANSPORT=http python server.pyClaude Desktop config
{
"mcpServers": {
"databricks_ops": {
"command": "python",
"args": ["/path/to/databricks_ops_mcp/server.py"],
"env": {
"DATABRICKS_HOST": "https://workspace_placeholder.cloud.databricks.com",
"DATABRICKS_TOKEN": "token_placeholder",
"DATABRICKS_WAREHOUSE_ID": "warehouse_id_placeholder",
"DBX_WRITE_ENABLED": "false"
}
}
}
}Claude Code
claude mcp add databricks_ops -- python /path/to/databricks_ops_mcp/server.pyBedrock / custom agents
Run with MCP_TRANSPORT=http behind your FastAPI gateway or as a Databricks App;
point the agent's MCP client at the streamable HTTP endpoint. For Databricks Apps
hosting, replace the bearer token with app OAuth (on-behalf-of user) so Unity
Catalog enforces per-user permissions.
Example flows
"List failed runs from today, get the status of the worst one, and repair it" →
list_failed_runs→get_run_status→repair_run(approval-gated in PROD)"Create a notebook that deduplicates the claims feed and preview the target table" →
create_notebook→preview_table"What feeds this table and who can modify it?" →
get_table_lineage+get_table_grants(Conversational Data Steward core)
Extension roadmap
create_job_from_spec— NL → metadata-driven pipeline config → Jobs APIColumn-level lineage + cross-platform trace into MSTR cubes (second MCP server)
deploy_bundlevia Asset Bundles for Git-first production deploymentApproval elicitation (
ctx.elicit) on write tools instead of a global flagCost tools over
/api/2.0/usage(billing usage export)
Project layout
databricks_ops_mcp/
├── server.py # FastMCP/MCPServer registration (SDK 1.x & 2.x compatible)
├── client.py # Shared async REST client, errors, audit, truncation
├── config.py # Env-driven settings and guardrails
├── tools/
│ ├── jobs.py # /api/2.2/jobs/*
│ ├── sql.py # /api/2.0/sql/statements (submit → poll → fetch)
│ ├── workspace.py # /api/2.0/workspace/* (notebook import/export)
│ ├── unity_catalog.py # /api/2.1/unity-catalog/* + lineage-tracking
│ └── compute.py # /api/2.1/clusters/*, /api/2.0/pipelines/*
├── requirements.txt
└── .env.exampleThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that implements the Model Completion Protocol (MCP) to allow LLMs to interact with Databricks resources including clusters, jobs, notebooks, and SQL execution through natural language.Last updated1148MIT
- AlicenseBqualityDmaintenanceA fixed Model Completion Protocol (MCP) server that enables LLMs like Claude Code to interact with Databricks functionality including clusters, jobs, notebooks, and SQL execution through natural language commands.Last updated195MIT
- AlicenseCqualityDmaintenanceA read-only MCP server that enables users to query Databricks SQL, browse metadata, and monitor Delta Lake tables. It also supports tracking Databricks Jobs, DLT Pipelines, and cluster metrics through natural language interfaces.Last updated254MIT
- Alicense-qualityDmaintenanceExposes Databricks REST API as MCP tools for managing clusters, jobs, notebooks, SQL queries, Unity Catalog, and more. Enables AI agents to interact with Databricks workspaces through natural language.Last updated49MIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sameet1308/databricks_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server