PkgDiet MCP
PkgDiet is an MCP server and dependency policy tool for AI-assisted JavaScript and TypeScript development. It intercepts npm install, pnpm add, and yarn add commands generated by AI coding agents like Claude Code, Codex, Cursor, Windsurf, and Cline. By using native agent hook APIs, it blocks unapproved, deprecated, vulnerable, or typosquatted packages before they execute, ensuring safer dependency management.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Block deprecated npm packages suggested by AI agents
- Prevent installation of vulnerable dependencies
- Enforce dependency policies in AI coding workflows
- Intercept and validate AI-generated install commands
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pkgdiet 2.0.1
{
"version": "2.0.1",
"transport": "stdio",
"identifier": "pkgdiet",
"registryType": "npm"
}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": {
"pkgdiet-mcp": {
"command": "npx",
"args": [
"-y",
"pkgdiet@2.0.1"
]
}
}
}Cline
{
"mcpServers": {
"pkgdiet-mcp": {
"command": "npx",
"args": [
"-y",
"pkgdiet@2.0.1"
]
}
}
}VS Code
{
"servers": {
"pkgdiet-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pkgdiet@2.0.1"
]
}
}
}Claude Desktop
{
"mcpServers": {
"pkgdiet-mcp": {
"command": "npx",
"args": [
"-y",
"pkgdiet@2.0.1"
]
}
}
}Let your agent find its tools
Find servers like PkgDiet MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.