Phantom is an MCP-enabled secret management tool that replaces real API keys in .env files with local phantom tokens and injects the real keys at the network proxy layer. It also provides MCP tools for managing vault secrets, diagnostics, syncing, and team vault operations without exposing plaintext secrets to AI agents.
From the registry: Stop AI coding agents from leaking API keys. Local proxy swaps real secrets for phm_ tokens.

$ npm install -g phantom-secrets-mcphttps://www.npmjs.com/package/phantom-secrets-mcpPlease install the `phantom-secrets-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Node.js and npm** — Node.js/npm are required for the recommended npm/npx installation path. (https://nodejs.org/'} } })
Optional prerequisites:
- Install Phantom MCP package — Install the MCP server package globally, or rely on npx to run it without a prior install. The README notes Phantom setup falls back to `npx -y phantom-secrets-mcp` if `phantom-mcp` is not on PATH. Run: `npm install -g phantom-secrets-mcp` (https://www.npmjs.com/package/phantom-secrets-mcp)
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","phantom-secrets-mcp"]
Note: The README explicitly says the MCP server uses stdio transport. It also shows a Claude Code command `claude mcp add phantom-secrets-mcp -- npx phantom-secrets-mcp`; the canonical inner shape is `command: npx`, `args: ['-y','phantom-secrets-mcp']`. No MCP-specific environment variables are documented as required.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.OPENAI_BASE_URLrequiredSet to the local Phantom proxy URL so AI tools send requests through the proxyPHANTOM_PROXY_PORTrequiredPort used by the local Phantom proxyPHANTOM_PROXY_TOKENrequiredToken used to authenticate to the Phantom proxyPHANTOM_AUDITrequiredEnables audit log features such as audit show/verifyAI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.