Home / Security / pkgtruth

pkgtruth

io.github.hxckya/pkgtruth · v0.2.2 stdio

Score 83. Maintenance 40 of 40, security 35 of 35, adoption 8 of 25.

Catches hallucinated and slopsquatted npm and PyPI packages before an agent installs them.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #32 of 314 Security servers on Socketlist by score, with 4 GitHub stars and a last code push 1d ago.

Install

npx -y pkgtruth

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect pkgtruth to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Claude Code setup guide.

claude mcp add --transport stdio pkgtruth -- npx -y pkgtruth

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "pkgtruth": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
PKGTRUTH_REGISTRYNoNoAlternate npm registry to verify against. Defaults to https://registry.npmjs.org.
PKGTRUTH_DOWNLOADS_APINoNoAlternate downloads API used for adoption figures. Defaults to https://api.npmjs.org.
PKGTRUTH_CACHE_DIRNoNoWhere adoption figures are cached between runs. Defaults to ~/.cache/pkgtruth.
PKGTRUTH_TIMEOUT_MSNoNoPer-request timeout in milliseconds. Defaults to 8000.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "pkgtruth"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance40/40Last push 1d ago, 0 open issuesStrong
Security hygiene35/35Licence MIT, SECURITY.md present, published package or hosted endpointStrong
Adoption8/254 GitHub stars, 61 npm downloads a weekWeak

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in Security. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars4
npm weekly downloads61
Last push1d ago
LicenceMIT
Open issues0
SECURITY.mdYes
LanguageJavaScript
Latest version published2026-09-10

Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.

Similar servers

Compare all alternatives

Foster

Score 83. Maintenance 40 of 40, security 30 of 35, adoption 13 of 25.

io.github.foster-oss/foster

Check installs for malware, hallucinated or abandoned packages before an agent runs them.

★ 4↓ 6.1k/wkApache-2.0pushed today Security

SkillTotal

Score 81. Maintenance 40 of 40, security 35 of 35, adoption 6 of 25.

ai.skilltotal/skilltotal

Static security scan of npm and PyPI packages, MCP servers, agent skills and VS Code extensions.

★ 16Apache-2.0pushed 1d ago Security

oathe-mcp

Score 71. Maintenance 40 of 40, security 25 of 35, adoption 6 of 25.

io.github.oathe-ai/oathe-mcp

Oathe Scan MCP. Check a skill in a sandbox before your agent installs it.

★ 1↓ 92/wkMITpushed 3d ago Security