Mmcp.market

Pkgdiet MCP server

by om-tajne·io.github.om-tajne/pkgdiet·v1.2.1

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

B74/100grade B
What users say
No reviews yet
Be the first
Safety scan
B74/100

full report

Adoption
Growing

4 stars75 downloads/wk

Reviews

Write one

Nobody has reviewed Pkgdiet yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Pkgdiet tools (3)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_dependency

    Check a dependency (e.g. npm package) for health, risk, and cost before installing.

  • get_policy

    Get the active PkgDiet dependency policy for this repository.

  • suggest_alternative

    Suggest a lighter, healthier alternative for a package.

Public scan report

scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it

1 high
  • Code scan20 source files scanned13/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 6 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10

Findings (1)

  • highShell command built from a string (injection risk)exec.shell-concat
    bin/cli.js: …d_process'); const changedFiles = execSync(`git diff --name-only ${options.base} HEAD`, { encoding: 'utf8' …
Overall 74/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the Pkgdiet repository's README, as published. We do not edit it. Read it on GitHub

🥗 PkgDiet

Check any npm package in under 2 seconds. Get a ALLOW / WARN / BLOCK verdict, health score, size impact, cost estimate, and curated alternatives — before you install.

Try it now — no install required

# Check a package before installing it
npx pkgdiet check moment

# Check multiple packages at once
npx pkgdiet check moment request lodash

# Audit your whole project
npx pkgdiet audit

# Wire up your AI coding agent (Cursor, Claude, Copilot, Windsurf…)
npx pkgdiet agent-setup --all

What you get

🟡 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`
🔴 request
  Health:      15/100
  Verdict:     BLOCK
  Reasons:     Deprecated. Maintainer explicitly marked as end-of-life.
  Alternatives: got, axios, node-fetch, ky
🟢 @babel/parser
  Health:      94/100
  Verdict:     ALLOW ✨ PkgDiet Certified
  Added Size:  1.77MB

For AI agents and MCP clients

PkgDiet is a fully working MCP server. Any MCP-compatible agent (Claude, Cursor, Windsurf, Copilot, Cline, and others) can call it to vet packages mid-task — before writing an install command.

One-command agent setup

npx pkgdiet agent-setup --all

Automatically writes the correct MCP config to all detected agents simultaneously:

  • Claude Desktop → claudedesktopconfig.json
  • Cursor → .cursor/mcp.json + .cursorrules
  • Windsurf → .windsurfrules
  • Cline → clinemcpsettings.json
  • GitHub Copilot → .github/mcp.json
  • Claude Code → claude mcp add

Or configure a specific agent:

npx pkgdiet agent-setup --agent cursor
npx pkgdiet agent-setup --agent claude-desktop
npx pkgdiet agent-setup --detect   # auto-detect from your project

Manual MCP config (paste into your agent's config file)

{
  "mcpServers": {
    "pkgdiet": {
      "command": "npx",
      "args": ["-y", "pkgdiet@2.0.0", "mcp"]
    }
  }
}

Tip: Run npx pkgdiet@2.0.0 mcp once in a terminal first to warm the npm cache. Subsequent agent launches will start in ~260ms.

MCP tools available to agents

Recommended agent workflow:

  1. Call check_dependency before recommending or installing any package.
  2. If verdict is BLOCK → do not install without explicit user direction.
  3. If verdict is WARN → explain the reasons and call suggest_alternative.
  4. Re-check the chosen alternative with check_dependency.

Policy — control what gets allowed

Create .pkgdietrc.json in your project root (or run npx pkgdiet setup):

{
  "minHealthScore": 70,
  "securityMode": "standard",
  "blockedPackages": ["request", "node-uuid", "colors"],
  "internalNamePrefixes": ["@myorg/"],
  "environments": {
    "ci": {
      "minHealthScore": 80,
      "securityMode": "strict",
      "failOn": "WARN"
    }
  }
}

Validate your policy at any time:

npx pkgdiet policy-check

All commands

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Install directly

Runs npx -y pkgdiet on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add pkgdiet -- npx -y pkgdiet
Add to Cursor

Pkgdiet: common questions

Is Pkgdiet MCP server safe?
Mostly: it is graded B (74/100). Read the Pkgdiet safety report
How do I install Pkgdiet?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does Pkgdiet need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Pkgdiet maintained?
The last commit was 7 days ago (2026-09-14). The latest release is v1.2.1.

More from om-tajne