databricks-mcp
A read-only MCP server that enables users to query Databricks SQL, browse metadata, and monitor Delta Lake tables. It also supports tracking Databricks Jobs, DLT Pipelines, and cluster metrics through natural language interfaces.
README
databricks-mcp
Read this in other languages: 正體中文
A read-only MCP (Model Context Protocol) server for Databricks, enabling Claude to query Databricks SQL, browse metadata, and monitor jobs/pipelines.
Features
- SQL Queries: Execute SELECT, SHOW, DESCRIBE queries (write operations blocked)
- Metadata Browsing: List catalogs, schemas, tables, and search tables
- Delta Lake: View table history, details, and grants
- Jobs & Pipelines: List and monitor Databricks Jobs and DLT Pipelines
- Query History: Browse SQL query history with filters
- Cluster Metrics: Monitor CPU, memory, network usage from system tables
Installation
Prerequisites
- Python 3.13+
- uv package manager
- Databricks workspace with SQL Warehouse
Setup
# Clone the repository
git clone https://github.com/ChrisChoTW/databricks-mcp.git
cd databricks-mcp
# Install dependencies
uv sync
# Create .env file
cp .env.example .env
Configuration
Edit .env with your Databricks credentials:
DATABRICKS_SERVER_HOSTNAME=your-workspace.cloud.databricks.com
DATABRICKS_HTTP_PATH=/sql/1.0/warehouses/your-warehouse-id
DATABRICKS_TOKEN=your-personal-access-token
Usage
With Claude Code
Add to your Claude Code MCP configuration (~/.claude.json):
{
"mcpServers": {
"databricks-sql": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"/path/to/databricks-mcp",
"run",
"python",
"server.py"
],
"env": {
"DATABRICKS_SERVER_HOSTNAME": "your-workspace.cloud.databricks.com",
"DATABRICKS_HTTP_PATH": "/sql/1.0/warehouses/your-warehouse-id",
"DATABRICKS_TOKEN": "your-token"
}
}
}
}
Standalone
uv run python server.py
Available Tools
SQL & Metadata
| Tool | Description |
|---|---|
databricks_query |
Execute SQL queries (read-only) |
list_catalogs |
List all catalogs |
list_schemas |
List schemas in a catalog |
list_tables |
List tables in a schema |
get_table_schema |
Get table structure (DESCRIBE EXTENDED) |
search_tables |
Search tables by name |
Delta Lake
| Tool | Description |
|---|---|
get_table_history |
View Delta table change history |
get_table_detail |
View Delta table details |
get_grants |
View object permissions |
list_volumes |
List Unity Catalog volumes |
Jobs & Pipelines
| Tool | Description |
|---|---|
list_jobs |
List Databricks Jobs |
get_job |
Get job details |
list_job_runs |
List job run history |
get_job_run |
Get run details |
list_pipelines |
List DLT Pipelines |
get_pipeline |
Get pipeline status |
Compute & Monitoring
| Tool | Description |
|---|---|
list_query_history |
List SQL query history |
list_warehouses |
List SQL Warehouses |
list_clusters |
List clusters |
get_cluster_metrics |
Get cluster CPU/memory metrics |
get_cluster_events |
Get cluster events |
Project Structure
databricks-mcp/
├── server.py # Entry point
├── core.py # Shared connections and MCP instance
└── tools/
├── query.py # SQL queries and metadata
├── delta.py # Delta Lake and permissions
├── jobs.py # Jobs management
├── pipelines.py # DLT Pipelines
├── compute.py # Clusters and query history
└── metrics.py # Cluster metrics
Security
This server is read-only by design:
- ❌ INSERT, UPDATE, DELETE, DROP, TRUNCATE, MERGE, COPY blocked
- ✅ SELECT, SHOW, DESCRIBE, CREATE VIEW allowed
- Credentials are passed via environment variables (never hardcoded)
License
MIT
Contributing
Issues and pull requests are welcome!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.