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

envshield-mcp

v0.2.0

Published

MCP server that lets AI agents use secrets without seeing them

Readme

envshield-mcp

MCP server that lets AI coding assistants use secrets without ever seeing them.

Problem

AI coding assistants (Claude Code, Cursor, Copilot) automatically read .env files for context. This means your API keys, database credentials, and tokens can leak into AI context.

Solution

envshield provides an execution-only access model. AI requests commands to run with secrets, envshield injects the real values, executes the command, and returns output with all secrets scrubbed.

AI never sees your actual secret values.

Installation & Setup

Project-Local Setup (Recommended)

Configure envshield for the current project only:

npx envshield-mcp init

This creates .claude/settings.json in your project directory with envshield configuration.

Global Setup

Configure envshield for all projects:

npx envshield-mcp init --global

This updates ~/.claude/settings.json with envshield configuration.

Remove Global Configuration

To remove envshield from global configuration:

npx envshield-mcp uninit

Preview Changes

Use --dry-run to see what would change without applying:

npx envshield-mcp init --dry-run
npx envshield-mcp init --global --dry-run
npx envshield-mcp uninit --dry-run

How It Works

Before:  AI reads .env directly → secrets in context
After:   AI uses envshield MCP → executes with secrets → scrubbed output ✓

Available Tools

| Tool | Description | |------|-------------| | list_secrets | Returns secret names (never values) | | check_secret_exists | Checks if a secret is defined | | run_with_secrets | Executes command with secrets injected |

Example

AI: "Test if the Stripe API key works"

AI calls: run_with_secrets({
  command: "curl -H 'Authorization: Bearer $STRIPE_KEY' https://api.stripe.com/v1/balance",
  secrets: ["STRIPE_KEY"]
})

AI receives: { exitCode: 0, stdout: "Balance: $1,234.56" }
(actual key never exposed)

Configuration

Create .envshield.json in your project:

{
  "envFiles": [".env", ".env.local"],
  "redactMode": "placeholder",
  "redactPatterns": ["mycompany_.*"],
  "blockedCommands": ["rm -rf", "sudo"]
}

Scrubbing

envshield scrubs secrets from command output:

  1. Known secrets - All values from your .env files
  2. Pattern detection - Common formats (Stripe, GitHub, AWS, JWT, etc.)
  3. Custom patterns - Your own regex patterns

Manual Setup

If you prefer manual configuration, add to your project's .claude/settings.json or global ~/.claude/settings.json:

{
  "mcpServers": {
    "envshield": {
      "command": "npx",
      "args": ["envshield-mcp"]
    }
  },
  "deny": ["Read(.env*)", "Edit(.env*)"]
}

License

MIT