Configure Settings¶
This guide shows you how to customize HoloViz MCP behavior through the configuration file and environment variables.
Prerequisites¶
- HoloViz MCP installed (Installation guide)
Configuration File Location¶
HoloViz MCP uses a YAML configuration file:
Use Custom Configuration Directory¶
Set a custom configuration directory:
Then restart your IDE/AI assistant.
Configuration Schema¶
Enable validation and autocompletion by adding this line to your config:
# yaml-language-server: $schema=https://raw.githubusercontent.com/MarcSkovMadsen/holoviz-mcp/refs/heads/main/src/holoviz_mcp/config/schema.json
# Your configuration here
This enables real-time validation in VS Code with the vscode-yaml extension.
Environment Variables¶
Server Configuration¶
HOLOVIZ_MCP_TRANSPORT
Transport mode for the server.
Values: stdio, http
Default: stdio
HOLOVIZ_MCP_HOST
Host address to bind to (HTTP transport only).
Default: 127.0.0.1
HOLOVIZ_MCP_PORT
Port to bind to (HTTP transport only).
Default: 8000
HOLOVIZ_MCP_LOG_LEVEL
Server logging level.
Values: DEBUG, INFO, WARNING, ERROR
Default: INFO
HOLOVIZ_MCP_SERVER_NAME
Override the server name.
Default: holoviz-mcp
Remote Development¶
JUPYTER_SERVER_PROXY_URL URL prefix for Panel apps when running remotely.
Use this when running in JupyterHub or similar environments.
Documentation Configuration¶
ANONYMIZED_TELEMETRY
Enable or disable Chroma telemetry.
Values: true, false
Default: false
IDE-Specific Configuration¶
VS Code Configuration¶
Set environment variables in mcp.json:
{
"servers": {
"holoviz": {
"type": "stdio",
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "DEBUG"
}
}
}
}
Claude Desktop Configuration¶
{
"mcpServers": {
"holoviz": {
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "INFO"
}
}
}
}
Claude Code Configuration¶
Edit ~/.claude.json:
{
"mcpServers": {
"holoviz": {
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "DEBUG",
"HOLOVIZ_MCP_USER_DIR": "/custom/path"
}
}
}
}
Cursor Configuration¶
Set environment variables in Cursor's MCP settings:
Windsurf Configuration¶
Edit Windsurf's config file:
{
"mcpServers": {
"holoviz": {
"command": "holoviz-mcp",
"env": {
"HOLOVIZ_MCP_LOG_LEVEL": "DEBUG"
}
}
}
}
View Current Configuration¶
HoloViz MCP includes a built-in configuration viewer:
Navigate to the Configuration Viewer tool to see your current configuration.
Next Steps¶
- Configure Display Server: Set up the display tool
- Add Custom Documentation: Index your own libraries
- Troubleshooting: Fix configuration issues