mcpbeat Sign in

Pkgtruth MCP Server

local only

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.

Installs per day peak 403 · avg 17
a month agotoday
722
Installs / week
npm · pkgtruth
4
Stars
0 open issues
14 Sep 2026
Last commit
0 releases in 90 days
MIT
License
JavaScript

What the code does

We read the source, 1 h ago · rules 3dff92dd89df

Evidence

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)$/,
Capabilities

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.

We found things in this code

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.

Three servers free · no card

Connect this server

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.

run in your terminal
claude mcp add pkgtruth -- npx -y pkgtruth
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pkgtruth": {
      "args": [
        "-y",
        "pkgtruth"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.pkgtruth]
command = "npx"
args = ["-y", "pkgtruth"]
.cursor/mcp.json
{
  "mcpServers": {
    "pkgtruth": {
      "args": [
        "-y",
        "pkgtruth"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "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.

Alternatives to Pkgtruth

same job, measured the same way
I
pkg-oracle — Dependency Trust Oracle
by julian-martin89

Blocks typosquatted or hallucinated npm/PyPI packages before an AI agent installs them.

1 tools answering
Import Guardian
by baneado98

Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.

55 installs/wk local only
Vdb
by ai-vdb

Check packages for CVEs, slopsquatting, and CISA KEV before your AI agent installs them.

70 installs/wk local only
lurq
by jadenryu

Verify npm packages before your AI agent installs them: hallucinations, advisories, API drift.

16 tools answering
PackageGuard
by dankaten

x402-gated safety checker for npm/PyPI packages before you npm install / pip install.

1 tools answering
Jeevesus — DugganUSA Threat Intelligence MCP
by pduggusa

check-package: block malicious npm/PyPI deps before your AI agent installs them. Free, no key.

6 tools answering
pkgproof
by pkgproof

Verify an npm package before you install it: advisories, install scripts, typosquats, provenance.

467 installs/wk local only
Cf Package Check
by cfgenius145-sketch

Abandonment checks for WordPress, npm and PyPI packages, priced per call.

2 tools answering

Pkgtruth — questions

Answers built from our own checks of this server.

Why is there no uptime for Pkgtruth?
Pkgtruth runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package pkgtruth was installed 722 times last week.
How do I connect Pkgtruth?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls pkgtruth straight from npm; nothing to host, nothing to sign up for.
How many people use Pkgtruth?
The npm package pkgtruth was installed 722 times in the last week. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Pkgtruth open source?
Yes — it is published under the MIT licence, written in JavaScript and 4 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.