Enables interaction with Databricks services including submitting code to clusters, creating and running jobs, creating Delta Live Tables (DLT) pipelines, and retrieving job status and error information from Databricks workspaces.
Provides local file management capabilities including creating folders and directories, creating Python files with content, and editing existing files.
Databricks MCP Server
A FastAPI-based MCP (Model Context Protocol) server that provides tools for local file management and Databricks operations.
Features
Local File Management
- Create folders and directories
- Create Python files with content
- Edit existing files
Databricks Operations
- Submit code to Databricks clusters
- Create and run Databricks jobs
- Create Delta Live Tables (DLT) pipelines
- Get job errors and status information
Setup
1. Install Dependencies
2. Environment Configuration
Create a .env
file in the project root:
3. Run the Server
API Endpoints
File Management
Create Folder
Create Python File
Edit File
Databricks Operations
Submit Code
Create Job
Run Job
Create DLT Pipeline
Get Job Error
Check Job Status
Claude Desktop Integration
1. Copy Configuration Files
Copy the MCP configuration files to your Claude Desktop configuration directory:
macOS:
Windows:
Linux:
2. Start Your MCP Server
Make sure your Databricks MCP server is running:
3. Restart Claude Desktop
Restart Claude Desktop to load the new MCP configuration.
4. Use the Tools
Claude Desktop will now have access to all the Databricks and file management tools. You can ask Claude to:
- "Create a folder called 'my_project'"
- "Create a Python file with some Databricks code"
- "Submit this code to my Databricks cluster"
- "Create a DLT pipeline for data processing"
- "Check the status of my job"
Testing
Run the test suite:
Error Handling
The server provides detailed error messages and logging. All operations return a consistent response format:
Security Notes
- Store your Databricks token securely
- Use environment variables for sensitive configuration
- Consider using Databricks workspace-specific tokens with limited permissions
- The server runs on
0.0.0.0:8000
by default - adjust for your security requirements
Troubleshooting
Common Issues
- Environment Variables Not Loaded: Make sure you have
python-dotenv
installed and a.env
file in the project root. - Databricks Connection Issues: Verify your host URL and token are correct. Test with a simple API call first.
- Permission Errors: Ensure the server has write permissions for file operations.
- Port Already in Use: Change the port in the uvicorn command or kill the existing process.
Logs
The server provides detailed logging. Check the console output for debugging information.
1. Create the Subfolder and Minimal Server
Directory structure:
main.py:
requirements.txt:
2. Install Dependencies
3. Test the Server Manually
- Visit http://localhost:9000/ in your browser. You should see:
4. Update Claude Config
Edit your claude_desktop_config.json
to point to this test server:
- Replace
/full/path/to/
with the actual path on your system.
5. Restart Claude Desktop
- Fully quit and restart Claude Desktop.
- See if you get any connection or server errors.
6. What to Look For
- If Claude Desktop can connect, you should see requests in your test server’s terminal.
- If not, and you still see no requests, the issue is with Claude’s config, file location, or local network.
7. If You Want, I Can Generate the Files
Let me know if you want me to generate the exact code for main.py
and requirements.txt
for you!
This minimal test will help you isolate whether the problem is with your main server, your config, or Claude Desktop’s ability to reach any local MCP server.
Let me know when you’ve tried this and what you see!
Why This Happens
- Claude Desktop starts the server in the directory:
/Users/stephen.hsu/Desktop/cursor_test/mcp_dbx_pure
- But your test server code is in:
/Users/stephen.hsu/Desktop/cursor_test/mcp_dbx_pure/mcp_test_server/main.py
So, when it runs:
from the parent directory, there is no main.py
in the current directory, so import fails.
How to Fix
1. Update the "args"
in your config to include the subfolder:
Change from:
to:
This tells Uvicorn to look for the main
module inside the mcp_test_server
package.
2. Make mcp_test_server
a Python package
Add an empty __init__.py
file to mcp_test_server
:
3. Update Your Config
Your claude_desktop_config.json
should look like:
4. Restart Claude Desktop
- Save the config.
- Restart Claude Desktop.
Why This Works
uvicorn mcp_test_server.main:app
tells Python to look formain.py
inside themcp_test_server
package, no matter what the current working directory is.- The
__init__.py
file makesmcp_test_server
a valid Python package.
Summary
- Update the
"args"
to usemcp_test_server.main:app
- Add
__init__.py
tomcp_test_server
- Restart Claude Desktop
This should allow Claude Desktop to start and connect to your minimal MCP test server!
Let me know if you see requests in your test server terminal after this change, or if you get a new error.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A FastAPI-based server that provides tools for local file management and Databricks operations, enabling users to create/edit files locally and interact with Databricks clusters, jobs, and DLT pipelines.
- Features
- Setup
- API Endpoints
- Claude Desktop Integration
- Testing
- Error Handling
- Security Notes
- Troubleshooting
- 1. Create the Subfolder and Minimal Server
- 2. Install Dependencies
- 3. Test the Server Manually
- 4. Update Claude Config
- 5. Restart Claude Desktop
- 6. What to Look For
- 7. If You Want, I Can Generate the Files
- Why This Happens
- How to Fix
- Why This Works
- Summary
Related MCP Servers
- -securityAlicense-qualityA modular, extensible FastAPI-based platform that aggregates multiple AI tools and microservices into a unified interface with standardized I/O formats, perfect for frontend integration or LLM system orchestration.Last updated -2PythonMIT License
- -securityAlicense-qualityA lightweight FastAPI server that allows remote execution of shell commands on Windows, with real-time output streaming and security features like API key authentication and rate limiting.Last updated -1PythonMIT License
- -securityFlicense-qualityAn advanced management platform that integrates FastAPI and React TypeScript, providing a modern user interface with SQLite database and action history tracking.Last updated -Python
- -securityAlicense-qualityA lightweight, multi-tenant blob storage and diff server that helps LLM coding agents manage large code edits while reducing hallucinations and maintaining work integrity.Last updated -PythonMIT License