有官方的 Databricks MCP 服务器吗?
有。Databricks 在 `system.ai` schema 中提供托管的 MCP 服务器,包括 Genie One 和 Databricks SQL,访问地址为 `https://<workspace-hostname>/ai-gateway/mcp-services/<mcp-name>`。
@databricks
基本信息
Databricks 在 system.ai schema 中提供开箱即用的 MCP 服务器,例如用于自然语言分析的 Genie One MCP,以及用于在 SQL warehouse 上运行 SQL 的 Databricks SQL MCP。每个 MCP 都是通过 Unity Gateway 调用的 Unity Catalog 安全对象,地址为 https://<workspace-hostname>/ai-gateway/mcp-services/<mcp-name>,因此每次调用都适用权限、授权和策略。可通过 Unity Gateway CLI(ug)或手动 OAuth 配置连接 Claude Code、Codex、Cursor 等客户端。
https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcpclaude mcp add databricks-genie-one --transport http https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp --header "Authorization: Bearer ${DATABRICKS_TOKEN}"Genie One MCP: ask Genie a natural-language data question and start a response; returns conversation_id, response_id and status. Pass a conversation_id to continue a conversation.
Genie One MCP: fetch the latest state of an in-flight or completed response, including progress steps, the final answer and deep links to Databricks sources.
Genie One MCP: fetch the full SQL result, including column schema and rows, for a query Genie ran.
Genie One MCP: request cancellation of an in-flight Genie turn.
Genie One MCP: ask Genie a question and open the interactive View on clients that support MCP Apps.
Databricks SQL MCP (system.ai.dbsql): run a SQL query on a SQL warehouse using the caller's Unity Catalog and warehouse permissions; runs asynchronously.
Databricks MCP Servers (Official) 是 Databricks 在 system.ai schema 中提供的 MCP 服务器:一组托管端点,让 Claude、Cursor、Codex 等智能体通过 Genie One 或 SQL 查询你的 Databricks 数据,并调用 GitHub、Slack 等服务。
你无需自行托管任何东西。每个 Databricks MCP 服务器都是通过 Unity Gateway 调用的 Unity Catalog 安全对象(securable),因此每次调用都会强制执行 Unity Catalog 权限,管理员可以通过授权(grants)和策略(policies)管理访问。这些服务器在 AWS、Azure 和 GCP 上的 Databricks 均有文档。
所有 system.ai MCP 都使用同一个 URL 格式:
https://<workspace-hostname>/ai-gateway/mcp-services/<mcp-name>
将 <workspace-hostname> 替换为你的工作区主机名(不含 https:// 和路径),将 <mcp-name> 替换为完整名称,例如 system.ai.genie_one_mcp 或 system.ai.dbsql。要查看名称,请在工作区中打开 Unity Gateway > MCPs。
前提条件:
system.ai.dbsql、system.ai.sandbox 和 system.ai.web_search 时,需要账户管理员在账户控制台的 Previews 页面启用 Unity Gateway beta。Genie One MCP 已正式发布(GA)。ai-gateway scope 的 OAuth。本地测试时,也可以在 Authorization: Bearer <token> 请求头中使用个人访问令牌(personal access token)。对于编码智能体,Databricks 推荐使用 Unity Gateway CLI(ug,需要 Python 3.12+ 和 uv),它会处理登录和令牌刷新:
uv tool install git+https://github.com/databricks/unity-gateway
ug mcp add --names system.ai.genie_one_mcp,system.ai.dbsql
省略 --names 可在选择器中挑选服务器。ug mcp list 显示已有连接,ug mcp remove 用于移除连接。
使用 ug:ug mcp add --agents claude --names system.ai.github,然后用 ug claude 重启。手动配置时,可使用 Databricks 内置的 OAuth 客户端:
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>"
然后在 Claude Code 中输入 /mcp,用你的 Databricks 账号登录。
如果在网页版或桌面版 Claude 中使用自己的 Claude 账号,需要账户管理员创建一个带 ai-gateway scope 的 OAuth 客户端,并注册重定向 URL https://claude.ai/api/mcp/auth_callback 和 https://claude.com/api/mcp/auth_callback。然后打开 Settings > Connectors > Add custom connector,输入 MCP URL 和客户端 ID 并登录。若要用令牌进行本地测试,Databricks 文档给出了如下 claude_desktop_config.json 配置(需要 Node.js):
{
"mcpServers": {
"databricks-tools": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<workspace-hostname>/ai-gateway/mcp-services/<catalog>.<schema>.<service>",
"--header",
"Authorization: Bearer <databricks-pat>"
]
}
}
}
运行 ug mcp add --agents cursor,它会写入 ~/.cursor/mcp.json。若要基于令牌进行本地测试,将以下内容合并到 ~/.cursor/mcp.json:
{
"mcpServers": {
"dbsql": {
"url": "https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.dbsql",
"headers": { "Authorization": "Bearer <databricks-pat>" }
}
}
}
运行 ug mcp add --agents codex --names <catalog>.<schema>.<service>,或手动用 codex mcp add databricks-tools --url "<mcp-url>" --oauth-client-id <client-id> 注册,再用 codex mcp login databricks-tools --scopes ai-gateway,offline_access 登录。
要检查任一客户端,可让它通过 system.ai.dbsql 运行 SELECT 1 AS result,并确认它确实发起了工具调用。
system.ai MCP 都通过 Unity Gateway 使用同一个 URL 格式system.ai.dbsql_policy 中的 disallow_writes 设为只读可用工具取决于你连接的服务器:
system.ai.genie_one_mcp): genie_ask 针对自然语言问题开始生成回答,genie_poll_response 获取进度和最终答案,genie_get_query_result 返回完整的 SQL 结果,genie_cancel_response 取消一轮对话,view_ask 在支持 MCP Apps 的客户端中打开交互式 View。system.ai.dbsql): execute_sql 工具运行你或智能体编写的查询。查询异步执行,过大的结果会被截断。system.ai.web_search 返回带引用的综合答案;system.ai.sandbox 在隔离环境中运行 Python、SQL 或 shell 代码,且没有出站网络访问。system.ai.slack、system.ai.github、system.ai.atlassian、system.ai.google_drive、system.ai.google_calendar、system.ai.gmail 和 system.ai.microsoft_365 通过 OAuth 连接到各自的服务商。system.ai.github 完成。旧版工作区端点。 较早的托管端点,例如 https://<workspace-hostname>/api/2.0/mcp/sql、/api/2.0/mcp/genie/{genie_space_id}、/api/2.0/mcp/ai-search/{catalog}/{schema}/{index_name} 和 /api/2.0/mcp/functions/{catalog}/{schema}/{function_name} 仍可使用,但它们绕过 Unity Gateway,因此没有 MCP 级别的授权、策略和追踪。Databricks 表示,beta 版 Genie 端点 https://<workspace-hostname>/api/2.0/mcp/genie 已弃用,并将于 2026 年 10 月 31 日下线。
databrickslabs/mcp。 Databricks Labs 的开源 Unity Catalog 服务器已弃用,其 README 建议改用托管服务器。
社区服务器。 也有自托管、基于令牌的方案,例如 Databricks MCP Server by RafaelCartenet,它侧重于 Unity Catalog 元数据、数据血缘和 SQL。这些项目并非由 Databricks 维护。
你也可以在 Unity Gateway 中注册外部 MCP 服务器,或在 Databricks Apps 上构建自定义服务器。
system.ai.dbsql 或 system.ai.sandbox: 需要账户管理员启用 Unity Gateway beta。ug 无法连接: 运行 ug doctor。有。Databricks 在 `system.ai` schema 中提供托管的 MCP 服务器,包括 Genie One 和 Databricks SQL,访问地址为 `https://<workspace-hostname>/ai-gateway/mcp-services/<mcp-name>`。
文档中没有单独的 MCP 价格。Genie One MCP 使用 Chat in Genie One,按 Genie 定价计费;旧版端点按 Databricks SQL、serverless 或 AI Search 定价计费。
使用带 `ai-gateway` scope 的 OAuth,编码智能体可由 `ug` 代为处理。本地测试可使用个人访问令牌。无人值守的智能体应使用配合 OAuth M2M 的服务主体(service principal)。
支持。Databricks 为每个客户端都提供了配置说明,可通过 `ug mcp add --agents <agent>` 或手动配置完成。
Genie One 推荐用于自然语言分析,因为它通过 Genie Ontology 解析业务术语。Databricks SQL MCP 则运行你给出的确切 SQL。
Databricks SQL MCP 默认允许读写。在 `system.ai.dbsql_policy` 中将 `disallow_writes` 设为 true,即可改为只读。
不会。每次请求都会强制执行 Unity Catalog 权限,因此结果仅限于该用户或服务主体有权访问的数据。
它的 Unity Catalog 服务器已弃用,Databricks 建议改用托管 MCP 服务器。
Databricks-provided MCPs 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp,AI 助手无需在本地安装或运行任何东西即可连接。
把端点 https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。
需要。Databricks-provided MCPs 使用 OAuth——第一次连接时,你的 MCP 客户端会打开浏览器窗口登录并授权,之后会复用这个凭证。
Databricks-provided MCPs 暴露的是 streamable-http 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。
Convert web pages to clean Markdown and retrieval-ready chunks with browser rendering support.
AI Video MCP by AITuber is a hosted MCP server that lets AI agents create and publish video. You connect it once, then ask your agent for a video in plain language. It writes the script, picks a voice, generates the visu
Understand and troubleshoot your Journeys and Campaigns
AdsMCP is the MCP entry point into the Adgentek Ad Server. Call ads_serve with the conversation context and get back a native ad matched to user intent, or no ad when one does not fit. Publishers earn on a CPM basis. Fre
Ideate, create, and deliver with Adobe pro tools
评论