Databricks MCP Server
Provides tools for testing connectivity, retrieving user information, and authenticating via OBO (On-Behalf-Of) with Databricks workspaces, designed for deployment as a Databricks app.
Click on "Deploy 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 Servertest the connection to my Databricks workspace"
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.
Custom MCP Server for Databricks
Custom Model Context Protocol (MCP) server with OBO (On-Behalf-Of) authentication, designed for deployment as a Databricks app.
Features
The server implements three MCP tools:
test_connection: Test server connectivity and OBO authentication status
echo: Echo back a message (useful for testing basic functionality)
get_user_info: Retrieve current user information via OBO authentication
Related MCP server: Databricks MCP Server
Authentication
This server uses Databricks OBO (On-Behalf-Of) authentication with ModelServingUserCredentials, allowing it to act on behalf of the authenticated user making requests.
Deployment to Databricks
Prerequisites
Install Databricks CLI
Authenticate to your workspace:
databricks auth login --host https://<your-workspace-hostname>
Deploy Steps
Create the Databricks app:
databricks apps create mcp-cust-katUpload and deploy:
DATABRICKS_USERNAME=$(databricks current-user me | jq -r .userName) databricks sync . "/Users/$DATABRICKS_USERNAME/mcp-cust-kat" databricks apps deploy mcp-cust-kat --source-code-path "/Workspace/Users/$DATABRICKS_USERNAME/mcp-cust-kat"Access your app:
The app URL will be available in the Databricks UI
MCP endpoint:
https://<app-url>/mcpHealth check:
https://<app-url>/health
API Endpoints
GET / - Root endpoint with server information
GET /health - Health check endpoint with OBO authentication status
POST /mcp - Main MCP JSON-RPC endpoint
Testing the Server
Once deployed, you can test the connection using the available MCP tools:
test_connection: Verifies the server is running and shows OBO authentication status
echo: Simple echo test to verify request/response functionality
get_user_info: Returns detailed information about the authenticated user
Local Development
Run locally for testing:
uv run python server.pyThe server will start on port 8000 with both HTTP and MCP protocol support.
Project Structure
server.py- Main FastAPI application with MCP protocol implementationapp.yaml- Databricks app configurationpyproject.toml- Python project configuration and dependenciesrequirements.txt- Direct dependencies for the application
This server cannot be deployed
Maintenance
Related MCP Connectors
Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
- BasedashOAuthcom.basedash
Governed BI MCP. Ask questions of live company data and list workspace sources via OAuth.
Public tools to understand Dynamik, discover datasets, and connect account-scoped capabilities.
Query, browse, and automate OmegaAI workspaces from any MCP client. Streamable HTTP with OAuth 2.0.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to interact with Databricks workspaces through a secure, authenticated interface. Supports custom prompts and tools that leverage the Databricks SDK for workspace management, job execution, and SQL operations.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to interact with Databricks workspaces through custom prompts and tools. Supports cluster management, SQL execution, and workspace operations with OAuth authentication.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Databricks workspaces programmatically, providing comprehensive tools for cluster management, notebook operations, job orchestration, Unity Catalog data governance, user management, permissions control, and FinOps cost analytics.188 npmMIT
- FlicenseNot gradedqualityDmaintenanceImplements the on-behalf-of flow with Entra ID to enable authorized calls to Microsoft Graph API via MCP tools.9-