mcpbeat Sign in

Pkgdiet MCP Server

local only

Pkgdiet runs on your own machine — the client starts it, so there is no endpoint to ping. 308 installs a week from npm. Last commit 1 Nov 2026.

Dependency policy and MCP server to stop AI coding agents from installing risky npm packages.

Installs per day peak 132 · avg 17 · -68% w/w
a month agotoday
308
Installs / week
npm · pkgdiet
5
Stars
0 open issues
1 Nov 2026
Last commit
8 releases in 90 days
MIT
License
JavaScript

What the code does

We read the source, 2 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

    const diff = execSync(`git diff ${baseRef} HEAD -- package-lock.json`, { encoding: 'utf-8' });
  const localNpmrc = path.join(projectPath, '.npmrc');

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add pkgdiet -- npx -y pkgdiet
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pkgdiet": {
      "command": "npx",
      "args": [
        "-y",
        "pkgdiet"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.pkgdiet]
command = "npx"
args = ["-y", "pkgdiet"]
.cursor/mcp.json
{
  "mcpServers": {
    "pkgdiet": {
      "command": "npx",
      "args": [
        "-y",
        "pkgdiet"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "pkgdiet": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkgdiet"
      ]
    }
  }
}

Alternatives to Pkgdiet

same job, measured the same way
Freshdeps MCP
by solvohq

Live npm/PyPI dependency-health verdicts so AI agents stop recommending stale or CVE'd packages

local only
multichain-mcp
by wkalidev

MCP server for AI agents — Stacks, Celo, and Base in one npm package.

63 installs/wk local only
npm Registry MCP Server
by yawlabs

npm registry MCP server — package intelligence, security audits, dependency analysis

489 installs/wk local only
e18e
by e18e

The official e18e MCP server keeping your agent in check from installing bloated dependencies.

131 installs/wk 3 tools answering
Pkgverdict
by cloudcorprecords

Pre-install verdicts for npm packages: GO, RISKY, FAKE, or MISSING. Built for humans and AI agents.

local only
pkgxray
by adamsjack711-ux

Pre-install security scans for npm packages, MCP servers, and AI agents with cited verdict evidence.

71 installs/wk local only
MCP Dependency Doctor
by petrovicistefan

Read-only npm dependency diagnostics for AI coding agents.

83 installs/wk local only
L
LicenseGate
by computersmarts1

Open-source licence risk checks for AI coding agents and dependency trees.

1 tools answering

Pkgdiet — questions

Answers built from our own checks of this server.

Why is there no uptime for Pkgdiet?
Pkgdiet runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package pkgdiet was installed 308 times last week.
How do I connect Pkgdiet?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls pkgdiet straight from npm; nothing to host, nothing to sign up for.
How many people use Pkgdiet?
The npm package pkgdiet was installed 308 times in the last week. Week over week that is -68%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Pkgdiet open source?
Yes — it is published under the MIT licence, written in JavaScript and 5 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.