MK

markov-kernel/databricks-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

50 stars 22 forks 质量 56 趋势 0

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引入了结构化响应、资源缓存、重试感知网络以及端到端弹性改进。


目录

  1. 关键能力
  2. 建筑亮点
  3. 安装
  4. 配置
  5. 服务器运行
  6. 与MCP客户端集成
  7. 与工具响应合作
  8. 可用工具
  9. 开发工作流程
  10. 测试
  11. 发布构建
  12. 支持与联系
  13. 许可

主要能力

  • 结构化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

  1. Key Capabilities
  2. Architecture Highlights
  3. Installation
  4. Configuration
  5. Running the Server
  6. Integrating with MCP Clients
  7. Working with Tool Responses
  8. Available Tools
  9. Development Workflow
  10. Testing
  11. Publishing Builds
  12. Support & Contact
  13. License

Key Capabilities

  • Structured MCP Responses - Each tool returns a CallToolResult with a human-readable summary in content and machine-readable payloads in structuredContent that conform to the tool’s outputSchema.
  • Resource Caching - Large notebook/workspace exports are cached once and returned as resource_link content blocks with URIs such as resource://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.FastMCP with 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 to DatabricksAPIError.
  • 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+
  • uv for dependency management and publishing

Register the server with Cursor using the deeplink below - it resolves to uvx databricks-mcp-server@latest and picks up future updates automatically.

在 GitHub 查看完整 README

安装

uvx databricks-mcp-server@latest
新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }