Databricks MCP Server
Connects to Databricks API, allowing SQL query execution on Databricks warehouses, listing of jobs, retrieving job status, and accessing detailed job information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Databricks MCP Serverrun a query to show the top 10 customers by total sales"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Databricks MCP Server
A Model Context Protocol (MCP) server that connects to Databricks API, allowing LLMs to run SQL queries, list jobs, and get job status.
Features
Run SQL queries on Databricks SQL warehouses
List all Databricks jobs
Get status of specific Databricks jobs
Get detailed information about Databricks jobs
Related MCP server: Alibaba Cloud DMS MCP Server
Prerequisites
Python 3.7+
Databricks workspace with:
Personal access token
SQL warehouse endpoint
Permissions to run queries and access jobs
Setup
Clone this repository
Create and activate a virtual environment (recommended):
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtCreate a
.envfile in the root directory with the following variables:DATABRICKS_HOST=your-databricks-instance.cloud.databricks.com DATABRICKS_TOKEN=your-personal-access-token DATABRICKS_HTTP_PATH=/sql/1.0/warehouses/your-warehouse-idTest your connection (optional but recommended):
python test_connection.py
Obtaining Databricks Credentials
Host: Your Databricks instance URL (e.g.,
your-instance.cloud.databricks.com)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 immediately
HTTP Path: For your SQL warehouse:
Go to SQL Warehouses in Databricks
Select your warehouse
Find the connection details and copy the HTTP Path
Running the Server
Start the MCP server:
python main.pyYou can test the MCP server using the inspector by running
npx @modelcontextprotocol/inspector python3 main.pyAvailable MCP Tools
The following MCP tools are available:
run_sql_query(sql: str) - Execute SQL queries on your Databricks SQL warehouse
list_jobs() - List all Databricks jobs in your workspace
get_job_status(job_id: int) - Get the status of a specific Databricks job by ID
get_job_details(job_id: int) - Get detailed information about a specific Databricks job
Example Usage with LLMs
When used with LLMs that support the MCP protocol, this server enables natural language interaction with your Databricks environment:
"Show me all tables in the database"
"Run a query to count records in the customer table"
"List all my Databricks jobs"
"Check the status of job #123"
"Show me details about job #456"
Troubleshooting
Connection Issues
Ensure your Databricks host is correct and doesn't include
https://prefixCheck that your SQL warehouse is running and accessible
Verify your personal access token has the necessary permissions
Run the included test script:
python test_connection.py
Security Considerations
Your Databricks personal access token provides direct access to your workspace
Secure your
.envfile and never commit it to version controlConsider using Databricks token with appropriate permission scopes only
Run this server in a secure environment
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 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.Last updated1148MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables large language models to access database metadata and perform cross-engine data querying across diverse database ecosystems.Last updated1647Apache 2.0
- Alicense-qualityCmaintenanceA 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.Last updatedMIT
- FlicenseAqualityCmaintenanceA Model Context Protocol server that lets LLM clients answer business questions in natural language over a Databricks dataset without writing SQL by hand.Last updated1
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.
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