🥗 PkgDiet

MCP serverDev tools

Put your node_modules on a diet - find unused dependencies, analyze health, and reduce size

Unavailable. This server has no hosted endpoint yet, so ahel can't serve it.

Connect ahel once, and every AI you use reads what you have installed.

From the project's README

As published by om-tajne/pkgdiet in README.md.

Check npm packages before you recommend or install them. Apply local policy, identify deprecated or unnecessarily heavy dependencies, and get safer alternatives-without an account or hosted service.

📖 Deep Dive: Read the definitive Architecture Masterclass (ARCHITECTURE.md) to see exactly how PkgDiet intercepts AI agents, scores packages, and enforces CI/CD gates.


🚀 Quickstart

Get started in under a minute. pkgdiet setup creates a local policy and, if you select supported agents, configures their MCP connection and dependency-safety rules. No account, hosted service, or GitHub App is required.

# Set up policy and selected AI agents in one guided flow
npx pkgdiet setup

# Check a package manually at any time
npx -y pkgdiet@2.0.0 check moment
🟡 moment
  Health:      100/100
  Verdict:     WARN
  Reasons:     Efficiency Flag: Better alternatives exist for moment.
  Added Size:  4.15MB
  Cost Impact: $0.032/mo CI
  Alternatives: dayjs, date-fns, luxon
  💡 Fix: Run `npm uninstall moment && npm install dayjs` for a lighter alternative.

🤖 Supported AI Agents

AgentStatusInstallation
CursorSupportednpx pkgdiet agent-setup --agent cursor
Claude CodeSupportednpx pkgdiet agent-setup --agent claude-code
WindsurfSupportednpx pkgdiet agent-setup --agent windsurf
Claude DesktopSupportednpx pkgdiet agent-setup --agent claude-desktop
ClineExperimentalnpx pkgdiet agent-setup --agent cline
CopilotExperimentalnpx pkgdiet agent-setup --agent copilot
AntigravityExperimentalnpx pkgdiet agent-setup --agent antigravity

Distribution Channels

SurfaceStatusInstall
npm CLIAvailablenpx -y pkgdiet@2.0.0 setup
Generic stdio MCPAvailablenpx -y pkgdiet@2.0.0 mcp
CursorSupported after E2E verificationpkgdiet agent-setup --agent cursor
Claude CodeSupported after E2E verificationpkgdiet agent-setup --agent claude-code
WindsurfSupported after E2E verificationpkgdiet agent-setup --agent windsurf
GitHub ActionAvailable after real CI testuses: om-tajne/pkgdiet@v2
VS Code extensionBetaMarketplace or VSIX
GitHub App/dashboardNot releasedNot required

Limitation: PkgDiet provides policy and risk signals. It is not a substitute for vulnerability scanning, code review, package testing, or an organization’s broader supply-chain security program.


🤝 Contributing & Alternatives Dataset

The PkgDiet alternatives dataset (packages/core/data/alternatives.json) is community-driven. We welcome contributions!

Please see our CONTRIBUTING.md to submit:

  • New package alternatives.
  • False positive/negative reports.
  • Agent configuration improvements.

See SECURITY.md for reporting vulnerabilities.


🔬 Experimental Features

The apps/ directory in this repository contains highly experimental prototypes for a future Enterprise control plane (Dashboard, Webhooks, Postgres). No hosted PkgDiet service exists. These are internal playgrounds and are not supported for production use.

🔄 Related Servers (Alternatives)

If PkgDiet doesn't fit your needs, check out these excellent alternatives on Glama:

Signals

GitHub stars
4
Last commit
Sep 2026
Weekly downloads
632
Advanced
Delivery
pkgdiet MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
Catalog kind
mcp-server
Gateway key
io-github-om-tajne-pkgdiet
Source
github.com/om-tajne/pkgdiet