MCP.so

๐Ÿš€ MCP Databricks

@leminkhoa

๐Ÿš€ MCP Databricks ใซใคใ„ใฆ

My Databricks MCP server to interact with Databricks through LLM models

ๅŸบๆœฌๆƒ…ๅ ฑ

ใ‚ซใƒ†ใ‚ดใƒช

ใใฎไป–

ใƒฉใƒณใ‚ฟใ‚คใƒ 

python

ใƒˆใƒฉใƒณใ‚นใƒใƒผใƒˆ

stdio

ๅ…ฌ้–‹่€…

leminkhoa

่จญๅฎš

ไปฅไธ‹ใฎ่จญๅฎšใ‚’ไฝฟใฃใฆใ€ใ“ใฎใ‚ตใƒผใƒใƒผใ‚’ MCP ๅฏพๅฟœใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใซ่ฟฝๅŠ ใ—ใฆใใ ใ•ใ„ใ€‚

{
  "mcpServers": {
    "databricks-mcp": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "databricks-mcp",
        "."
      ]
    }
  }
}

ใƒ„ใƒผใƒซ

ใƒ„ใƒผใƒซใฏๆคœๅ‡บใ•ใ‚Œใพใ›ใ‚“ใงใ—ใŸ

ใƒ„ใƒผใƒซใฏ README ใ‹ใ‚‰่‡ชๅ‹•็š„ใซๆŠฝๅ‡บใ•ใ‚Œใพใ™ใ€‚ใƒกใƒณใƒ†ใƒŠใƒผใฏ ## Tools ใจใ„ใ†่ฆ‹ๅ‡บใ—ใฎไธ‹ใซ่จ˜่ผ‰ใ™ใ‚‹ใ“ใจใงใ€ใ“ใฎใ‚ฟใƒ–ใซๅๆ˜ ใงใใพใ™ใ€‚

ๆฆ‚่ฆ

What is ๐Ÿš€ MCP Databricks?

๐Ÿš€ MCP Databricks is a Python-based MCP server that connects AI assistants (like Claude) to Databricks workspaces. It provides a rich collection of tools for managing compute resources, executing SQL queries, and organizing workspace objects via the Model Context Protocol.

How to use ๐Ÿš€ MCP Databricks?

Clone the repository, create a .env file with your DATABRICKS_HOST and DATABRICKS_TOKEN, then run the server using Docker (recommended for production) or locally with uv. Configure it in Cursor via mcp.json or connect directly to any MCP client (e.g., Claude Desktop) using stdio transport.

Key features of ๐Ÿš€ MCP Databricks

  • Manage Databricks clusters (create, start, delete, list)
  • Execute Python, Scala, and SQL commands on clusters
  • Install libraries (JAR, WHL, PyPI, Maven, CRAN)
  • Manage SQL warehouses (list, create)
  • Manipulate workspace objects (import, delete, create directories)

Use cases of ๐Ÿš€ MCP Databricks

  • Automate cluster lifecycle management via AI assistant conversation
  • Run adโ€‘hoc SQL queries and analyze results in Databricks
  • Install required libraries on running clusters interactively
  • Organize and import notebooks or files into the workspace

FAQ from ๐Ÿš€ MCP Databricks

What are the prerequisites for using ๐Ÿš€ MCP Databricks?

You need Python 3.11 or higher, a Databricks workspace, and a Databricks Personal Access Token (PAT).

How do I install ๐Ÿš€ MCP Databricks?

You can either build the Docker image with docker build -t databricks-mcp . or install locally with uv venv, uv sync, and then run uv run main.py.

How do I configure credentials?

Create a .env file in the project root with DATABRICKS_HOST (your workspace URL) and DATABRICKS_TOKEN (your PAT). Optional settings include server host, port, debug mode, and log level.

What transport does ๐Ÿš€ MCP Databricks use?

The server uses the stdio transport for seamless compatibility with Claude Desktop and other MCP clients.

What tools does ๐Ÿš€ MCP Databricks provide?

It offers tools for cluster management (list_clusters, create_cluster, delete_cluster, start_cluster, list_node_types, list_spark_versions, get_cluster), library installation (install_libraries), command execution (execute_command, create_execution_context), SQL warehouse management (list_sql_warehouses, create_sql_warehouse), and workspace object management (delete_workspace_object, get_workspace_object_status, import_workspace_object, create_workspace_directory).

ใ‚ณใƒกใƒณใƒˆ

ใ€Œใใฎไป–ใ€ใฎไป–ใฎใ‚ณใƒณใƒ†ใƒณใƒ„