# SafeInstall MCP server

> Enforces supply-chain security policies for npm, pnpm, and bun by checking release age, provenance, and typosquatting before package installation.

- Repository: https://github.com/Mickdownunder/SafeInstall
- Page: https://hostedmcp.org/servers/mickdownunder/safeinstall
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 0.12.0

## Install

### Claude Code

```sh
claude mcp add safeinstall -- npx -y safeinstall-cli
```

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

```json
{
  "mcpServers": {
    "safeinstall": {
      "command": "npx",
      "args": [
        "-y",
        "safeinstall-cli"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "safeinstall": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "safeinstall-cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"safeinstall","type":"stdio","command":"npx","args":["-y","safeinstall-cli"]}'
```

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

```json
{
  "mcpServers": {
    "safeinstall": {
      "command": "npx",
      "args": [
        "-y",
        "safeinstall-cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add safeinstall -- npx -y safeinstall-cli
```

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

```toml
[mcp_servers.safeinstall]
command = "npx"
args = ["-y", "safeinstall-cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user safeinstall npx -- -y safeinstall-cli
```

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

```json
{
  "mcpServers": {
    "safeinstall": {
      "command": "npx",
      "args": [
        "-y",
        "safeinstall-cli"
      ]
    }
  }
}
```

## FAQ

### Does SafeInstall require a cloud account or internet connection for policy enforcement?

No, it is a local-first tool that requires no cloud dependency, no account, and no dashboard.

### How does SafeInstall handle maintainer-compromise attacks?

It uses provenance continuity to detect if a package version is attested from a different source repository than the established baseline, even if the signature is valid.
