# NPMScan

> NPMScan is a free MCP server for security. Look up malicious and vulnerable npm packages, free and without an API key. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API, CLI
- **Website:** https://npmscan.com
- **Repository:** https://github.com/salemalem/npmscan-mcp-plugin
- **MCP Registry name:** io.github.salemalem/npmscan
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-15

## About

NPMScan began as a browser scanner that runs lightweight static analysis for malware-like behavior: obfuscation, suspicious postinstall hooks, inlined network calls, environment-variable access and drainer signatures. Its pitch is that it targets non-CVE malware, where npm audit relies on known CVEs.

The MCP server adds 23 read-only tools for packages and vulnerabilities, each result linking back to a write-up on npmscan.com. Findings carry an isMalware flag so a confirmed-malicious package is reported as something to remove, not an ordinary bug. Tools named in the README include batch vulnerability queries, package and version lookups, transitive dependency analysis, dependency diffs, npm audit enrichment and GitHub repository audits.

A Claude Code plugin bundles skills for dependency audits, single-package trust checks and evaluating new dependencies. The server is stateless and rate-limited to 30 requests a minute per IP. The site says it does not store package source or tarballs.

## Features

- **Malware flag:** Each finding says whether the package is confirmed malicious.
- **Batch vulnerability queries:** Check many dependencies in one call.
- **Transitive analysis:** Walk dependency trees for risky packages.
- **Dependency diffs:** Compare before and after dependency sets.
- **npm audit enrichment:** Add context to raw npm audit output.
- **Audit skills:** Plugin skills chain tools into audit and trust-check reports.

## Good for

- Check whether a package was compromised before installing it
- Audit a package.json or lockfile
- Diff dependencies in a pull request
- Audit a GitHub repository's dependencies
- Review maintainer changes for takeover patterns

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http npmscan https://npmscan.com/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://npmscan.com/api/mcp
```

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

```json
{
  "mcpServers": {
    "npmscan": {
      "url": "https://npmscan.com/api/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "npmscan": {
      "type": "http",
      "url": "https://npmscan.com/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "npmscan": {
      "serverUrl": "https://npmscan.com/api/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "npmscan": {
      "type": "http",
      "url": "https://npmscan.com/api/mcp"
    }
  }
}
```

## Tools

- `batch_query_vulnerabilities`: Query vulnerabilities for many packages at once.
- `get_package`: Package details.
- `get_package_version`: Details for one package version.
- `analyze_transitive_dependencies`: Analyze the transitive dependency tree.
- `diff_dependencies`: Diff two dependency sets.
- `enrich_npm_audit`: Enrich raw npm audit JSON.
- `audit_github_repository`: Audit a GitHub repository.

## FAQ

### Do I need a key?

No API key or login is needed.

### What is the rate limit?

30 requests per minute per IP.

### Does it keep my code?

The site says it does not store package source code or uploaded tarballs.

### How does it differ from npm audit?

It looks at malware-like behavior, not only known CVEs.

### How many tools?

23, per the plugin README.

### Is NPMScan free?

Yes. NPMScan is free to use.

### How do I add NPMScan to Claude Code?

Run this command in your terminal: claude mcp add --transport http npmscan https://npmscan.com/api/mcp

### What are the best alternatives to NPMScan?

The closest alternatives to NPMScan are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/npmscan
