by JordiNeil
Provides a Model Context Protocol server that connects to the Databricks API, enabling LLMs to execute SQL queries, list jobs, and retrieve detailed job information.
The project implements a Model Context Protocol (MCP) server that acts as a bridge between large language models and a Databricks workspace. By exposing Databricks operations—SQL query execution, job enumeration, and job status/detail retrieval—LLMs can interact with the data platform using natural language.
pip install -r requirements.txt
..env
file containing:
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
.python main.py
For testing with the MCP inspector you can run:
npx @modelcontextprotocol/inspector python3 main.py
run_sql_query
, list_jobs
, get_job_status
, and get_job_details
.npx
.Q: Which Python version is required? A: Python 3.7 or newer.
Q: How are credentials secured?
A: Store them in a .env
file and never commit that file. The server reads them at runtime.
Q: Can I run the server in production? A: Yes, but ensure the host environment is secure, limit the token’s permission scope, and consider containerizing the service.
Q: What if my SQL warehouse is stopped? A: The server will return a connection error; start the warehouse or check the HTTP path.
Q: Do I need to install Node.js to use the inspector?
A: Only if you want to run the npx @modelcontextprotocol/inspector
command; the server itself runs on Python.
A Model Context Protocol (MCP) server that connects to Databricks API, allowing LLMs to run SQL queries, list jobs, and get job status.
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
.env
file 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-id
python test_connection.py
your-instance.cloud.databricks.com
)Start the MCP server:
python main.py
You can test the MCP server using the inspector by running
npx @modelcontextprotocol/inspector python3 main.py
The following MCP tools are available:
When used with LLMs that support the MCP protocol, this server enables natural language interaction with your Databricks environment:
https://
prefixpython test_connection.py
.env
file and never commit it to version controlPlease log in to share your review and rating for this MCP.
{ "mcpServers": { "databricks-mcp": { "command": "npx", "args": [ "@modelcontextprotocol/inspector", "python3", "main.py" ], "env": { "DATABRICKS_HOST": "<YOUR_DATABRICKS_HOST>", "DATABRICKS_TOKEN": "<YOUR_PERSONAL_ACCESS_TOKEN>", "DATABRICKS_HTTP_PATH": "<YOUR_HTTP_PATH>" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by antvis
Offers over 25 AntV chart types for automated chart generation and data analysis, callable via MCP tools, CLI, HTTP, SSE, or streamable transports.
by reading-plus-ai
A versatile tool that enables interactive data exploration through prompts, CSV loading, and script execution.
by Canner
Provides a semantic engine that lets MCP clients and AI agents query enterprise data with contextual understanding, precise calculations, and built‑in governance.
by surendranb
Provides natural‑language access to Google Analytics 4 data via MCP, exposing over 200 dimensions and metrics for Claude, Cursor and other compatible clients.
by ergut
Provides secure, read‑only access to BigQuery datasets, allowing large language models to query and analyze data through a standardized interface.
by isaacwasserman
Provides an interface for LLMs to visualize data using Vega‑Lite syntax, supporting saving of data tables and rendering visualizations as either a full Vega‑Lite specification (text) or a base64‑encoded PNG image.
by vantage-sh
Fetch and explore cloud cost and usage data from a Vantage account using natural language through AI assistants and MCP clients.
by acryldata
Provides a Model Context Protocol server that enables searching, metadata retrieval, lineage traversal, and SQL query listing for DataHub entities.
by rishijatia
Provides programmatic access to Fantasy Premier League statistics, team information, gameweeks, and analysis tools via a Model Context Protocol server.