# dependency-auditor MCP server

> Audits npm, pip, cargo, and other package manifests against the OSV database to detect known CVEs and malicious packages.

- Repository: https://github.com/GuardBee/guardbee-mcp
- Page: https://hostedmcp.org/servers/guardbee/dependency-auditor
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.2.4

## Install

### Claude Code

```sh
claude mcp add dependency-auditor -- npx -y @guardbee/mcp-dependency-auditor
```

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

```json
{
  "mcpServers": {
    "dependency-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-dependency-auditor"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "dependency-auditor": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-dependency-auditor"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"dependency-auditor","type":"stdio","command":"npx","args":["-y","@guardbee/mcp-dependency-auditor"]}'
```

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

```json
{
  "mcpServers": {
    "dependency-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-dependency-auditor"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add dependency-auditor -- npx -y @guardbee/mcp-dependency-auditor
```

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

```toml
[mcp_servers.dependency-auditor]
command = "npx"
args = ["-y", "@guardbee/mcp-dependency-auditor"]
```

### Gemini CLI

```sh
gemini mcp add -s user dependency-auditor npx -- -y @guardbee/mcp-dependency-auditor
```

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

```json
{
  "mcpServers": {
    "dependency-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-dependency-auditor"
      ]
    }
  }
}
```

## Tools (4)

- `audit_npm`: Audit npm dependencies from a package.json (and optionally package-lock.json) for known CVEs using the OSV database
- `audit_pip`: Audit Python dependencies from requirements.txt or pyproject.toml for known CVEs using the OSV database
- `audit_package`: Audit a single package by name, version, and ecosystem
- `audit_directory`: Auto-detect and audit npm and pip manifests (package.json, requirements.txt, pyproject.toml) in a directory

## FAQ

### Does the dependency auditor require an API key?

No, it uses Google's open-source vulnerability database which is free and requires no authentication.

### Which ecosystems are supported for single package lookups?

You can audit npm, PyPI, crates.io, Maven, Go, and RubyGems.

### How does the tool handle malicious packages?

Known-malicious releases are reported first as critical and include recommended removal and credential-rotation actions.
