Skip to content
Grok

pkgtruth for Grok

io.github.hxckya/pkgtruth

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

client:Grok transport:stdio runtime:npm

Install pkgtruth in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "pkgtruth": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ],
      "env": {
        "PKGTRUTH_REGISTRY": "<PKGTRUTH_REGISTRY>",
        "PKGTRUTH_DOWNLOADS_API": "<PKGTRUTH_DOWNLOADS_API>",
        "PKGTRUTH_CACHE_DIR": "<PKGTRUTH_CACHE_DIR>",
        "PKGTRUTH_TIMEOUT_MS": "<PKGTRUTH_TIMEOUT_MS>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

pkgtruth in other clients