# Black Duck Security Scanner MCP server

> Enables AI coding assistants to perform incremental or targeted security scans to detect vulnerabilities and receive actionable fixes.

- Repository: https://github.com/blackducksoftware/mcp-server
- Page: https://hostedmcp.org/servers/blackducksoftware/mcp-server
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 1.1.8

## Install

### Claude Code

```sh
claude mcp add mcp-server -- npx -y @black-duck/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@black-duck/mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@black-duck/mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@black-duck/mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@black-duck/mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server -- npx -y @black-duck/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@black-duck/mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server npx -- -y @black-duck/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@black-duck/mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `BLACKDUCK_MCP_GATEWAY_KEY` | no | no |  |
| `BLACKDUCK_MCP_LOG_LEVEL` | no | no |  |

## FAQ

### Can I scan specific files or directories?

Yes, the run_security_scan tool allows you to run a targeted security analysis on specific files or directories.

### How can I scan only the code changes I have made?

You can use the run_changes_security_scan tool, which performs fast, incremental security scans focused only on the code changes introduced by the developer.

### Does the server support Windows, macOS, and Linux?

Yes, it provides cross-platform support for Windows, macOS, and Linux.
