# pkgxray

> pkgxray is a free MCP server for security. Scan npm packages and MCP servers before install, with SAFE, REVIEW or BLOCK verdicts. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, API
- **Website:** https://pkgxray.ca
- **Repository:** https://github.com/adamsjack711-ux/pkgxray
- **MCP Registry name:** io.github.adamsjack711-ux/pkgxray
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

The scanner stages a package in quarantine, reads its source and supply-chain signals, and returns a verdict with cited findings. One example in the docs is express 4.21.0: 15 source files scanned, no skips, and an informational network-access finding. The page is clear that SAFE covers only the checks that finished, and dependencies are not scanned unless requested.

Two ways to use it. The CLI runs with npx, for example the guard command on npm:express@4.21.0, needs Node.js 18 or newer, and does not install the package or run its code. A public remote endpoint at mcp.pkgxray.ca over Streamable HTTP needs no account or key, but it is narrower: it checks supplied source snippets (up to 16 files and 16 KiB in total) and looks up npm metadata and known vulnerabilities.

The limits are spelled out. Static analysis cannot see payloads fetched at runtime, PyPI coverage is thinner than npm, and listing an MCP server's tools can start that server. Submitted snippets are processed on Cloudflare, so secrets should not be sent.

## Features

- **Cited verdicts:** Each SAFE, REVIEW or BLOCK result points to the source lines behind it.
- **No package execution:** Normal static scans read source as data and skip install scripts.
- **Remote MCP endpoint:** Connect over Streamable HTTP with no account or API key.
- **Snippet checks:** Submit up to 16 files and 16 KiB for a behavioural check.
- **Vulnerability lookup:** Look up metadata and known advisories for an exact npm version.

## Good for

- Check an npm package before adding it to a project
- Review a third-party MCP server before connecting it
- Let an agent screen a code snippet for suspicious behaviour
- Look up known vulnerabilities for a pinned version

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http pkgxray https://mcp.pkgxray.ca/mcp
```

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

```sh
https://mcp.pkgxray.ca/mcp
```

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

```json
{
  "mcpServers": {
    "pkgxray": {
      "url": "https://mcp.pkgxray.ca/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "pkgxray": {
      "type": "http",
      "url": "https://mcp.pkgxray.ca/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkgxray": {
      "serverUrl": "https://mcp.pkgxray.ca/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkgxray": {
      "type": "http",
      "url": "https://mcp.pkgxray.ca/mcp"
    }
  }
}
```

## FAQ

### Does it install or run the package?

No. Standard scans download into quarantine and inspect the source without installing it or running its code.

### Does SAFE mean harmless?

No. The page says SAFE is limited to completed checks and is not proof of harmlessness.

### Is an account needed?

Not for the public MCP endpoint, which needs no account or API key.

### Where is submitted code processed?

Snippets sent to the remote endpoint are processed on Cloudflare, so avoid sending secrets.

### Is pkgxray free?

Yes. pkgxray is free to use.

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

Run this command in your terminal: claude mcp add --transport http pkgxray https://mcp.pkgxray.ca/mcp

### What are the best alternatives to pkgxray?

The closest alternatives to pkgxray 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/pkgxray
