pkgxray
Scan npm packages and MCP servers before install, with SAFE, REVIEW or BLOCK verdicts
- Pricing
- Free
- Platforms
- CLI, API
- Runs
- Locally or Remotely
- Version
- 1.2.2-registry.1
- Listing updated
- 3 days ago
About pkgxray
pkgxray is a free MCP server for security. It can run locally on your machine or as a hosted remote server.
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.
Install
Run in a terminal
claude mcp add --transport http pkgxray https://mcp.pkgxray.ca/mcpAdd to Settings → Connectors → Add custom connector
https://mcp.pkgxray.ca/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"pkgxray": {
"url": "https://mcp.pkgxray.ca/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"pkgxray": {
"type": "http",
"url": "https://mcp.pkgxray.ca/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pkgxray": {
"serverUrl": "https://mcp.pkgxray.ca/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"pkgxray": {
"type": "http",
"url": "https://mcp.pkgxray.ca/mcp"
}
}
}What it does
- 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
Pricing
Free
No account or API key needed for the public endpoint
Prices change. Check pkgxray.ca before you buy.
pkgxray 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 to pkgxray

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools