Getting Started with HoloViz MCP for Copilot + VS Code¶
This tutorial will guide you through installing and using HoloViz MCP with GitHub Copilot and VS Code. By the end, you'll have HoloViz MCP running with specialized Copilot agents and be able to build advanced Panel dashboards!
What you'll learn
- How to install HoloViz MCP
- How to configure it with Github Copilot and VS Code
- How to install and use HoloViz Copilot agents
- How to use HoloViz MCP resources in Copilot
- How to verify everything is working correctly
- How to build your first Panel dashboard
Prerequisites
Before you begin, ensure you have:
- Python 3.11 or newer installed on your system
- uv package installer
- VS Code with GitHub Copilot extension
- GitHub Copilot subscription (required for agents and resources)
Step 1: Install HoloViz MCP¶
Open your terminal and install HoloViz MCP as a uv tool:
This command installs HoloViz MCP globally, making it available for your AI assistant to reference.
What's happening?
The uv tool manager creates an isolated environment for HoloViz MCP and installs all necessary dependencies.
The extra pydata dependencies are added to install a wide range of python data related packages. We will assume these are installed throughout this guide. You can replace them with your favorite dependencies for your own work.
Step 2: Install Chromium¶
Install Chromium to enable the holoviz-mcp server to take screenshots:
📦 This downloads 300MB as it downloads the Chromium and FFMPEG engines.
Step 3: Create the Documentation Index¶
HoloViz MCP needs to index the HoloViz documentation to provide intelligent answers. Run:
⏱️ This will take 5-10 minutes as it downloads and indexes documentation from Panel, hvPlot, and other HoloViz libraries.
Step 4: Install HoloViz Copilot Agents¶
Custom agents enable you to configure the AI to adopt different personas tailored to specific development roles and tasks. Install the HoloViz MCP agents:
You should see output confirming that agents were installed to .github/agents/.
What's happening
This command installs custom Copilot agents specifically designed for HoloViz development. These agents understand the holoviz-mcp server and can use it to understand the architecture patterns and best practices for Panel, hvPlot, and other HoloViz libraries.
Tip
Run holoviz-mcp install copilot --skills to populate the .github/skills folder too. See Use Agent Skills in VS Code for more info.
Step 5: Configure VS Code¶
Now let's configure VS Code to use the HoloViz MCP server:
- In VS Code, open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type "MCP: Add Server..." and press Enter
- Choose "Command (stdio)"
- Choose "holoviz-mcp" as the "Command to run"
- Enter "holoviz" as the "Server ID"
- Choose "Global"
This will add the below configuration to your user mcp.json file.
Please refer to the VS Code | MCP Servers guide for more details.
Step 6: Verify Installation¶
Let's verify that HoloViz MCP is working correctly!
Start the Server¶
- In VS Code, open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type "MCP: List Servers" and press Enter
- Choose the "holoviz" server
- Select "Start Server"
Repeat steps 1-2 and verify that the holoviz MCP server is now running.

Check Server Status¶
In VS Code, you can monitor the MCP server:
- In VS Code, open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type "MCP: List Servers" and press Enter
- Choose the "holoviz" server
- Select "Show Output"
- You should see log messages indicating the server is running
Test with Copilot¶
Open Copilot Chat and try these questions:
Component Discovery:
What Panel components are available for user input?
Force MCP Usage
In VS Code, you can include #holoviz in your prompt to explicitly request that the AI use the holoviz-mcp server tools for your query.
Component Details:
What parameters does the Panel Button component accept?
If Copilot provides detailed, accurate answers with specific Panel component information, congratulations! HoloViz MCP is working correctly! 🎉
Step 7: Build Your First Dashboard¶
Now that everything is set up, let's build a simple dashboard.
Ask Copilot:
Create a Panel dashboard in the file app.py that displays a slider and shows the square of the slider's value. Use panel skills.
Copilot will provide code using HoloViz MCP's knowledge of Panel components!


Step 8: Using HoloViz Resources¶
MCP resources contain curated knowledge that enhances Copilot's understanding of specific frameworks. Let's load the hvPlot best practice skills and use them to create a basic data visualization.
- In the Copilot Chat Interface, click "Add Context" (
CTRL + ') - Select "MCP Resources"
- You'll see a list of available resources. Select
holoviz_hvplot

Notice in the chat interface that the resource is now added to the context.

Ask Copilot:
Please create a basic hvplot visualization in a script.py file.

Tip
You can add multiple resources to the context. Try browsing and adding holoviz_panel as well to get Panel-specific guidance.
Step 9: Using HoloViz Agents¶
Creating a Plan with the HoloViz App Architect Agent¶
Instead of diving straight into code, let's use the specialized agent to plan an application architecture.
- In the Copilot Chat interface, click the Set Agent dropdown
- Select
HoloViz App Architectfrom the list

Type the following prompt:
Create a plan for a stock dashboard that displays historical prices and trading volume
Press Enter and wait for the agent to respond.

What's happening
The HoloViz App Architect agent analyzes your requirements and creates an architecture plan following HoloViz best practices. This ensures your application is well-structured before you write any code.
Implementing the Dashboard¶
Now that you have a plan, let's ask Copilot to help implement it.
In the Copilot Chat, respond to the plan with:
Implement the plan outlined above.
Copilot will generate the code for your dashboard and test it.
What's Next?¶
Now that you have HoloViz MCP running with Copilot + VS Code, explore more:
- Display System: Learn about the display server for visualizations
- Stock Analysis: Create a real-world stock analysis report
- Weather Dashboard: Create an interactive weather visualization
Troubleshooting¶
Installation Issues¶
Problem: uv: command not found
Solution: Install uv by following the uv installation guide
Problem: Installation takes too long
Solution: This is normal! The first installation downloads many dependencies. Subsequent updates are much faster.
Configuration Issues¶
Problem: Copilot doesn't recognize Panel components
Solution:
- Check that the documentation index completed (Step 3)
- Verify your configuration file is correct
- Restart VS Code
- Check the MCP server logs for errors
- Include
#holovizin your prompt to explicitly use HoloViz MCP
Server Issues¶
Problem: MCP server won't start
Solution:
- Verify Python 3.11+ is installed:
python --version - Check uv installation:
uv --version - Try running the server directly:
holoviz-mcp - Check the server logs in VS Code's Output panel
For more help, see the Troubleshooting Guide or join the HoloViz Discord.
Summary¶
In this tutorial, you:
- ✅ Installed HoloViz MCP using uv
- ✅ Created the documentation index
- ✅ Installed Chromium
- ✅ Installed HoloViz Copilot agents
- ✅ Configured Github Copilot and VS Code
- ✅ Verified the installation
- ✅ Built your first Panel dashboard
- ✅ Used HoloViz MCP resources
- ✅ Used specialized HoloViz agents
You're now ready to use HoloViz MCP with Copilot + VS Code to accelerate your Panel development! Happy coding! 🚀