Pkgtruth runs on your own machine — the client starts it, so there is no endpoint to ping. 71 installs a week from npm. Last commit 2 Nov 2026.
Catches hallucinated and slopsquatted npm and PyPI packages before an agent installs them.
We read the source, 2 h ago · rules 995398eba69f
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": {
"command": "npx",
"args": [
"-y",
"pkgtruth"
]
}
}
}
[mcp_servers.pkgtruth]
command = "npx"
args = ["-y", "pkgtruth"]
{
"mcpServers": {
"pkgtruth": {
"command": "npx",
"args": [
"-y",
"pkgtruth"
]
}
}
}
{
"servers": {
"pkgtruth": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pkgtruth"
]
}
}
}
Optional settings from the registry entry, left out of the block above:
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).
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.
Attestari's verdict on an npm or PyPI package version, asked before an agent installs it.
Before an AI agent installs an npm/PyPI package: typosquat, vulnerability and existence checks.
Check an npm/PyPI package before an AI agent installs it: 5 focused supply-chain tools.
Check npm packages for typosquats, hallucinated names, install scripts and risky new releases.
Answers built from our own checks of this server.