Connects Claude and other AI coding assistants to Black Duck Signal's security scanner with two main tools: run_changes_security_scan for incremental Git-based analysis of uncommitted changes or branch differences, and run_security_scan for targeted file and directory checks. Both return SARIF reports with vulnerability counts and severity breakdowns. The changes scan is faster since it only analyzes modified code, making it ideal for catching issues during active development. Requires a Signal license and API key. Best when you want security feedback directly in your coding assistant without switching to separate scanning tools or waiting for CI/CD pipelines.
Black Duck MCP brings Signal's AI-powered security analysis directly into your development environment. It enables code scanning through leading coding assistants – including Claude, Gemini, Cursor, Copilot, and others – so you can detect security issues, receive actionable insights, and apply recommended fixes quickly and consistently.
Add the following configuration to your MCP client (using Claude user level config as example):
{
"mcpServers": {
"black-duck-signal": {
"command": "npx",
"args": ["-y", "@black-duck/mcp-server"],
"env": {
"BLACKDUCK_MCP_GATEWAY_KEY": "your-api-key-here"
}
}
}
}
Use one of following prompts in your MCP client to get you started:
Scan my code changes for security vulnerabilities
Your MCP client should execute a security scan and report any vulnerabilities found on the code changes made. Requires that the project is git based to determine what files have changed.
Scan the changed files with respect to the main branch
Your MCP client should execute a security scan taking into account only code changes in the current branch vs the main branch and report any vulnerabilities found on the code changes made. Requires that the project is git based to determine what files have changed.
Scan all files under folder foobar for security vulnerabilities
Your MCP client should execute a security scan and report any vulnerabilities found.
| Tool | Parameters | Returns | Best Use Cases |
|---|---|---|---|
run_changes_security_scan | projectPath (required): Absolute path to git projectgitPatchMode (required):• all-uncommitted: Scan staged + unstaged changes• reference-branch: Scan changes since branchingreferenceBranch (optional): Reference branch name (e.g., main)scanEntireFileContent (optional): When true, scans entire content of changed files instead of just changed lines. Default: false | • sarifFilePath: Path to SARIF report• status: success or failure• resourceUris: MCP resource URIs• issueCounts: Counts by severity• analysisGuidance: Analysis steps | • Faster: Analyzes only changed code • Focused: Shows issues from your changes • Iterative: Perfect for dev workflows & CI/CD • Efficient: Reduces scan cost and time |
run_security_scan | projectPath (required): Absolute path to projectfilePaths (required): Array of file/directory absolute paths to scan | • sarifFilePath: Path to SARIF report• status: success or failure• resourceUris: MCP resource URIs• issueCounts: Counts by severity• analysisGuidance: Analysis steps | • Analyzing specific files/directories • Focused security review of critical paths • Quick checks during development • Non-git projects |
The Black Duck Signal MCP server supports the following environment variables:
| Variable | Default | Description |
|---|---|---|
BLACKDUCK_MCP_GATEWAY_KEY | None (required) | API key for enhanced AI analysis |
BLACKDUCK_HOME | User's home directory | Override the default .blackduck folder location |
BLACKDUCK_MCP_TOOL_TIMEOUT | 1800000 (30 min) | Scan timeout in milliseconds |
BLACKDUCK_MCP_LOG_LEVEL | info | Log level: error, warn, info, or debug |
You can set these variables in your MCP client configuration:
{
"mcpServers": {
"black-duck": {
"command": "npx",
"args": ["-y", "@black-duck/mcp-server"],
"env": {
"BLACKDUCK_MCP_GATEWAY_KEY": "your-api-key-here",
"BLACKDUCK_MCP_LOG_LEVEL": "debug"
}
}
}
}
All MCP logs are written to /Users/<username>/.blackduck/mcp/logs/ for linux/mac and C:\Users\<Username>\AppData\Roaming\BlackDuck\mcp\logs\ (customizable via BLACKDUCK_HOME):
black-duck-mcp.log - Combined log (all levels)black-duck-mcp-error.log - Error-only logThe following URLs and IP addresses must be accessible for the MCP server to function properly:
| URL | IP Address |
|---|---|
repo.blackduck.com | 34.149.5.115 |
llm.core.blackduck.com | 104.18.36.253 |
Ensure your firewall allows outbound HTTPS (port 443) connections to these endpoints
This project is licensed under the MIT License.
com.exploit-intel/eip-mcp
dmontgomery40/pentest-mcp
pantheon-security/notebooklm-mcp-secure
cyanheads/pentest-mcp-server
io.github.devinder1/tridentchain-security