
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 分