databricks-mcp-server
A Model Context Protocol (MCP) server for interacting with Databricks.
You can download the latest release for your platform from the Releases page.
Install the Databricks MCP Server extension in VS Code by pressing the following link:
Alternatively, you can install the extension manually by running the following command:
# 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"]}'
The Databricks MCP Server provides a Model Context Protocol (MCP) interface to interact with Databricks workspaces. It offers the following functionalities:
Lists all catalogs available in the Databricks workspace.
Tool name: list_catalogs
Parameters: None
Returns: JSON array of catalog objects
Lists all schemas in a specified Databricks catalog.
Tool name: list_schemas
Parameters:
catalog
(string, required): Name of the catalog to list schemas fromReturns: JSON array of schema objects
Lists all tables in a specified Databricks 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, default: ".*"): Regular expression pattern to filter table namesReturns: JSON array of table objects
Executes SQL statements on a Databricks SQL warehouse and returns the results.
Tool name: execute_sql
Parameters:
statement
(string, required): SQL statement to executetimeout_seconds
(number, optional, default: 60): Timeout in seconds for the statement executionrow_limit
(number, optional, default: 100): Maximum number of rows to return in the resultReturns: JSON object containing columns and rows from the query result, with information of the SQL warehouse used to execute the statement.
Lists all SQL warehouses available in the Databricks workspace.
Tool name: list_warehouses
Parameters: None
Returns: JSON array of SQL warehouse objects
The application uses Databricks unified authentication. For details on how to configure authentication, please refer to the Databricks Authentication documentation.
Start the MCP server:
./databricks-mcp-server
The server will start and listen for MCP protocol commands on standard input/output.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!