Databricks MCP Server provides a Model Context Protocol interface to interact with Databricks workspaces. It allows you to access catalogs, schemas, tables, and execute SQL queries through a standardized protocol. This server bridges the gap between your development environment and Databricks resources.
You can download the latest release of the Databricks MCP Server for your platform from the Releases page.
Install the Databricks MCP Server extension in VS Code using either of these methods:
Method 1: Run the following command in your terminal:
# For VS Code
code --add-mcp '{"name":"databricks","command":"npx","args":["databricks-mcp-server@latest"]}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"databricks","command":"npx","args":["databricks-mcp-server@latest"]}'
Method 2: Use NPX directly:
npx databricks-mcp-server@latest
The Databricks MCP Server runs on:
The server uses Databricks unified authentication. Refer to the Databricks Authentication documentation for detailed configuration instructions.
Launch the MCP server with:
./databricks-mcp-server
The server will listen for MCP protocol commands on standard input/output.
Lists all available catalogs in your Databricks workspace.
Tool name: list_catalogs
Parameters: None
Example usage:
{
"name": "list_catalogs",
"parameters": {}
}
Lists all schemas within a specified catalog.
Tool name: list_schemas
Parameters:
catalog (string, required): Name of the catalog to list schemas fromExample usage:
{
"name": "list_schemas",
"parameters": {
"catalog": "my_catalog"
}
}
Lists tables in a specified schema with optional filtering.
Tool name: list_tables
Parameters:
catalog (string, required): Name of the catalog containing the schemaschema (string, required): Name of the schema to list tables fromfilter_pattern (string, optional): Regular expression to filter table names (default: ".*")Example usage:
{
"name": "list_tables",
"parameters": {
"catalog": "my_catalog",
"schema": "my_schema",
"filter_pattern": "sales_.*"
}
}
Runs SQL statements on a Databricks SQL warehouse.
Tool name: execute_sql
Parameters:
statement (string, required): SQL statement to executetimeout_seconds (number, optional): Timeout in seconds (default: 60)row_limit (number, optional): Maximum number of rows to return (default: 100)Example usage:
{
"name": "execute_sql",
"parameters": {
"statement": "SELECT * FROM my_catalog.my_schema.my_table LIMIT 10",
"timeout_seconds": 120,
"row_limit": 50
}
}
Lists all available SQL warehouses in your Databricks workspace.
Tool name: list_warehouses
Parameters: None
Example usage:
{
"name": "list_warehouses",
"parameters": {}
}
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "databricks" '{"command":"npx","args":["-y","databricks-mcp-server@latest"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"databricks": {
"command": "npx",
"args": [
"-y",
"databricks-mcp-server@latest"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"databricks": {
"command": "npx",
"args": [
"-y",
"databricks-mcp-server@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect