
Databricks MCP Server
io.github.pramodbhatofficial由 GitHub 帳號 pramodbhatofficial 發布v0.1.0更新於 Oct 24, 2026
263 tools for Databricks: Unity Catalog, SQL, Compute, Jobs, Serving, and more.
概覽
為 AI 助理提供 263 個 Databricks 工具,涵蓋 Unity Catalog、SQL、運算、作業、管線、模型服務等。
- 可以做什麼
- 這是以官方 Databricks Python SDK 為基礎的本機 MCP 伺服器,在 28 個服務領域中提供 263 個工具,涵蓋 Unity Catalog、SQL 倉儲與查詢、叢集、作業、DLT 管線、模型服務、向量搜尋、Apps、Lakebase、儀表板、Genie、密鑰、IAM、實驗與 Delta Sharing。它還提供 8 個提示範本,用於探索目錄、查詢資料、偵錯失敗作業、部署模型與檢閱權限等引導式流程,並提供唯讀的 MCP 資源(工作區資訊與工具指南)。可依模組選擇性載入以減少工具數量。
- 適用情境
- 當助理需要直接操作 Databricks 工作區時使用:瀏覽目錄與資料表、執行 SQL、檢查或修復作業、管理叢集與權限,或處理 MLflow 實驗與模型部署。由於完整的 263 個工具可能讓用戶端不堪負荷,建議依模組選擇性載入。
- 執行需求
- 需要本機 Python 執行環境,從 PyPI 安裝 databricks-sdk-mcp 套件(或執行 Docker 映像)。需要設定 DATABRICKS_HOST,並提供 DATABRICKS_TOKEN、OAuth 服務主體憑證,或透過 DATABRICKS_CONFIG_PROFILE 指定 Databricks CLI 設定檔。需要連線至工作區的網路。可用 DATABRICKS_MCP_TOOLS_INCLUDE 限制載入的模組。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Databricks MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Databricks MCP Server
[PyPI] [CI] [Python 3.10+] [License: Apache 2.0]
A comprehensive Model Context Protocol (MCP) server for Databricks, built on the official Databricks Python SDK.
Provides 263 tools and 8 prompt templates across 28 service domains, giving AI assistants full access to the Databricks platform.
Features
- SDK-first: Uses
databricks-sdkfor type safety and automatic API freshness - Comprehensive: Covers Unity Catalog, SQL, Compute, Jobs, Pipelines, Serving, Vector Search, Apps, Lakebase, Dashboards, Genie, Secrets, IAM, Connections, Experiments, and Delta Sharing
- Zero custom auth: Delegates authentication entirely to the SDK (PAT, OAuth, Azure AD, service principal -- all automatic)
- Selective loading: Include/exclude tool modules via environment variables
- MCP Resources: Read-only workspace context (URL, current user, auth type)
Quick Start
Installation
Or run with Docker:
Or install from source:
Authentication
Authentication is handled by the Databricks SDK. Set one of:
Personal Access Token (simplest):
OAuth (M2M -- service principal):
OAuth (U2M -- interactive browser login):
Authenticate as yourself with short-lived, auto-refreshing OAuth tokens. Log in once
with the Databricks CLI, which
caches the token under a named profile in ~/.databrickscfg:
Then point the server at that profile instead of setting a token:
Note: If
DATABRICKS_TOKENis set, the SDK uses it in preference to the profile. LeaveDATABRICKS_TOKEN/DATABRICKS_HOSTunset when authenticating via a profile.
Other methods: Azure AD, Azure Managed Identity -- all auto-detected by the SDK.
Running
This starts the MCP server using stdio transport.
Integrations
Claude Code (Terminal)
Add to ~/.claude/settings.json or your project's .claude/settings.json:
To use OAuth U2M instead of a token, reference a logged-in profile (see
Authentication) and omit DATABRICKS_HOST/DATABRICKS_TOKEN:
Then restart Claude Code. Verify with /mcp to see the registered tools.
Claude Desktop
Add to your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop. The Databricks tools will appear in the tool picker.
Cursor
Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):
Open Cursor Settings > MCP to verify the server is connected.
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
VS Code (Copilot)
Add to .vscode/mcp.json in your project:
Zed
Add to Zed's settings (~/.config/zed/settings.json):
Any MCP Client (Generic stdio)
The server uses stdio transport. Connect from any MCP-compatible client:
Tip: Load Only What You Need
If your MCP client struggles with many tools, use selective loading to reduce the tool count:
Tool Modules
Selective Tool Loading
With 263 tools, it's recommended to load only the modules you need. This improves agent performance and tool selection accuracy.
Role-Based Presets (Recommended)
Pick a preset that matches your role:
Example using a preset in Claude Code:
Custom Filtering
If INCLUDE is set, only those modules load. If EXCLUDE is set, everything except those modules loads. INCLUDE takes precedence if both are set.
Tool Discovery (For AI Agents)
The server includes built-in tool discovery to help AI agents find the right tools:
MCP Resources
Agents can read databricks://tools/guide at connection time to understand what's available.
Discovery Tool
The databricks_tool_guide tool helps agents find the right tools during a conversation:
This returns matching modules with descriptions and usage hints, so the agent knows exactly which databricks_* tools to call.
MCP Prompts (Guided Workflows)
The server includes 8 prompt templates that guide AI agents through multi-step Databricks workflows:
Prompts appear automatically in MCP clients that support them (e.g., Claude Desktop's prompt picker).
Docker
Run the MCP server in a container:
SSE Transport (Remote Server)
The server supports SSE transport for remote connections:
Connect from any MCP client that supports SSE:
Development
Author
Pramod Bhat
License
Apache 2.0 -- see LICENSE.
來源:README.md,提交 01e1ab7
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分