Databricks MCP server

Provides a bridge between AI and Databricks workspaces, enabling interaction with data catalogs, schemas, tables, and SQL warehouses for direct querying and analysis of Databricks data.
Back to servers
Setup instructions
Provider
Marco Vela
Release date
Apr 24, 2025
Language
Go
Package
Stats
896 downloads
4 stars

Databricks MCP Server provides a Model Context Protocol interface to interact with Databricks workspaces. It allows you to access catalogs, schemas, tables, and execute SQL queries through a standardized protocol. This server bridges the gap between your development environment and Databricks resources.

Installation Options

Direct Download

You can download the latest release of the Databricks MCP Server for your platform from the Releases page.

VS Code Integration

Install the Databricks MCP Server extension in VS Code using either of these methods:

Method 1: Run the following command in your terminal:

# For VS Code
code --add-mcp '{"name":"databricks","command":"npx","args":["databricks-mcp-server@latest"]}'

# For VS Code Insiders
code-insiders --add-mcp '{"name":"databricks","command":"npx","args":["databricks-mcp-server@latest"]}'

Method 2: Use NPX directly:

npx databricks-mcp-server@latest

Supported Platforms

The Databricks MCP Server runs on:

  • Linux (amd64)
  • Windows (amd64)
  • macOS (Intel/amd64)
  • macOS (Apple Silicon/arm64)

Authentication

The server uses Databricks unified authentication. Refer to the Databricks Authentication documentation for detailed configuration instructions.

Starting the Server

Launch the MCP server with:

./databricks-mcp-server

The server will listen for MCP protocol commands on standard input/output.

Available Tools

List Catalogs

Lists all available catalogs in your Databricks workspace.

Tool name: list_catalogs

Parameters: None

Example usage:

{
  "name": "list_catalogs",
  "parameters": {}
}

List Schemas

Lists all schemas within a specified catalog.

Tool name: list_schemas

Parameters:

  • catalog (string, required): Name of the catalog to list schemas from

Example usage:

{
  "name": "list_schemas",
  "parameters": {
    "catalog": "my_catalog"
  }
}

List Tables

Lists tables in a specified schema with optional filtering.

Tool name: list_tables

Parameters:

  • catalog (string, required): Name of the catalog containing the schema
  • schema (string, required): Name of the schema to list tables from
  • filter_pattern (string, optional): Regular expression to filter table names (default: ".*")

Example usage:

{
  "name": "list_tables",
  "parameters": {
    "catalog": "my_catalog",
    "schema": "my_schema",
    "filter_pattern": "sales_.*"
  }
}

Execute SQL

Runs SQL statements on a Databricks SQL warehouse.

Tool name: execute_sql

Parameters:

  • statement (string, required): SQL statement to execute
  • timeout_seconds (number, optional): Timeout in seconds (default: 60)
  • row_limit (number, optional): Maximum number of rows to return (default: 100)

Example usage:

{
  "name": "execute_sql",
  "parameters": {
    "statement": "SELECT * FROM my_catalog.my_schema.my_table LIMIT 10",
    "timeout_seconds": 120,
    "row_limit": 50
  }
}

List SQL Warehouses

Lists all available SQL warehouses in your Databricks workspace.

Tool name: list_warehouses

Parameters: None

Example usage:

{
  "name": "list_warehouses",
  "parameters": {}
}

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "databricks" '{"command":"npx","args":["-y","databricks-mcp-server@latest"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "databricks": {
            "command": "npx",
            "args": [
                "-y",
                "databricks-mcp-server@latest"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "databricks": {
            "command": "npx",
            "args": [
                "-y",
                "databricks-mcp-server@latest"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later