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. 71 installs a week from npm. Last commit 2 Nov 2026.

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

Installs per day peak 635 · avg 32 · -19% w/w
a month agotoday
71
Installs / week
npm · pkgtruth
4
Stars
0 open issues
2 Nov 2026
Last commit
7 releases in 90 days
MIT
License
JavaScript

What the code does

We read the source, 2 h ago · rules 995398eba69f

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": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.pkgtruth]
command = "npx"
args = ["-y", "pkgtruth"]
.cursor/mcp.json
{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
.vscode/mcp.json
{
  "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).

Alternatives to Pkgtruth

same job, measured the same way
P
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.

50 installs/wk local only
Vdb
by ai-vdb

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

883 installs/wk 7 tools answering
lurq
by jadenryu

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

16 tools answering
Attestari
by attestari

Attestari's verdict on an npm or PyPI package version, asked before an agent installs it.

552 installs/wk answering
Presend MCP Server
by presendapp

Before an AI agent installs an npm/PyPI package: typosquat, vulnerability and existence checks.

40 tools answering
Presend dependency checks
by presendapp

Check an npm/PyPI package before an AI agent installs it: 5 focused supply-chain tools.

5 tools answering
npm Supply Chain Audit
by tylerscomic-lab

Check npm packages for typosquats, hallucinated names, install scripts and risky new releases.

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 71 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 in the form 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 71 times in the last week. Week over week that is -19%. 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.