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

@papervault/mcp

v0.1.1

Published

MCP server for PaperVault. Lets AI agents trigger paper-based secret backups as a safety step before sensitive operations — agents never see secret values.

Downloads

260

Readme

PaperVault MCP — AI-agent safety net for sensitive operations

PaperVault 📄🔐 is a free open source tool for creating offline paper-based data vaults for your foundational secrets, such as passwords, 2FA recovery codes, digital asset keys, hard drive encryption keys, and other critical data.

This is the MCP server. It lets AI agents (Claude Code, Cursor, Claude Desktop, or any Model Context Protocol client) trigger PaperVault backups as a safety step inside sensitive workflows — before rotating a production key, destroying an account, or running a destructive migration. The agent triggers the backup, you get a printable paper recovery kit, and the agent never sees the secret values.

The browser app lives at papervault.xyz. The CLI lives at @papervault/cli.

🔐 Overview

An agent is about to do something it can't undo. Before it does, it asks PaperVault to snapshot the current credentials to a printable kit. If the operation goes wrong, you have a paper recovery path. Three guarantees by design:

  • The agent never receives secret values — they encrypt in memory and land in printable HTML on your disk
  • The audit log captures every invocation (with hashed name fingerprints, never plaintext)
  • A hard cap of 20 secrets per call prevents bulk exfiltration via a confused agent

🚀 Quick Start

Claude Code (one command)

claude mcp add -s user papervault -- npx -y @papervault/mcp
claude mcp list   # confirm it's registered

-s user makes the server available across all your projects. Drop the flag for current-project-only. Start a new Claude Code conversation to use it.

Other MCP clients (Cursor, Claude Desktop, manual config)

The server runs over stdio, so any MCP client works. Add this to the client's MCP config file:

{
  "mcpServers": {
    "papervault": {
      "command": "npx",
      "args": ["-y", "@papervault/mcp"]
    }
  }
}

For faster startup on each call (skips the npx lookup), install globally and use the binary directly:

npm install -g @papervault/mcp
{
  "mcpServers": {
    "papervault": {
      "command": "papervault-mcp"
    }
  }
}

Restart the client to load the new server.

Requires Node.js ≥ 24.

🔑 Tools Advertised

| Tool | Purpose | |---|---| | papervault_list_sources | What secret backends are configured (file, stdin, azure-kv, etc.) | | papervault_dry_run | Preview a backup — returns count + name fingerprint, no values fetched. Agent should always call this first to confirm scope. | | papervault_backup_from_source | Generate a kit. Writes HTML files (mode 0600) to a local directory. Returns vault_id, file list, key aliases — never values. | | papervault_audit_recent | Read recent audit log entries (names hashed by default). |

📖 Example Agent Prompts

Use the papervault MCP server to snapshot the current Azure KV secrets
that match "prod-db-*" before I rotate them. Threshold 2 of 3, save to
/Users/me/dr-backups/.
Before destroying this AWS account, use papervault to back up the root
credentials. Dry-run first so I can confirm what you'll capture.
Show me the last 10 papervault backup audit entries — I want to know
what's been backed up this week.

🛡️ Security Model

Guardrails (verified by tests)

| Guardrail | Behaviour | |---|---| | Hard cap of 20 secrets per call | Refuses with max_secrets error when more match the selection. | | save_path must be absolute | Refuses relative paths so the agent can't write into surprise locations. | | System paths refused | /etc, /usr, /bin, /sbin, /boot, /proc, /sys, /dev, C:\Windows, C:\Program Files are blocked. | | No secret values in tool responses | Agent gets vault_id, file paths, key aliases — never the actual secret bytes. | | No secret values in audit log | Names hashed to a 16-char fingerprint by default. Set PAPERVAULT_LOG_NAMES=1 to log plaintext names. | | File permissions | Written kits are chmod 0600 (owner-only readable). | | No auto-print scripts in saved files | Agent-saved files don't trigger print dialogs when opened later. | | No network egress | Backups go to local disk only. There is no upload, email, or printer-discovery code path. | | Two-phase fetch | list() (metadata only) runs before fetch() (values), so the max-secrets check happens before any secret leaves the source. |

Threat Model

PaperVault MCP does NOT protect against:

  • ❌ A trusted-by-you agent acting in bad faith with the access it has
  • ❌ Compromise of the cloud secret store the source URI points at
  • ❌ Physical compromise of the printed kit
  • ❌ Malicious modifications to the MCP server source code
  • ❌ Tampered MCP client routing tool calls to a malicious server

The MCP server runs on your machine with your identity. It uses your existing cloud credentials (az login, etc.) — we never store or transmit credentials. The agent only sees what the tool schemas explicitly return.

That said: an agent with access to this server can encrypt your secrets to disk under any allowed path. If you don't trust the agent, don't enable the tool. The audit log is your friend for after-the-fact review.

🔧 Configuration

| Environment variable | Effect | |---|---| | PAPERVAULT_AUDIT_LOG | Path to the audit log file (default ~/.papervault/audit.log). | | PAPERVAULT_LOG_NAMES=1 | Log secret names in plaintext instead of fingerprints. | | PAPERVAULT_MCP_DEBUG=1 | Print stack traces to stderr on fatal errors. |

For the underlying crypto, source adapters, and limits, see @papervault/cli and @papervault/core.

🔗 Related Packages

🤝 Contributing

Contributions are welcome! See the main repo at github.com/boazeb/papervault.

📄 License

MIT — see LICENSE.

🙏 Acknowledgments

⚠️ Disclaimer

This software is provided "as is" without warranty. Users are responsible for:

  • Verifying that the agents they grant access to the tool are trustworthy
  • Reviewing the audit log periodically
  • Testing recovery procedures before relying on them
  • Understanding the cryptographic principles involved

Always test with non-critical data first!