# npm why (who installs this package)

> npm why (who installs this package) is an open-source MCP server. Why a package is in node_modules, which versions, who pulls it in: npm explain from package-lock. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/lawatch/10aday/tree/HEAD/products/mcp/npm-why
- **MCP Registry name:** io.github.Lawatch/npm-why
- **Listing updated:** 2026-11-16

## About

Why a package is in node_modules, which versions, who pulls it in: npm explain from package-lock.

## Install

### Claude Code (Terminal)

```sh
claude mcp add npm-why -- docker run -i --rm ghcr.io/lawatch/npm-why:1.0.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "npm-why": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/npm-why:1.0.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "npm-why": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/npm-why:1.0.0"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "npm-why": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/npm-why:1.0.0"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "npm-why": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/npm-why:1.0.0"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "npm-why": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/lawatch/npm-why:1.0.0"
      ]
    }
  }
}
```

## FAQ

### Is npm why (who installs this package) free?

Yes. npm why (who installs this package) is open source, so you can use and self-host it for free.

### How do I add npm why (who installs this package) to Claude Code?

Run this command in your terminal: claude mcp add npm-why -- docker run -i --rm ghcr.io/lawatch/npm-why:1.0.0

---
Source: https://ai-powered.com/mcp/npm-why-who-installs-this-package
