Connect Claude, Cursor, Codex and ChatGPT to Databricks MCP
Since 27 October 2026, Claude Code, Claude, Codex, Cursor and ChatGPT connect to Databricks MCP servers with a ready-made OAuth client ID, so no admin has to create an OAuth app first. The address each one needs, the exact command or setting for each client, what you must already have, and what to check when sign-in fails.
Tecyfy · Published · 7 min read

Since 27 October 2026, Claude Code, Claude, Codex, Cursor and ChatGPT can sign in to a Databricks MCP serverModel Context ProtocolAn open standard for connecting AI applications to tools and data. A system offered once as an MCP server works in any application that speaks MCP. with an OAuthOAuthThe standard way to let one app act for you at another service without giving it your password; the app gets a limited, revocable access token instead. MCP servers use it to let AI agents sign in. client that Databricks already made for each of them. You paste a client ID that is a web address, sign in with your Databricks account, and the agent can call the server's tools. Before that date, an account admin had to create an OAuth app for the agent first.
This page gives the one address every client needs, then the exact setup for each of the 5. For which Databricks servers exist and how they compare with Snowflake's, BigQuery's and Fabric's, see MCP servers for Databricks, Snowflake, BigQuery and Fabric.
Why the client ID matters
Databricks MCP servers do not support dynamic client registration, the step where an MCP client registers itself on
the fly. The client has to arrive with a client ID Databricks already knows: one of the default IDs below, or the ID
of an OAuth app an admin made. Databricks also asks clients to request offline_access, which gets them refresh
tokens.
Each default ID is a Client ID Metadata Document URL. Enter the full address as the client ID; there is no client secret.
| Agent | Client ID |
|---|---|
| Claude Code | https://claude.ai/oauth/claude-code-client-metadata |
| Claude (desktop and web) | https://claude.ai/oauth/mcp-oauth-client-metadata |
| Codex | https://chatgpt.com/oauth/codex/client.json |
| Cursor | https://cursor.com/oauth/mcp-client.json |
| ChatGPT (desktop and web) | https://chatgpt.com/oauth/client.json |
What you need first
2 things on the Databricks side, whatever the agent:
- Permission to call that MCP. Each server is a Unity CatalogUnity CatalogDatabricks' governance layer: one place that names every table, file volume, model and function as catalog.schema.object, decides who may use each, and records lineage and access. object, and you need the grant to call it. A server that signs in to another service per user (GitHub, Slack) also asks you to sign in to that service the first time.
- The Consumer access or Workspace access entitlement on your Databricks user.
The default apps are on unless an account admin turned off AI assistant OAuth Apps on the account console's
Previews page. 3 of the system servers, system.ai.dbsql, system.ai.sandbox and system.ai.web_search, also need
an account admin to turn on the Unity Gateway beta.
The address of the server
Every client below takes the same address. Find the server under Unity Gateway > MCPs in your workspace and fill in its 3-part name:
https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>?o=<workspace-id>
For Genie One, which answers questions in business words, the name is system.ai.genie_one_mcp. For SQL, it is
system.ai.dbsql. Keep the ?o=<workspace-id> at the end.
Claude Code
One command, then a sign-in:
claude mcp add --transport http --scope user \
--client-id https://claude.ai/oauth/claude-code-client-metadata \
--callback-port 3118 \
databricks-tools \
"https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp?o=<workspace-id>"
Type /mcp in Claude Code, pick databricks-tools and sign in. Our Claude Code MCP guide
explains what --scope user and the other scopes mean.
If you have Databricks' Unity Gateway CLI, ug mcp add --agents claude does the same from a picker and keeps the
credentials fresh.
Codex
Register the server, then sign in with the 2 scopes Databricks asks for:
codex mcp add databricks-tools \
--url "https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp?o=<workspace-id>" \
--oauth-client-id https://chatgpt.com/oauth/codex/client.json
codex mcp login databricks-tools --scopes ai-gateway,offline_access
Reopen Codex. The setting applies to both the terminal agent and the Codex desktop app.
Cursor
Cursor reads servers from ~/.cursor/mcp.json, and a server that needs a fixed client ID takes it in an auth block:
{
"mcpServers": {
"databricks-tools": {
"url": "https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp?o=<workspace-id>",
"auth": {
"CLIENT_ID": "https://cursor.com/oauth/mcp-client.json",
"scopes": ["ai-gateway", "offline_access"]
}
}
}
}
Merge it with the servers already in the file, restart Cursor and sign in when it asks. The auth block is Cursor's
own setting for providers with a fixed client ID; the 2 scopes are the ones Databricks names for its other clients.
The shorter route: install Cursor Agent (the cursor-agent command) and run ug mcp add --agents cursor, which
writes the same file for both the editor and the terminal agent.
Claude on the web or the desktop app
In Claude, open Settings > Connectors > Add custom connector. Paste the server's address, enter
https://claude.ai/oauth/mcp-oauth-client-metadata as the OAuth client ID, click Add and sign in. In a
conversation, turn the connector on and ask Claude to call one of its tools. With system.ai.dbsql, SELECT 1 AS result is a safe first call.
ChatGPT
ChatGPT connects through an MCP connection in Developer Mode, which your account and your workspace's policy have to
allow. Add a connection with the server's address, choose OAuth, enter https://chatgpt.com/oauth/client.json as the
client ID, save and sign in. Then pick the connection in a conversation and ask for a read-only tool.
If your Databricks workspace uses IP access lists, ChatGPT's outbound IP addresses must be on the list.
What the agent can do once it is in
Unity Catalog applies your existing data permissions to each tool call, so the agent sees what you can see and no
more. It also means it can do what you can do: system.ai.dbsql runs SQL with your Unity Catalog and warehouse
permissions. Start with Genie One, which answers questions, and read
how to vet an MCP server before adding one that writes. To route the agent's models
and tool calls through the same budgets and logs, see Databricks Unity Gateway.
When sign-in fails
- Sign-in does not start, or Databricks rejects the client. Databricks accepts only a client ID it knows. Check that the client ID is the full address from the table above, not a short name.
- Sign-in works, then a tool asks you to log in. The server is reaching another service on your behalf. Open the link it returns, sign in to that service, and call the tool again: the 2 sign-ins are separate.
- It worked yesterday and fails today. An account admin may have turned off the AI assistant OAuth apps, which ends every connection made with them. Any change to an OAuth app can take up to 30 minutes to apply.
system.ai.dbsql,sandboxorweb_searchwill not work. They need an account admin to turn on the Unity Gateway beta.
Questions
- How do I connect Claude Code to a Databricks MCP server?
- Run claude mcp add --transport http --scope user --client-id https://claude.ai/oauth/claude-code-client-metadata --callback-port 3118 databricks-tools followed by the server's address, https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>?o=<workspace-id>. Then type /mcp in Claude Code and sign in with your Databricks account.
- How do I add a Databricks MCP server to Cursor?
- Add the server to ~/.cursor/mcp.json with its url and an auth block whose CLIENT_ID is Databricks' default Cursor client ID, https://cursor.com/oauth/mcp-client.json, then restart Cursor and sign in. Or install Cursor Agent and run ug mcp add --agents cursor, which writes the same file for you.
- How do I connect Codex to Databricks MCP?
- Run codex mcp add databricks-tools --url followed by the server's address and --oauth-client-id https://chatgpt.com/oauth/codex/client.json, then codex mcp login databricks-tools --scopes ai-gateway,offline_access. The setting applies to both the Codex terminal agent and the desktop app.
- Can ChatGPT connect to Databricks?
- Yes, through an MCP connection in ChatGPT's Developer Mode, if your account and workspace policy allow it. Add the server's address, choose OAuth, and enter the client ID https://chatgpt.com/oauth/client.json. If your Databricks workspace uses IP access lists, ChatGPT's outbound addresses must be allowed.
- Does a Databricks admin need to create an OAuth app for Claude or Cursor?
- No, not since 27 October 2026. Databricks ships OAuth apps for ChatGPT, Codex, Claude, Claude Code and Cursor, turned on by default, with no client secret. An account admin can still turn them off for the whole account, which breaks existing connections.
- Why does my agent fail to sign in to Databricks MCP?
- Databricks MCP servers do not support dynamic client registration, so the client must send a known client ID: use the default ID for your agent or an admin-made OAuth app. Also check that you have permission to call that MCP and the Consumer access or Workspace access entitlement, and allow up to 30 minutes after any change to an OAuth app.