MCP directory
P

Pkgtruth

by github.com/hxckya · v0.2.2 · updated Sep 10, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • PKGTRUTH_REGISTRY

    Alternate npm registry to verify against. Defaults to https://registry.npmjs.org.

  • PKGTRUTH_DOWNLOADS_API

    Alternate downloads API used for adoption figures. Defaults to https://api.npmjs.org.

  • PKGTRUTH_CACHE_DIR

    Where adoption figures are cached between runs. Defaults to ~/.cache/pkgtruth.

  • PKGTRUTH_TIMEOUT_MS

    Per-request timeout in milliseconds. Defaults to 8000.

More MCP servers