cancel
Showing results for 
Search instead for 
Did you mean: 
Genie Hub
Explore technical articles, practical guides, best practices, and real-world use cases to help you get the most out of Databricks Genie. Learn from the Databricks team, MVPs, and community experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting VS Code and GitHub Copilot to the Databricks Managed MCP Server

charlie_wei
New Contributor III

Recently, Databricks released a preview version of the Managed MCP Server. Upon seeing this, I immediately wanted to integrate Databricks Genie with VS Code and GitHub Copilot agent mode. Below, I will briefly share the setup process:

Step 1: Prepare Genie on Databricks.

In this case, I used the sample table samples.nyctaxi.trips to create Genie.

charlie_wei_0-1751613479319.png

Step 2: Configure VS Code

Depending on your requirements, edit either .vscode/mcp.json or .vscode/settings.json in your VS Code workspace. Please refer to the following example for guidance:

{
    "chat.mcp.enabled": true,
    "mcp": {
        "inputs": [],
        "servers": {
            "my-genie": {
                "type": "http",
                "url": "https://<your-workspace-hostname>/api/2.0/mcp/genie/{genie_space_id}",
                "headers": {
                    "Authorization": "Bearer <your-personal-access-token>"
                }
            }
        }
    }
}

You can obtain a personal access token according to the documentation.

Step 3: Use Agent Mode

charlie_wei_1-1751615208235.png

Awesome 😎

1 REPLY 1

kbaig8125
Databricks Partner

Thanks for the example this is something I am looking for