npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-guardrail

v0.1.0

Published

Local-first MCP security inventory and policy scanner — scan MCP configs before agents touch prod data

Readme

MCP Guardrail 🔍

Scan MCP configs for security issues before agents touch prod data.

MCP (Model Context Protocol) lets AI agents touch files, databases, APIs, and internal tools — but teams lack visibility into which MCP servers their developers are running and whether those servers introduce security risks. MCP Guardrail gives you a single command to inventory and audit your MCP configuration.

Quick Start

npx @karthik/mcp-guardrail scan

Or install globally:

npm install -g @karthik/mcp-guardrail
mcp-guardrail scan

Or run from the repo:

node dist/index.js scan

Usage

MCP Guardrail v0.1.0 — Scan MCP configs for security issues

USAGE:
  mcp-guardrail scan [options]

OPTIONS:
  -f, --format <format>  Output format: terminal (default), markdown, json, sarif
  -o, --output <file>    Write output to file instead of stdout
  -c, --config <file>    Scan a specific config file instead of auto-discovery
  -h, --help             Show this help

EXAMPLES:
  mcp-guardrail scan
  mcp-guardrail scan --format json
  mcp-guardrail scan --config ./test-mcp-config.json
  mcp-guardrail scan --format markdown --output report.md

What It Scans

Auto-discovered Configs

| Client | macOS Path | Linux Path | Windows Path | |--------|-----------|-----------|-------------| | Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json | ~/.config/Claude/claude_desktop_config.json | %APPDATA%\Claude\claude_desktop_config.json | | Cursor | ~/.cursor/mcp.json | ~/.cursor/mcp.json | ~/.cursor/mcp.json | | VS Code | ~/.vscode/mcp.json | ~/.vscode/mcp.json | %APPDATA%\Code\User\mcp.json | | Copilot Chat | ~/Library/Application Support/Code/User/globalStorage/github.copilot-chat/mcp.json | (varies) | (varies) |

Security Checks (6 Rules)

| Rule | ID | Severity | What It Detects | |------|-----|----------|-----------------| | Shell execution | MCP-R001 | 🔴 Critical | MCP server launches bash/sh/zsh/powershell | | Dangerous args | MCP-R002 | 🔴 Critical | rm -rf, pipe to shell, command injection patterns | | Remote download | MCP-R003 | 🟡 Warning | curl/wget/fetch as the command | | Secrets in env | MCP-R004 | 🟡 Warning | API keys, tokens, JWTs stored in config env vars | | Unpinned version | MCP-R005 | 🔵 Info | npx/uvx without pinned version | | Non-standard path | MCP-R006 | 🔵 Info | Custom absolute path as command binary |

Output Formats

  • terminal (default): Human-readable with emoji indicators
  • json: Full structured data for programmatic consumption
  • markdown: Clean report ready to attach to tickets or PRs
  • sarif: SARIF 2.1 format for CI and security toolchains

Why This Exists

  • MCP adoption is accelerating — the TypeScript SDK has ~140M+ npm downloads/month
  • Security researchers have documented MCP-specific attack classes (prompt injection, line jumping)
  • Existing scanners focus on runtime injection testing, not config-level inventory + policy
  • Teams need visibility into what MCP servers their developers run before they can secure them

License

MIT