Skip to main content
Glama

Databricks MCP Server

GPL 3.0
  • Linux
  • Apple

Databricks MCP Server

This is a server that provides tools to interact with Databricks.

Features

  • Cluster management
  • Job management
  • Notebook management
  • DBFS management
  • SQL management

Installation

Required Python version: 3.11

# Create and activate virtual environment uv venv # On Windows .\.venv\Scripts\activate # On Linux/Mac source .venv/bin/activate # Install dependencies uv pip install pip pip install -r requirements.txt

Configuration

The server can be configured using environment variables or a .env file.

Environment variables

  • DATABRICKS_HOST: The Databricks host URL (e.g. https://adb-123456789012345.12.azuredatabricks.net)
  • DATABRICKS_TOKEN: The Databricks API token
  • TRANSPORT: The transport to use (e.g. sse). Options: [stdio, sse, streamable-http]. Default: sse
  • SERVER_HOST: The host to bind the server to (e.g. 0.0.0.0)
  • SERVER_PORT: The port to bind the server to (e.g. 8000)
  • DEBUG: Whether to run the server in debug mode (e.g. True)
  • LOG_LEVEL: The log level (e.g. INFO)

.env file

Create a .env file in the root directory of the project with the following variables:

DATABRICKS_HOST=https://adb-123456789012345.12.azuredatabricks.net DATABRICKS_TOKEN=your_databricks_api_token TRANSPORT=sse SERVER_HOST=0.0.0.0 SERVER_PORT=8000 DEBUG=True LOG_LEVEL=INFO

Obtaining Databricks Credentials

  1. Host: Your Databricks instance URL (e.g., your-instance.cloud.databricks.com)
  2. Token: Create a personal access token in Databricks:
    • Go to User Settings (click your username in the top right)
    • Select "Developer" tab
    • Click "Manage" under "Access tokens"
    • Generate a new token, and save it (it will not be shown again)

Running the server in standalone mode

python -m main

Config Claude-Desktop/Cursor/Windsurf

Add the following to your Claude-Desktop/Cursor config file:

{ "mcpServers": { "databricks": { "command": "uv", "args": [ "--directory", "/absolute/path/to/this/project", "run", "python", "-m", "main" ], "env": { "DATABRICKS_HOST": "https://your-host.cloud.databricks.com", "DATABRICKS_TOKEN": "your-databricks-api-token", "TRANSPORT": "stdio" } } } }

If you are using Claude-Desktop, restart it for the changes to take effect.

-
security - not tested
A
license - permissive license
-
quality - not tested

A server that provides tools to interact with Databricks for cluster, job, notebook, DBFS, and SQL management through natural language interfaces like Claude-Desktop and Cursor.

  1. Features
    1. Installation
      1. Configuration
        1. Environment variables
        2. .env file
      2. Obtaining Databricks Credentials
        1. Running the server in standalone mode
          1. Config Claude-Desktop/Cursor/Windsurf

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              The server facilitates natural language interactions for exploring and understanding codebases, providing insights into data models and system architecture using a cost-effective, simple setup with support for existing Claude Pro subscriptions.
              Last updated -
              4
              19
              • Apple
            • -
              security
              F
              license
              -
              quality
              A server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.
              Last updated -
            • -
              security
              F
              license
              -
              quality
              Enables AI assistants like Claude to interact with Databricks workspaces through secure OAuth authentication. Supports custom prompts, tools for cluster management, SQL execution, and job operations via the Databricks SDK.
              Last updated -
              9
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              Enables AI assistants like Claude to interact with Databricks workspaces through secure OAuth authentication. Supports custom prompts, tools for cluster management, SQL execution, and job operations via the Databricks SDK.
              Last updated -

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndresGarciaSobrado91/databricks-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server