
markov-kernel/databricks-mcp 是从 https://github.com/markov-kernel/databricks-mcp. 导入的 MCP 服务器候选
概览
markov-kernel/databricks-mcp 是从 https://github.com/markov-kernel/databricks-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一款生产准备的模型上下文协议(MCP)服务器,向兼容MCP的代理和工具展示Databrick的REST功能。版本0.4.4引入了结构化响应、资源缓存、重试感知网络以及端到端弹性改进。
目录
- 关键能力
- 建筑亮点
- 安装
- 配置
- 服务器运行
- 与MCP客户端集成
- 与工具响应合作
- 可用工具
- 开发工作流程
- 测试
- 发布构建
- 支持与联系
- 许可
主要能力
- 结构化MCP响应 - 每个工具返回一个
CallToolResult,其人类可读摘要在content中,机器可读有效载荷structuredContent,符合工具的outputSchema。 - 资源缓存 - 大型笔记本/工作区导出一次性缓存,并以
resource_link内容块形式返回,带有如resource://databricks/exports/{id}](为方便也反映在元数据中)。 - 进度与指标 - 长时间运行的动作流式MCP进度通知,并跟踪每个工具的成功/错误/超时/取消指标。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Databricks MCP Server
A production-ready Model Context Protocol (MCP) server that exposes Databricks REST capabilities to MCP-compatible agents and tooling. Version 0.4.4 introduces structured responses, resource caching, retry-aware networking, and end-to-end resilience improvements.
Table of Contents
- Key Capabilities
- Architecture Highlights
- Installation
- Configuration
- Running the Server
- Integrating with MCP Clients
- Working with Tool Responses
- Available Tools
- Development Workflow
- Testing
- Publishing Builds
- Support & Contact
- License
Key Capabilities
- Structured MCP Responses - Each tool returns a
CallToolResultwith a human-readable summary incontentand machine-readable payloads instructuredContentthat conform to the tool’soutputSchema. - Resource Caching - Large notebook/workspace exports are cached once and returned as
resource_linkcontent blocks with URIs such asresource://databricks/exports/{id}(also reflected in metadata for convenience). - Progress & Metrics - Long-running actions stream MCP progress notifications and track per-tool success/error/timeout/cancel metrics.
- Resilient Networking - Shared HTTP client injects request IDs, enforces timeouts, and retries retryable Databricks responses (408/429/5xx) with exponential backoff.
- Async Runtime - Built on
mcp.server.FastMCPwith centralized JSON logging and concurrency guards for predictable stdio behaviour.
Architecture Highlights
databricks_mcp/server/databricks_mcp_server.py- FastMCP server with tool registration, progress handling, metrics, and resource caching.databricks_mcp/core/utils.py- HTTP utilities with correlation IDs, retries, and error mapping toDatabricksAPIError.databricks_mcp/core/logging_utils.py- JSON logging configuration for stderr/file outputs.databricks_mcp/core/models.py- Pydantic models (e.g.,ClusterConfig) used by tool schemas.- Tests under
tests/mock Databricks APIs to validate orchestration, structured responses, and schema metadata without shell scripts.
For an in-depth tour of data flow and design decisions, see ARCHITECTURE.md.
Installation
Prerequisites
- Python 3.10+
uvfor dependency management and publishing
Quick Install (recommended)
Register the server with Cursor using the deeplink below - it resolves to uvx databricks-mcp-server@latest and picks up future updates automatically.
安装
uvx databricks-mcp-server@latest配置
{
"mcpServers": {
"databricks-mcp-local": {
"command": "uvx",
"args": ["databricks-mcp-server@latest"],
"env": {
"DATABRICKS_HOST": "https://your-workspace.databricks.com",
"DATABRICKS_TOKEN": "dapiXXXXXXXXXXXXXXXX",
"DATABRICKS_WAREHOUSE_ID": "sql_warehouse_12345",
"RUNNING_VIA_CURSOR_MCP": "true"
}
}
}
}