How can I make my coding agents and local environment work better with Databricks?
Summary
- A coding agent works better with Databricks when it has four things: an authenticated Databricks CLI, Databricks agent skills for know-how, Databricks-provided MCP servers for live data and tools, and governed model access through Unity Gateway.
- Run
databricks aitools installto add the official Databricks agent skills to detected agents such as Claude Code, Cursor, Codex CLI and OpenCode. Skills teach patterns for bundles, jobs, pipelines, Apps and SQL. - Skills don't connect your data. Add an MCP server such as the Genie One MCP server, which is generally available, so the agent can answer questions from Unity Catalog data.
- The Unity Gateway CLI (
ug) is the recommended way to launch a supported agent through Unity Gateway. It applies your organization's configuration and adds MCP servers and skills withug mcp addandug skills add. - Run the code your agent writes on Databricks compute with Databricks Connect or the Databricks IDE extension, or use Genie Code CLI (Beta), a terminal agent that comes preconfigured for Databricks.
How can I make my coding agents and local environment work better with Databricks?
Give the agent what it can't work out on its own. Out of the box, a coding agent has no Databricks skills, no connection to your Unity Catalog data and no shared team setup. Fix that in layers: authenticate the Databricks CLI, install Databricks agent skills, connect Databricks-provided MCP servers and launch the agent through Unity Gateway. Then run what it writes on Databricks compute with Databricks Connect or the Databricks IDE extension.
What each layer gives your agent
The Databricks docs put the core split in one line: "Skills teach the agent how to work; MCP servers let it do the work." Model access, shared configuration and execution sit around that.
| Layer | What it gives the agent | How to set it up |
|---|---|---|
| Databricks CLI | An authenticated profile that other Databricks tools reuse | Install the CLI, then run databricks auth login |
| Agent skills | Databricks patterns, APIs and workflows to apply while writing code | databricks aitools install |
| MCP servers | Callable tools to query Unity Catalog data, run SQL, search indexes and call Genie Agents | ug mcp add, or the server URL in your agent's MCP settings |
| Unity Gateway | Governed access to models, MCP tools and shared skills, with usage tracking and budgets | Launch the agent with ug |
| Remote execution | Local code that runs and debugs on Databricks compute | Databricks Connect or the Databricks IDE extension |
| Team configuration (Beta) | One published setup of agents, models, MCP servers and skills | An admin publishes it; developers run ug configure |
How Databricks approaches coding agents and local development
Install Databricks agent skills
Agent skills are task-specific instruction files that follow the open Agent Skills standard, and agents load the relevant ones for the task at hand. The Databricks CLI aitools command group detects supported coding agents and installs Databricks skills and plugins:
databricks aitools install
databricks aitools install --scope project
The official set covers areas including Declarative Automation Bundles, Lakeflow Jobs, Spark Declarative Pipelines, Databricks Apps, Lakebase, Model Serving and Unity Catalog. Run databricks aitools update to stay current. The docs mark the older AI Dev Kit skills as deprecated, so uninstall those first to avoid conflicts.
Connect Databricks-provided MCP servers
Installing skills doesn't configure MCP servers for you. Databricks provides MCP servers in the system.ai schema, and each one is a Unity Catalog securable invoked through Unity Gateway, so admins govern who can call it with grants. For analytics questions, start with the Genie One MCP server (system.ai.genie_one_mcp). The Databricks SQL MCP server (system.ai.dbsql) runs specific SQL queries with your Unity Catalog and warehouse permissions, once an account admin enables the Unity Gateway beta.
Launch the agent through Unity Gateway
The Unity Gateway CLI is the recommended connection path. It handles each agent's connection settings and applies your organization's configuration, so you don't edit config files by hand:
uv tool install git+https://github.com/databricks/unity-gateway
ug claude
ug codex, ug opencode and ug pi work the same way. You need Python 3.12 or later, uv, and the Workspace access or Consumer access entitlement. ug usage shows your spend against your budget once an admin links one.
Run the code on Databricks compute
Databricks Connect, a client library built on open-source Spark Connect, runs your Spark API code on Databricks compute while the rest of your code runs locally, so your debugger works as usual. The Databricks IDE extension for Visual Studio Code and Cursor adds bundle deployment, runs local Python files on clusters or serverless compute, and builds a local Python environment matched to your target compute.
Or start with Genie Code CLI (Beta)
Genie Code CLI is a Databricks coding agent that runs in your terminal. It comes with Databricks agent skills installed and uses the Databricks CLI, which you install separately, and Genie to discover and query your data. It's in Beta, and its commands and interfaces change frequently. The docs' guidance: use your own agent through ug if you've already configured it with Databricks agent skills and managed MCP servers. Use Genie Code CLI if you haven't, or if you want the extra tuning Databricks applies to its agent harness.
FAQs
Do agent skills give my agent access to my data?
No. Skills are knowledge that sits in your agent's local skills or plugin directory. MCP servers provide the callable tools for querying data, so most setups install both.
Does my coding agent act with my permissions?
Calls to system.ai MCP servers are governed by Unity Catalog grants and Unity Gateway policies, plus permissions on the underlying resources. Genie Code CLI runs workspace operations under your Databricks identity, but edits to local files and commands on your machine aren't governed by Databricks.
Can my whole team share one setup?
Yes. A workspace admin can publish a coding agent configuration (Beta) that sets the enabled agents, models, MCP servers and skills. Developers apply it with ug configure, and ug checks the published configuration when it launches an agent.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.