pkgxray
MCP server by adamsjack711-ux Community
Scans npm and PyPI packages, MCP servers and AI agent extensions before install or connection. Returns SAFE, REVIEW or BLOCK verdicts with cited evidence for developers and teams.
Install pkgxray
Built from the published package, never by AI.
claude mcp add pkgxray -- npx -y pkgxrayRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pkgxray": {
"args": [
"-y",
"pkgxray"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pkgxray": {
"args": [
"-y",
"pkgxray"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pkgxray": {
"args": [
"-y",
"pkgxray"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pkgxray -- npx -y pkgxray{
"mcpServers": {
"pkgxray": {
"args": [
"-y",
"pkgxray"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pkgxray npx -y pkgxrayGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pkgxray block.
About
pkgxray inspects an npm or PyPI package, an MCP server, or an AI agent extension before you install it or connect to it. It returns a SAFE, REVIEW, or BLOCK verdict based on fixed rules, and every finding names the file and the evidence behind it. The analysis is static and runs locally without installing npm dependencies. Normal scans never execute package code.
The tool also checks known CVEs through OSV, audits lockfiles, and can gate installs in CI, coding agents and MCP clients. It is built for developers and teams whose AI assistants install packages or connect to MCP servers, often without a person reading the code first. An opt-in canary can execute a package in a sandbox. The source notes that it can confirm malice but can never prove safety.
Written from the project's README and checked against it.
What you need
- Node.js
- npx
Try asking
- Vet the MCP server npm:some-mcp-server@1.4.2 before I connect to it
- Check whether express@4.21.0 is safe to install and explain the verdict
- Audit my package-lock.json for risky or vulnerable dependencies
Good to know
- Static analysis cannot see a payload that is downloaded only at runtime
- A SAFE verdict does not prove a package is harmless
- PyPI coverage is limited to source distributions; no wheel inspection or full Python behavioral analysis
- Detection results come from internal synthetic test cases, not an independent audit
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Vet an MCP server before connecting
- Gate package installs run by an AI agent
- Audit lockfiles in CI
Alternatives to pkgxray
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
pkgxray: common questions
Does pkgxray run the package code it scans?
Default guard and audit scans are static and never execute package code. The opt-in canary executes a package in a sandbox to confirm what it does.
Does a SAFE verdict mean a package is harmless?
No. The source says SAFE is not proof that a package is harmless, because static analysis cannot see a payload downloaded only at runtime.
Does pkgxray replace npm audit?
No. The source says npm audit and OSV-Scanner check published CVEs, and pkgxray is meant to run alongside them.
How do I install pkgxray?
In Claude Code run claude mcp add pkgxray -- npx -y pkgxray. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is pkgxray the official server?
pkgxray is a community project by adamsjack711-ux, not verified by a company domain.
Is pkgxray free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pkgxray safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pkgxray?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does pkgxray work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
