Koskamo

pkgtruth MCP

An MCP server that provides ground truth about npm and PyPI packages to prevent AI coding agents from installing hallucinated or slopsquatted dependencies. It acts as a security gate by verifying package existence and identity before installation, supporting CLI, GitHub Actions, and agent hooks.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

pkgtruth MCP logo, by hxckyaCommunity listingLocal stdioSource reviewed; not executedPublished by hxckya
Vendor documentation

What you can do with it

  • Verify if an npm or PyPI package name is valid before installation
  • Catch hallucinated package names generated by AI models
  • Detect slopsquatting or typosquatting attempts on package names
  • Integrate security checks into CI/CD pipelines via GitHub Actions

Source and maintenance

Community listingRegistry 0.2.2
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

pkgtruth 0.2.2

npm
pkgtruth package definition
{
  "version": "0.2.2",
  "transport": "stdio",
  "identifier": "pkgtruth",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "PKGTRUTH_REGISTRY",
      "format": "string",
      "description": "Alternate npm registry to verify against. Defaults to https://registry.npmjs.org."
    },
    {
      "name": "PKGTRUTH_DOWNLOADS_API",
      "format": "string",
      "description": "Alternate downloads API used for adoption figures. Defaults to https://api.npmjs.org."
    },
    {
      "name": "PKGTRUTH_CACHE_DIR",
      "format": "string",
      "description": "Where adoption figures are cached between runs. Defaults to ~/.cache/pkgtruth."
    },
    {
      "name": "PKGTRUTH_TIMEOUT_MS",
      "format": "number",
      "description": "Per-request timeout in milliseconds. Defaults to 8000."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "pkgtruth-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth@0.2.2"
      ],
      "env": {
        "PKGTRUTH_REGISTRY": "<YOUR_PKGTRUTH_REGISTRY>",
        "PKGTRUTH_DOWNLOADS_API": "<YOUR_PKGTRUTH_DOWNLOADS_API>",
        "PKGTRUTH_CACHE_DIR": "<YOUR_PKGTRUTH_CACHE_DIR>",
        "PKGTRUTH_TIMEOUT_MS": "<YOUR_PKGTRUTH_TIMEOUT_MS>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "pkgtruth-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth@0.2.2"
      ],
      "env": {
        "PKGTRUTH_REGISTRY": "<YOUR_PKGTRUTH_REGISTRY>",
        "PKGTRUTH_DOWNLOADS_API": "<YOUR_PKGTRUTH_DOWNLOADS_API>",
        "PKGTRUTH_CACHE_DIR": "<YOUR_PKGTRUTH_CACHE_DIR>",
        "PKGTRUTH_TIMEOUT_MS": "<YOUR_PKGTRUTH_TIMEOUT_MS>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "pkgtruth-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth@0.2.2"
      ],
      "env": {
        "PKGTRUTH_REGISTRY": "<YOUR_PKGTRUTH_REGISTRY>",
        "PKGTRUTH_DOWNLOADS_API": "<YOUR_PKGTRUTH_DOWNLOADS_API>",
        "PKGTRUTH_CACHE_DIR": "<YOUR_PKGTRUTH_CACHE_DIR>",
        "PKGTRUTH_TIMEOUT_MS": "<YOUR_PKGTRUTH_TIMEOUT_MS>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "pkgtruth-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkgtruth@0.2.2"
      ],
      "env": {
        "PKGTRUTH_REGISTRY": "<YOUR_PKGTRUTH_REGISTRY>",
        "PKGTRUTH_DOWNLOADS_API": "<YOUR_PKGTRUTH_DOWNLOADS_API>",
        "PKGTRUTH_CACHE_DIR": "<YOUR_PKGTRUTH_CACHE_DIR>",
        "PKGTRUTH_TIMEOUT_MS": "<YOUR_PKGTRUTH_TIMEOUT_MS>"
      }
    }
  }
}

Let your agent find its tools

Find servers like pkgtruth MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.