Configure HoloViz MCP for Windsurf¶
This guide shows you how to configure HoloViz MCP with Windsurf IDE.
Prerequisites¶
- Windsurf IDE installed (Download)
- HoloViz MCP installed (Installation guide)
Locate Your Configuration File¶
Find your Windsurf MCP configuration file. The location varies by operating system and Windsurf version. Common locations include:
- macOS:
~/Library/Application Support/Windsurf/config.jsonor similar - Windows:
%APPDATA%\Windsurf\config.jsonor similar - Linux:
~/.config/Windsurf/config.jsonor similar
Note
The exact configuration file location may vary. Check Windsurf's documentation for your specific version.
Add the MCP Server¶
- Open the Windsurf MCP configuration file in a text editor
- Add this configuration:
- Save the file
- Restart Windsurf
Existing Configuration
If your file already has other MCP servers configured, add "holoviz" to the existing mcpServers object:
Test Your Configuration¶
Test the configuration with Windsurf's AI:
- Simple Query - Open Windsurf's AI assistant and ask:
- Detailed Query - Ask for specific information:
- Code Generation - Ask Windsurf AI to generate code:
If Windsurf's AI provides detailed, accurate responses with specific Panel component information, your configuration is working! 🎉
Advanced Configuration¶
Set Log Level¶
For debugging, increase the log level:
{
"mcpServers": {
"holoviz": {
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "DEBUG"
}
}
}
}
Custom Configuration Directory¶
Use a custom directory for configuration and data:
{
"mcpServers": {
"holoviz": {
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_USER_DIR": "/path/to/custom/dir"
}
}
}
}
Troubleshooting¶
Configuration File Not Found¶
Check Windsurf's documentation for the correct configuration file location for your version.
Create the file if it doesn't exist, using the configuration above.
Server Not Starting¶
Check that holoviz-mcp is installed:
Test the server directly:
Press Ctrl+C to stop it.
Windsurf AI Not Recognizing Components¶
- Verify documentation index exists:
- Recreate the index:
- Restart Windsurf
Configuration Not Loading¶
Verify JSON syntax - ensure there are no trailing commas, missing quotes, or other syntax errors.
Restart Windsurf completely - quit and reopen the application.
Check logs - look for error messages in Windsurf's output or logs.
Permission Errors¶
Linux/macOS: Ensure the configuration file is readable:
Next Steps¶
- Getting Started Tutorial: Complete walkthrough for Windsurf
- Configuration Options: Customize HoloViz MCP behavior
- Troubleshooting Guide: Fix common issues