Databricks MCP Server
Databricks MCP サーバー
Databricks API に接続し、LLM が SQL クエリを実行し、ジョブを一覧表示し、ジョブ ステータスを取得できるようにするモデル コンテキスト プロトコル (MCP) サーバー。
特徴
Databricks SQL ウェアハウスで SQL クエリを実行する
すべての Databricks ジョブを一覧表示する
特定の Databricks ジョブのステータスを取得する
Databricksの求人に関する詳細情報を入手する
Related MCP server: Alibaba Cloud DMS MCP Server
前提条件
Python 3.7以上
次の機能を備えた Databricks ワークスペース:
個人アクセストークン
SQL ウェアハウスエンドポイント
クエリの実行とジョブへのアクセスの権限
設定
このリポジトリをクローンする
仮想環境を作成してアクティブ化します (推奨):
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate依存関係をインストールします:
pip install -r requirements.txt次の変数を含む
.envファイルをルート ディレクトリに作成します。DATABRICKS_HOST=your-databricks-instance.cloud.databricks.com DATABRICKS_TOKEN=your-personal-access-token DATABRICKS_HTTP_PATH=/sql/1.0/warehouses/your-warehouse-id接続をテストします (オプションですが推奨されます):
python test_connection.py
Databricks 資格情報の取得
ホスト: Databricks インスタンスの URL (例:
your-instance.cloud.databricks.com)トークン: Databricks で個人アクセス トークンを作成します。
ユーザー設定に移動します(右上のユーザー名をクリックします)
「開発者」タブを選択します
「アクセストークン」の下の「管理」をクリックします
新しいトークンを生成し、すぐに保存します
HTTP パス: SQL ウェアハウスの場合:
DatabricksのSQLウェアハウスへ
倉庫を選択してください
接続の詳細を見つけてHTTPパスをコピーします
サーバーの実行
MCP サーバーを起動します。
python main.pyインスペクタを使用してMCPサーバーをテストするには、次のコマンドを実行します。
npx @modelcontextprotocol/inspector python3 main.py利用可能なMCPツール
次の MCP ツールが利用可能です。
run_sql_query(sql: str) - Databricks SQL ウェアハウスで SQL クエリを実行します。
list_jobs() - ワークスペース内のすべての Databricks ジョブを一覧表示します
get_job_status(job_id: int) - IDで特定のDatabricksジョブのステータスを取得します
get_job_details(job_id: int) - 特定のDatabricksジョブに関する詳細情報を取得します
LLMの使用例
MCP プロトコルをサポートする LLM と併用すると、このサーバーは Databricks 環境との自然言語による対話を可能にします。
「データベース内のすべてのテーブルを表示」
「顧客テーブルのレコード数をカウントするクエリを実行する」
「すべての Databricks ジョブを一覧表示する」
「ジョブ #123 のステータスを確認してください」
「ジョブ #456 の詳細を表示」
トラブルシューティング
接続の問題
Databricksホストが正しく、
https://プレフィックスが含まれていないことを確認してくださいSQL ウェアハウスが実行中でアクセス可能であることを確認する
個人アクセストークンに必要な権限があることを確認する
付属のテストスクリプトを実行します:
python test_connection.py
セキュリティに関する考慮事項
Databricks個人アクセストークンを使用すると、ワークスペースに直接アクセスできます。
.envファイルを安全に保管し、バージョン管理にコミットしないでください。適切な権限スコープを持つ Databricks トークンのみの使用を検討してください
このサーバーを安全な環境で実行する
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Your Databricks Lakehouse in natural language: run SQL on your SQL warehouses, track long-running qu
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that implements the Model Completion Protocol (MCP) to allow LLMs to interact with Databricks resources including clusters, jobs, notebooks, and SQL execution through natural language.1148MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables large language models to access database metadata and perform cross-engine data querying across diverse database ecosystems.1652Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with Databricks workspaces, allowing them to browse Unity Catalog, query metadata, sample data, and execute SQL queries.MIT
- FlicenseAqualityDmaintenanceA Model Context Protocol server that lets LLM clients answer business questions in natural language over a Databricks dataset without writing SQL by hand.1-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/JordiNeil/mcp-databricks-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server