Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Databases - official Databricks server

Databricks SQL MCP server

A Databricks-provided MCP (system.ai.dbsql) that lets agents run AI-generated SQL on a SQL warehouse against Unity Catalog tables, with access governed by the caller's Unity Catalog and warehouse permissions. Queries run asynchronously and the agent polls for results. It is served from your own instance at https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.dbsql with OAuth or API key auth.

Last verified 1 tool5 sources

Install

Terminal
claude mcp add --transport http --scope user \
  --client-id claude-code --callback-port 3118 \
  databricks-tools \
  "https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service-name>"
TOML
[mcp_servers.dbsql]
url = "https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.dbsql"
http_headers = { Authorization = "Bearer <databricks-pat>" }
JSON
{
  "mcpServers": {
    "dbsql": {
      "url": "https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.dbsql",
      "headers": {
        "Authorization": "Bearer <databricks-pat>"
      }
    }
  }
}

Generic

Snippet
https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.dbsql

Tools

execute_sql
Execute a SQL query; accepts an optional warehouse_id _meta parameter (name taken from the docs' Python example).

As documented on October 17, 2026. A running server reports its current list through tools/list.

Notes and caveats

  • Requires an account admin to enable the Unity Gateway beta from the account console Previews page.
  • Reads and writes are allowed by default; set disallow_writes to true in the built-in system.ai.dbsql_policy policy to make it read-only.
  • The Codex and Cursor snippets are the docs' personal-access-token configs, which the docs label for local testing; OAuth variants are also documented.
  • For Claude Code, replace <catalog>.<schema>.<service-name> with system.ai.dbsql.
  • Uses Databricks SQL pricing.
  • A legacy workspace endpoint https://<workspace-hostname>/api/2.0/mcp/sql (sql OAuth scope, Managed MCP Servers workspace preview) remains for existing integrations, alongside legacy AI Search and Unity Catalog functions endpoints.
  • Databricks also offers system.ai.sandbox (Python, SQL or shell code in an isolated environment with no network egress, Unity Gateway beta) and proxied MCPs for Slack, GitHub, Atlassian, Google Workspace and Microsoft 365.
  • Those MCPs connect to other vendors' services.

FAQ

What does the Databricks SQL MCP server do?

A Databricks-provided MCP (system.ai.dbsql) that lets agents run AI-generated SQL on a SQL warehouse against Unity Catalog tables, with access governed by the caller's Unity Catalog and warehouse permissions. Queries run asynchronously and the agent polls for results. The vendor documents 1 tool, including execute_sql.

How do I add the Databricks SQL MCP server to Claude Code?

Databricks documents a Claude Code config; copy it from the Claude Code section of this page. Snippets for Codex, Cursor and Generic are there too.

Does the Databricks SQL MCP server need authentication?

Yes, OAuth or API key. Transport: Streamable HTTP. Status: Beta, last checked October 17, 2026.

Sources

Last verified against 5 Databricks pages, then re-checked independently.

Newsletter

New MCP servers, the week they ship

One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.