# Audit MCP & AI SDK npm Packages for CVEs

**Use case:** 

Searches the official npm registry for 'mcp' packages and audits each package's latest release against OSV.dev, deps.dev, and OpenSSF Scorecard to uncover licenses, CVEs, GitHub repos, and supply-chain risk scores.

## Input

```json
{
  "packages": [],
  "npmSearchQuery": "mcp",
  "includeScorecard": true,
  "onlyVulnerable": false,
  "maxResults": 20
}
```

## Output

```json
{
  "ecosystem": {
    "label": "Ecosystem",
    "format": "string"
  },
  "packageName": {
    "label": "Package Name",
    "format": "string"
  },
  "version": {
    "label": "Version",
    "format": "string"
  },
  "licenses": {
    "label": "SPDX Licenses",
    "format": "array"
  },
  "vulnerabilityCount": {
    "label": "OSV / CVE Count",
    "format": "integer"
  },
  "vulnerabilityIds": {
    "label": "Advisory IDs",
    "format": "array"
  },
  "openssfScorecard": {
    "label": "OpenSSF Scorecard",
    "format": "number"
  },
  "starsCount": {
    "label": "Repo Stars",
    "format": "integer"
  },
  "supplyChainRiskScore": {
    "label": "Risk Score (0-100)",
    "format": "integer"
  },
  "sourceRepoUrl": {
    "label": "Source Repo",
    "format": "string"
  },
  "depsDevUrl": {
    "label": "deps.dev URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Open-Source Package Security, Licenses & SBOM API Intel Actor is ready to run with the inputs already set for "Audit MCP & AI SDK npm Packages for CVEs". [Sign up or log in](https://console.apify.com/create-task-from-example/HNU3GjANTxK2raqW9) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Audit MCP & AI SDK npm Packages for CVEs" task

The Open-Source Package Security, Licenses & SBOM API Intel Actor will start running based on the input automatically. You can also change all the input fields, like packages to audit (ecosystem:name or ecosystem:name@version), optional npm registry keyword search (e.g. mcp, langchain, sdk), and more, to match your specific use case.

### 3. Receive the "Audit MCP & AI SDK npm Packages for CVEs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as ecosystem, package name, version, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Audit MCP & AI SDK npm Packages for CVEs" task via API](https://apify.com/grimbles/oss-supply-chain-security-sbom-intel.md).

## FAQ

### How does npmSearchQuery discover packages automatically?

Passing npmSearchQuery queries registry.npmjs.org/-/v1/search live and sends each discovered package through deps.dev and OSV.dev auditing.

### Why audit MCP and AI agent npm dependencies?

AI teams adopting Model Context Protocol servers verify licenses, OpenSSF Scorecard maintenance health, and zero-CVE posture before production installs.

### Can I search other npm topics like langchain or auth?

Change npmSearchQuery to langchain, openai, vector, or any keyword in the duplicated task configuration.

### Does the output include links to source repositories and deps.dev?

Every audited package returns sourceRepoUrl, homepageUrl, and depsDevUrl when indexed by deps.dev.

## About this Actor

This example demonstrates how to use [Open-Source Package Security, Licenses & SBOM API Intel](https://apify.com/grimbles/oss-supply-chain-security-sbom-intel.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/grimbles/oss-supply-chain-security-sbom-intel.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/grimbles/oss-supply-chain-security-sbom-intel.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
