yashshingvi/databricks-genie-MCP
Platform-specific configuration:
{
"mcpServers": {
"databricks-genie-MCP": {
"command": "npx",
"args": [
"-y",
"databricks-genie-MCP"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
A Model Context Protocol (MCP) server that connects to the Databricks Genie API, allowing LLMs to ask natural language questions, run SQL queries, and interact with Databricks conversational agents.
python -m venv .venv
source .venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a .env file in the root directory with the following variables:
DATABRICKS_HOST=your-databricks-instance.cloud.databricks.com # Don't add https
DATABRICKS_TOKEN=your-personal-access-token๐ Manually Adding Genie Space IDs
Note: At this time, the Databricks Genie API does not provide a public endpoint to list all available space IDs and titles. (afaik) As a workaround, you need to manually add the Genie space IDs and their titles in the get_genie_space_id() function in main.py.
You can test the MCP server using the inspector (optional but recommended):
npx @modelcontextprotocol/inspector python main.pyOR
You can directly build and run docker to test the server
Download Claude Desktop
Install Your MCP Server: From your project directory, run:
mcp install main.pyOnce Server Installed
Loading reviews...