Skip to content
Grok

Phantom Secrets for Grok

io.github.ashlrai/phantom-secrets-mcp

Stop AI coding agents from leaking API keys. Local proxy swaps real secrets for phm_ tokens.

client:Grok transport:stdio runtime:npm

Install Phantom Secrets in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "phantom-secrets-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "phantom-secrets-mcp"
      ]
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Phantom Secrets in other clients