Install guide · VS Code
Install MCP ZAP Server for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "dtkmn-mcp-zap-server": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/dtkmn/mcp-zap-server:v0.18.0" ], "env": { "ZAP_SCAN_LAUNCH_JOURNAL_DIRECTORY": "", "ZAP_API_URL": "mcp-zap-zap", "ZAP_API_PORT": "8090", "ZAP_API_KEY": "YOUR_ZAP_API_KEY", "MCP_API_KEY": "YOUR_MCP_API_KEY", "MCP_SECURITY_MODE": "", "MCP_SECURITY_ENABLED": "", "MCP_SECURITY_ALLOW_PLACEHOLDER_API_KEY": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |