Skip to main content
Glama
setup.ps1•2.71 kB
# PowerShell setup script for Databricks MCP Server param( [switch]$Force # Force reinstallation ) $ErrorActionPreference = "Stop" Write-Host "šŸš€ Setting up Databricks MCP Server..." -ForegroundColor Green # Check if uv is installed try { $uvVersion = uv --version 2>$null Write-Host "āœ… uv is already installed: $uvVersion" -ForegroundColor Green } catch { Write-Host "āŒ uv is not installed. Installing uv..." -ForegroundColor Red irm https://astral.sh/uv/install.ps1 | iex Write-Host "āœ… uv installed successfully" -ForegroundColor Green Write-Host "āš ļø Please restart your terminal and run this script again" -ForegroundColor Yellow exit 0 } # Create virtual environment if it doesn't exist if (-not (Test-Path ".venv") -or $Force) { if ($Force -and (Test-Path ".venv")) { Write-Host "šŸ—‘ļø Removing existing virtual environment..." -ForegroundColor Yellow Remove-Item -Recurse -Force .venv } Write-Host "šŸ“¦ Creating virtual environment..." -ForegroundColor Blue uv venv Write-Host "āœ… Virtual environment created" -ForegroundColor Green } else { Write-Host "āœ… Virtual environment already exists" -ForegroundColor Green } # Activate virtual environment Write-Host "šŸ”§ Activating virtual environment..." -ForegroundColor Blue & .\.venv\Scripts\Activate.ps1 # Install the project in development mode Write-Host "šŸ“„ Installing project dependencies..." -ForegroundColor Blue uv pip install -e . # Install development dependencies Write-Host "šŸ“„ Installing development dependencies..." -ForegroundColor Blue uv pip install -e ".[dev]" # Verify installation Write-Host "šŸ” Verifying installation..." -ForegroundColor Blue try { python -c "import databricks_mcp.server.databricks_mcp_server; print('āœ… MCP server module imported successfully')" Write-Host "āœ… Installation verified successfully" -ForegroundColor Green } catch { Write-Host "āŒ Installation verification failed" -ForegroundColor Red throw } Write-Host "" Write-Host "šŸŽ‰ Setup complete!" -ForegroundColor Green Write-Host "" Write-Host "Next steps:" -ForegroundColor Cyan Write-Host "1. Set your environment variables:" -ForegroundColor White Write-Host " `$env:DATABRICKS_HOST='https://your-databricks-instance.azuredatabricks.net'" -ForegroundColor Gray Write-Host " `$env:DATABRICKS_TOKEN='your-personal-access-token'" -ForegroundColor Gray Write-Host "" Write-Host "2. Start the server:" -ForegroundColor White Write-Host " .\scripts\start_mcp_server.ps1" -ForegroundColor Gray Write-Host "" Write-Host "3. Or run tests:" -ForegroundColor White Write-Host " .\scripts\run_tests.ps1" -ForegroundColor Gray

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robkisk/databricks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server