Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Dockerfile for Databricks MCP Server
FROM python:3.11-slim

# Prevent Python from writing pyc files and buffering stdout
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1

# Install curl
RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*

# Install UV (CLI tool, optional for runtime)
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}"

WORKDIR /app

# Copy project files
COPY pyproject.toml uv.lock ./
COPY README.md ./
COPY src ./src
COPY scripts ./scripts

# Install Python dependencies and the package
RUN pip install --upgrade pip \
&& pip install hatchling \
&& pip install .

# Default command: start the MCP server using stdio
CMD ["python", "-m", "src.main"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Databricks MCP Server

[![smithery badge](https://smithery.ai/badge/@JustTryAI/databricks-mcp-server)](https://smithery.ai/server/@JustTryAI/databricks-mcp-server)

A Model Completion Protocol (MCP) server for Databricks that provides access to Databricks functionality via the MCP protocol. This allows LLM-powered tools to interact with Databricks clusters, jobs, notebooks, and more.

## Features
Expand Down Expand Up @@ -27,6 +29,14 @@ The Databricks MCP Server exposes the following tools:

## Installation

### Installing via Smithery

To install Databricks MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@JustTryAI/databricks-mcp-server):

```bash
npx -y @smithery/cli install @JustTryAI/databricks-mcp-server --client claude
```

### Prerequisites

- Python 3.10 or higher
Expand Down
29 changes: 29 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- databricksHost
- databricksToken
properties:
databricksHost:
type: string
description: Databricks workspace URL
databricksToken:
type: string
description: Databricks personal access token
logLevel:
type: string
default: INFO
description: Optional log level
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({ command: "python", args: ["-m", "src.main", "--log-level", config.logLevel], env: { DATABRICKS_HOST: config.databricksHost, DATABRICKS_TOKEN: config.databricksToken } })
exampleConfig:
databricksHost: https://example.cloud.databricks.com
databricksToken: dapiXXXXXXXXXXXXXXXXXXXX
logLevel: INFO