Databricks MCP server security: what it can access
Databricks managed MCP servers act with Unity Catalog permissions. See the endpoints, scopes, Beta limits and how to limit access.
Databricks provides managed MCP servers, so there is nothing to install. They run in your workspace, authenticate with OAuth and follow Unity Catalog permissions. Managed servers include Genie, Databricks SQL (dbsql), AI Search, Unity Catalog functions, and connections to services such as Slack, GitHub, Gmail and Google Drive. For a Databricks MCP server, the real question is which Unity Catalog grants the signed-in identity holds, because the server acts with them.
The managed servers
Databricks documents two ways to reach them. Unity Gateway governs servers in the system.ai schema and uses the URL pattern https://<workspace-hostname>/ai-gateway/mcp-services/<mcp-name> and the ai-gateway OAuth scope. Workspace endpoints are separate, are in Public Preview, and the page says their calls bypass Unity Gateway. A workspace admin must enable Managed MCP Servers first.
| Server | Workspace URL path | OAuth scope |
|---|---|---|
| Genie Agent | /api/2.0/mcp/genie/{genie_space_id} | genie |
| AI Search | /api/2.0/mcp/ai-search/{catalog}/{schema}/{index_name} | ai-search |
| Databricks SQL | /api/2.0/mcp/sql | sql |
| Unity Catalog functions | /api/2.0/mcp/functions/{catalog}/{schema}/{function_name} | unity-catalog |
The Unity Gateway set is genie_one_mcp, dbsql, web_search and sandbox, plus slack, github, atlassian, asana, google_drive, google_calendar, gmail and microsoft_365. For the external ones, each user signs in with their own provider account the first time a tool needs it. Databricks says dbsql runs SQL on a SQL warehouse using the caller’s Unity Catalog and warehouse permissions. It doesn’t say whether dbsql is read-only. dbsql, sandbox and web_search are in Beta and need the Enhanced Unity Gateway preview. The documentation also notes that network egress from sandbox isn’t guaranteed. It doesn’t list individual tool names.
You can also add external servers and build custom ones with Databricks Apps. Those have the access you give the app.
What the agent can reach
It reaches whatever the signing-in user can. Databricks ties dbsql to the caller’s permissions and doesn’t say it restricts statement types, so a user who can change a table may be able to change it through the agent. Tables hold text from many sources, and a cell can carry instructions to the agent. Results go to your model provider. The connected Gmail, Slack and Drive servers carry the risks in their own guides, such as the Gmail MCP server guide.
Connect Claude Code
Databricks’ Claude Code page recommends its Unity Gateway CLI, ug. The manual route is the standard command.
claude mcp add --transport http dbsql https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>It then says to run /mcp in Claude Code to sign in with your Databricks account. You can use the default Claude Code OAuth client, or create a custom OAuth app with the redirect URL http://localhost:8080/callback. For model access it mentions a personal access token, or a short-lived OAuth token from databricks auth token that lasts about an hour. For tools, use OAuth sign-in and avoid a long-lived personal access token in a config file.
Limit it in Claude Code
Rules take the form mcp__<server>__<tool>. Because Databricks doesn’t list tool names on those pages, use your client’s tool list to find them, then decide.
{
"permissions": {
"ask": ["mcp__dbsql__*"]
}
}The better limit is the identity. Sign in as a service principal or a user with SELECT only on the data the task needs,.
Limit it in Codex
[mcp_servers.dbsql]
url = "https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>"Add enabled_tools or disabled_tools once you know the names, and run codex mcp login dbsql for OAuth. Databricks’ page lists Codex as supported for its gateway setup guides.
Checklist
- Check Unity Catalog grants for the identity before connecting.
- Prefer a read-only identity for analysis.
- Treat Beta servers as changeable.
- Review which external services are connected.
Checked against the vendor documentation on November 25, 2026. Databricks MCP · Managed MCP servers · Claude Code with Unity Gateway · Claude Code MCP · Codex MCP
What Excellent covers
Excellent doesn’t inspect MCP servers themselves, so it can’t tell you what a server exposes. Its free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, which shows what an agent did after it used a server. For a local report without installing an app, run the free scan. Its script uses Python 3.9 or later when your Mac has it and the shell when it doesn’t, reads the logs locally and makes no network requests. See a sample report.
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Commands sent into an already running Codex shell fall outside that check. Agent coverage · Pricing. Pro is US-only for now.


