Databricks Genie API MCP server

Databricks Genie API MCP server

databricks-genie-mcp•byalexxx-db

A locally run MCP server that exposes Databricks Genie API functions as tools for natural language querying of Databricks data.

License: Specific license granted by Databricks, Inc.•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Exposes Databricks Genie API functions as MCP tools and enables natural language querying of Databricks data.
  • •Starts and manages Genie conversations and creates or retrieves messages.
  • •Executes and fetches SQL query results generated by Genie, and supports polling a message until it completes.
  • •Authenticates securely with Databricks using PAT or OAuth service principal credentials.

BEST FOR

  • •Asking natural language questions about Databricks data such as DBU consumption or PII table access.
  • •Integrating Databricks Genie with MCP-compatible client applications like Claude Desktop.

ABOUT DATABRICKS-GENIE-MCP

Databricks Genie API MCP server is cataloged as an MCP server attributed to alexxx-db. A locally run MCP server that exposes Databricks Genie API functions as tools for natural language querying of Databricks data. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Specific license granted by Databricks, Inc.. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Databricks Genie API MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the server provide?

It offers tools including start_conversation, create_message, get_message, get_message_attachment_query_result, execute_message_attachment_query, get_space, generate_download_full_query_result, and poll_message_until_complete.

What Databricks prerequisites are required?

A Databricks workspace with Genie access, Databricks Assistant enabled, CAN USE permission on a Pro or Serverless SQL warehouse, and access to relevant Unity Catalog data.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0d4998faec0a · 采集于 2026-11-13 12:09:49 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Databricks Genie API MCP Server

This project implements a Model Context Protocol (MCP) server that exposes Databricks Genie API capabilities as tools. It allows you to integrate Databricks' no-code AI/BI assistant features with other applications through a standardized interface, enabling powerful natural language querying of your Databricks data.

For a detailed explanation and example use cases, please see the accompanying blog post.

Features

  • Expose Databricks Genie API functions as MCP tools.
  • Enable natural language querying of Databricks data.
  • Start and manage Genie conversations.
  • Create and retrieve messages.
  • Execute and fetch SQL query results generated by Genie.
  • Secure authentication with Databricks.

Prerequisites

  • Python 3.10+
  • Databricks workspace with Genie access and System Tables enabled (if using them).
  • Databricks Assistant enabled.
  • CAN USE permission on a Pro or Serverless SQL warehouse.
  • Access to Unity Catalog data relevant to your Genie Space.
  • An MCP-compatible client application, such as Claude Desktop.

Setup Instructions

  1. Clone the Repository (if you haven't already)

    # Add clone command if needed
    
  2. Navigate to the Server Directory

    cd genie_api 
    
  3. Install Dependencies

    pip install -r requirements.txt
    
  4. Configure Authentication

    Set the required environment variables for the Databricks SDK to connect to your workspace. Create a .env file in this directory (genie_api/) or set them globally:

    # --- .env file content ---
    
    # For PAT authentication (recommended for development)
    # DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
    # DATABRICKS_TOKEN=your-personal-access-token
    
    # Or for OAuth with service principal (recommended for production)
    DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
    DATABRICKS_CLIENT_ID=your-client-id
    DATABRICKS_CLIENT_SECRET=your-client-secret
    
    # --- end .env file content ---
    

    Ensure the .env file is added to your `.gitignore!

  5. Run the Server Locally

    python server.py
    

    The server will start and listen for connections via standard input/output (stdio).

Using with Claude Desktop

This MCP server is designed to be used with MCP clients like Claude Desktop. Follow these steps to connect:

  1. Install Claude Desktop: Download and install from the official website.

  2. Configure Claude Desktop:

    • Open Claude Desktop settings (Menu Bar -> Claude -> Settings...).
    • Go to Developer -> Edit Config.
    • Add the following entry to the mcpServers object in the claude_desktop_config.json file, adjusting paths as needed:
    {
      "mcpServers": {
        "databricks-genie": {
          "command": "python", // Or python3, or the full path to your python executable
          "args": [
            "/full/absolute/path/to/your/project/genie_api/server.py" 
          ],
          "workingDirectory": "/full/absolute/path/to/your/project/genie_api/" 
        }
        // ... potentially other servers ...
      }
    }
    
    • Important: Use the full absolute path to server.py and the genie_api directory.
    • Ensure the Python command is accessible by Claude Desktop.
    • The workingDirectory ensures the server can find auth.py and your .env file.
  3. Restart Claude Desktop: Close and reopen the application.

  4. Verify: Click the hammer icon (Tools) in the chat input. You should see the databricks-genie tools listed (e.g., start_conversation, create_message).

Now you can ask Claude questions like "What was our DBU consumption last month?" or "Who accessed the PII table yesterday?", and it will use the tools provided by your local server.

For more details on configuring Claude Desktop, see the MCP Quickstart for Claude Desktop Users.

Available Tools

  • start_conversation: Start a new conversation in a Genie space.
  • create_message: Create a new message in an existing conversation.
  • get_message: Retrieve a message from a conversation.
  • get_message_attachment_query_result: Get SQL query results from a message attachment.
  • execute_message_attachment_query: Execute SQL for a message query attachment.
  • get_space: Get details about a Genie space.
  • generate_download_full_query_result: Initiate a full query result download.
  • poll_message_until_complete: Poll a message until it reaches a terminal state.

Troubleshooting

  • Authentication Issues: Verify Databricks credentials (.env file or environment variables) and required permissions in Databricks.
  • Connection Problems (Claude Desktop):
    • Ensure absolute paths in claude_desktop_config.json are correct.
    • Verify the command points to a valid Python interpreter.
    • Check Claude Desktop logs (~/Library/Logs/Claude/ or %APPDATA%\Claude\logs). Look for mcp.log and mcp-server-databricks-genie.log.
    • Try running python server.py manually in your terminal from the genie_api directory to check for errors.
  • SQL Execution Errors: Ensure the service principal or user has CAN USE on a SQL warehouse and access to the relevant Unity Catalog data.

Security Considerations

  • Credentials: Never hardcode credentials. Use environment variables (.env) or secure credential stores. Ensure .env is in your .gitignore. Use OAuth with service principals for production.
  • MCP Security: This server runs locally with your user's permissions and Databricks credentials. Clients like Claude Desktop MUST obtain user consent before executing tools (MCP Security Specification).
  • Production Deployment: Running this server for broader use requires a secure hosting strategy. Do not simply expose this local server. Work with security/DevOps to determine appropriate hosting, network controls, and potentially MCP server-level authentication. The hosting environment needs secure access to Databricks credentials (e.g., instance profiles, managed secrets). See the blog post for more discussion.
  • Input Sanitization: Trust the Databricks SDK/API for input handling passed via tools.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This software is provided under a specific license granted by Databricks, Inc. Please see the LICENSE file for the full terms and conditions governing your use of this software.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Databricks Genie API MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/databricks-genie-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage