Pkgtruth runs on your own machine — the client starts it, so there is no endpoint to ping. 722 installs a week from npm. Last commit 14 Sep 2026.
Catches hallucinated and slopsquatted npm and PyPI packages before an agent installs them.
We read the source, 1 h ago · rules 3dff92dd89df
Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.
doas: /^-(u|C)$/,
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
if (existsSync(path.join(nm, '.bin', name)) || existsSync(path.join(nm, name, 'package.json'))) return true;
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
Code changes quietly between releases, and nobody reads the diff of a dependency. We do, on every release — watch Pkgtruth and you get told the day something new turns up.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add pkgtruth -- npx -y pkgtruth
{
"mcpServers": {
"pkgtruth": {
"args": [
"-y",
"pkgtruth"
],
"command": "npx"
}
}
}
[mcp_servers.pkgtruth]
command = "npx"
args = ["-y", "pkgtruth"]
{
"mcpServers": {
"pkgtruth": {
"args": [
"-y",
"pkgtruth"
],
"command": "npx"
}
}
}
{
"mcpServers": {
"pkgtruth": {
"args": [
"-y",
"pkgtruth"
],
"command": "npx"
}
}
}
This one needs environment variables set before it will start:
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.).
The author declared them in the registry entry; get the values from the project itself.
Blocks typosquatted or hallucinated npm/PyPI packages before an AI agent installs them.
Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.
Check packages for CVEs, slopsquatting, and CISA KEV before your AI agent installs them.
Verify npm packages before your AI agent installs them: hallucinations, advisories, API drift.
x402-gated safety checker for npm/PyPI packages before you npm install / pip install.
check-package: block malicious npm/PyPI deps before your AI agent installs them. Free, no key.
Verify an npm package before you install it: advisories, install scripts, typosquats, provenance.
Abandonment checks for WordPress, npm and PyPI packages, priced per call.
Answers built from our own checks of this server.