Skip to main content

Black Duck SCA — MCP Servers

PyPI - Version PyPI - License Website Email

Connect your AI coding assistant to the Black Duck Software Composition Analysis (SCA) products. The MCP servers expose your Black Duck instances as a set of tools that any MCP-compatible AI harness can call to perform actions such as: investigate your software's security posture and vulnerabilities, triage findings, scan code and binaries, and generate vulnerability reports and SBOMs.

Table of Contents

  1. Products
  2. Latest changes
  3. Getting Started
  4. Security
  5. Support

Products

This package ships two MCP servers, one per product. Install the one you have an instance for, or both. Each has its own guide with the installation steps, the full list of tools/resources and environment variables, and troubleshooting.

Product MCP Guide Use it to
Black Duck SCA BDSCA Explore Projects and BOMs, triage Vulnerabilities, check Policy compliance, review component matches, run scans, generate SBOM, VEX/CSAF and Notices reports
Black Duck Binary Analysis BDBA Scan binaries and firmware, review the components found in them, triage Vulnerabilities, override component versions, generate reports

You can always check the full list of available tools by asking your AI assistant to list them, e.g. "What Black Duck SCA tools do you have access to and what are their functions?"

Latest changes

See the changelog for the latest changes.

Getting Started

Prerequisites

  • A Black Duck instance (SCA, Binary Analysis or both) with a user account and API token
  • Python 3.13
  • uv — Python package manager
  • Java 11+ (optional) — required only for BDSCA source scanning via Detect

Both servers run from the same blackduck-sca-mcp package, with uvx.

Installation

The guides have the setup instructions for various assistants, e.g. Claude Code, Claude Desktop, VS Code, Copilot CLI and Roo Code:

Once connected, ask your assistant "Am I connected to the Black Duck instance?" to check the setup. If something goes wrong, see the troubleshooting sections of the guides:

Security

Token permissions

API tokens inherit the full permissions of the associated user account. If you provide a token with write access, the AI assistant can modify data in your Black Duck instance — including updating vulnerability remediation status, policy overrides and triages.

We recommend creating a dedicated service account with the minimum permissions required for your use case. See the Role and Permission Matrix for details.

Read-only mode

Set BLACKDUCK_MCP_READ_ONLY=true, or start a server with --read-only, to turn off the tools that change data or write files. The tools it turns off are listed in Read-only Mode for BDSCA and for BDBA.

Token storage

Most AI assistants pass their environment to every MCP server and tool they start, so a token in an env var can be read by all of them. Each server looks for its token in this order:

  1. BLACKDUCK_BDSCA_TOKEN or BLACKDUCK_BDBA_TOKEN, the token itself
  2. BLACKDUCK_BDSCA_TOKEN_FILE or BLACKDUCK_BDBA_TOKEN_FILE, the path of a file with the token
  3. ~/.blackduck/bdsca-token or ~/.blackduck/bdba-token, read when neither of the two above is set

To keep tokens out of the environment, save each one in a file that only your own user can read:

mkdir -p ~/.blackduck && chmod 700 ~/.blackduck
printf '%s' "<bdsca-api-token>" > ~/.blackduck/bdsca-token
printf '%s' "<bdba-api-token>" > ~/.blackduck/bdba-token
chmod 600 ~/.blackduck/bdsca-token ~/.blackduck/bdba-token

and configure only the URLs. The health_check tool shows where the token came from.

Data sent to your LLM provider

MCP tools results go to the LLM that your AI assistant uses. These may hold Vulnerability findings, Project, Version and Component names, Policy settings, and Scan results. The API tokens never go to the LLM.

Black Duck does not control how your LLM provider stores or uses this data, or whether the provider trains models on it. Before you use the servers with sensitive or regulated findings, read your provider's terms and data processing agreement, and use its zero data retention or enterprise options where you need them.

Error details

Unexpected error details, which can hold URLs and file paths, stay in the server log and do not go to the AI assistant. Set BLACKDUCK_MCP_DEV_MODE=true to have errors shown to the LLM too, for example if you are debugging a problem.

Support

Metadata

Release files for blackduck-sca-mcp 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for blackduck-sca-mcp 0.11.1
File Interpreter ABI Platform Actions
blackduck_sca_mcp-0.11.1-cp313-none-any.whl CPython 3.13 none any Details for blackduck_sca_mcp-0.11.1-cp313-none-any.whl

Release files / blackduck_sca_mcp-0.11.1-cp313-none-any.whl

Download URL blackduck_sca_mcp-0.11.1-cp313-none-any.whl
Size 468.3 kB
Tags CPython 3.13
SHA-256 checksum
How to use checksums
3306af41c652f81f06299c529f2b18843a7becf1d8c8b01c3a21c9b1f2c2607a
BLAKE2b-256 checksum
How to use checksums
3344e6d340b889aa498e1b75c31fe8d4ba25d1d75764ccd1bad7290e975c97a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for blackduck-sca-mcp 0.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page