A Model Context Protocol (MCP) server that enables AI-powered security scanning of your code using Black Duck Signal.
- Git Diff Security Scanning - Analyze only changed code for faster, more efficient security reviews
- File-based Security Scanning - Scan specific files for security vulnerabilities
- AI-Native Integration - Seamlessly integrates with Claude, VS Code, and other MCP-compatible tools
npm install -g @black-duck/mcp-serverAdd to your MCP client configuration:
VS Code (settings.json):
{
"mcp": {
"servers": {
"black-duck": {
"command": "npx",
"args": ["@black-duck/mcp-server"]
}
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"black-duck": {
"command": "npx",
"args": ["@black-duck/mcp-server"]
}
}
}Recommended - Analyzes git diffs for security vulnerabilities. This is the most efficient way to scan code changes.
Parameters:
projectPath(required) - Path to the git project directorygitPatchMode(required) - Git patch generation mode:all-uncommitted- Scans all uncommitted changes (staged + unstaged)reference-branch- Scans changes compared to a reference branch
referenceBranch- Reference branch name (required forreference-branchmode)
Example usage:
Scan my uncommitted changes for security issues
Analyzes specific files for security vulnerabilities.
Parameters:
projectPath(required) - Path to the project directoryfilePaths(required) - List of absolute file paths to scan
Example usage:
Scan src/auth.js for security vulnerabilities
- Node.js 18 or higher
- Git (for diff-based scanning)
See LICENSE for details.