# Pkgtruth

> Pkgtruth is an open-source MCP server. Catches hallucinated and slopsquatted npm and PyPI packages before an agent installs them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/hxckya/pkgtruth
- **MCP Registry name:** io.github.hxckya/pkgtruth
- **Listing updated:** 2026-09-10

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add pkgtruth -- npx -y pkgtruth
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pkgtruth": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pkgtruth": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth"
      ]
    }
  }
}
```

## FAQ

### Is Pkgtruth free?

Yes. Pkgtruth is open source, so you can use and self-host it for free.

### How do I add Pkgtruth to Claude Code?

Run this command in your terminal: claude mcp add pkgtruth -- npx -y pkgtruth

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/pkgtruth
