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

phantom-secrets-mcp

v0.6.0

Published

MCP server for Phantom Secrets — lets AI coding tools manage API keys safely without ever seeing real values. 25 tools for Claude Code, Cursor, Windsurf, and Codex.

Readme

Phantom Secrets MCP Server

MCP server for AI-safe secrets management. Lets Claude Code, Cursor, Windsurf, and Codex manage API keys without ever seeing real values.

npm License: MIT

Part of Phantom Secrets -- the CLI that replaces real secrets with inert phm_ tokens so AI agents never see your API keys.

Install

Claude Code

claude mcp add phantom-secrets-mcp -- npx phantom-secrets-mcp

Cursor

Add to Cursor Settings > Features > MCP Servers:

  • Name: phantom
  • Command: npx phantom-secrets-mcp

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "phantom": {
    "command": "npx",
    "args": ["phantom-secrets-mcp"]
  }
}

Codex / Other MCP Clients

Add to your MCP configuration:

{
  "phantom": {
    "command": "npx",
    "args": ["phantom-secrets-mcp"]
  }
}

Works with any tool that supports the Model Context Protocol.

25 MCP Tools

Read-only tools (safe to call anytime):

| Tool | Description | |------|-------------| | phantom_list_secrets | List secret names in the vault (never exposes values) | | phantom_status | Check project configuration, vault health, and proxy state | | phantom_doctor | Diagnose configuration and vault health | | phantom_why | Explain why a key is or is not protected | | phantom_check | Scan for unprotected secrets (pre-commit-style) | | phantom_env | List environment variables with protection status (no values) | | phantom_sync | Preview deployment-platform sync (Vercel, Railway) | | phantom_cloud_status | Check cloud authentication and sync status |

Mutating tools (modify vault or .env):

| Tool | Description | |------|-------------| | phantom_init | Protect secrets in .env files -- store in vault, rewrite with phantom tokens | | phantom_add_secret_interactive | Start a terminal prompt for adding a secret without passing the value through MCP | | phantom_remove_secret | Remove a secret from the vault | | phantom_rotate | Regenerate all phantom tokens (invalidates old ones) | | phantom_copy_secret | Copy a secret from this project to another project's vault | | phantom_wrap | Wrap a plaintext .env value into a vaulted phm_ token | | phantom_unwrap | Reverse a wrap (restore plaintext to .env from vault) | | phantom_cloud_push | Push encrypted vault to Phantom Cloud (E2E encrypted) | | phantom_cloud_pull | Pull and decrypt vault from Phantom Cloud |

Team vault tools (Pro plan; multi-developer shared vaults):

| Tool | Description | |------|-------------| | phantom_team_list | List teams the user belongs to (read-only) | | phantom_team_create | Create a new team. Caller becomes owner | | phantom_team_members | List members of a team (read-only) | | phantom_team_invite | Invite someone to a team by GitHub username | | phantom_team_key_publish | Register the caller's X25519 public key on a team | | phantom_team_vault_push | Push the current project's vault to a team (envelope-encrypted to every registered member) | | phantom_team_vault_pull | Pull the team vault into the local vault |

All tools are read-safe: they never return actual secret values, and real secret values are never accepted as MCP tool arguments. The AI can manage your secrets lifecycle (add, remove, rotate, sync, share with teams) without key exposure in agent context. Mutating tools require confirm: true.

How It Works

  1. The MCP server runs as a stdio transport process alongside your AI coding tool
  2. When the AI needs to manage secrets, it calls Phantom MCP tools
  3. Phantom stores real secrets in the OS keychain (macOS Keychain, Linux Secret Service) or encrypted file vault
  4. The AI only ever sees phm_ phantom tokens -- never real API keys
  5. A local reverse proxy swaps tokens back at the network layer when making API calls

Requirements

  • Phantom Secrets CLI must be initialized in your project (npx phantom-secrets init)
  • Node.js >= 16
  • macOS (arm64/x64) or Linux (x64/arm64)

Cloud Sync

The MCP server includes cloud push/pull tools for syncing vaults across machines:

AI: "Push this project's secrets to the cloud"
-> phantom_cloud_push (E2E encrypted with ChaCha20-Poly1305, Argon2id key derivation)

AI: "Pull secrets from the cloud to this machine"
-> phantom_cloud_pull (decrypted locally, server never sees plaintext)

Requires phantom login (GitHub OAuth) via the CLI first.

Links

License

MIT