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.
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
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pkgtruth 0.2.2
{
"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.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"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
{
"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
{
"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
{
"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.