Skip to main content
Glama

🛡️ Prompt Firewall

Stop leaking .env secrets, API keys, JWTs, and PII to cloud LLMs.
Zero-dependency local reversible firewall proxy, CLI scanner, and MCP Server for Claude Code, Cursor, Antigravity, Codex, and custom AI SDKs.

Why Prompt Firewall?

flowchart LR
  A[AI Agent / Cursor / SDK] -->|Raw Prompt with sk_live_...| B[Prompt Firewall :4100]
  B -->|Masks to {{PF_STRIPE_KEY_1}}| C[OpenAI / Anthropic / Gemini]
  C -->|Response with {{PF_STRIPE_KEY_1}}| B
  B -->|Restores real key locally| A
  • Reversible Token Vault: Replaces secrets before leaving your machine and restores them in responses so generated code still works.

  • Zero External Dependencies: Pure Node.js—no Python/Docker bloat required.

  • Live Local Dashboard: Inspect blocked secrets in real time at http://127.0.0.1:4100/ui.

  • MCP Server Included: Works natively as an MCP tool inside AI IDEs.

Related MCP server: vault-mcp

Quickstart

npx prompt-firewall start
# Point your OpenAI/LLM SDK baseURL to http://127.0.0.1:4100

MCP Configuration

{
  "mcpServers": {
    "prompt-firewall": {
      "command": "npx",
      "args": ["prompt-firewall", "mcp"]
    }
  }
}

License

MIT — Built for the open-source developer community. More free privacy-first tools at minimaxtools.com.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables local zero-knowledge encryption of a personal vault and sanitization of PII such as credentials, credit cards, and addresses before dispatch to cloud LLMs, with client-side rehydration of masked data.
      7
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to use vault-stored credentials without ever exposing plaintext secrets to model context, transcripts, or telemetry. It decrypts AES-256-GCM envelopes locally via WebCrypto, resolves opaque secret handles into subprocess environments and outbound HTTP requests, issues auto-zeroizing time-bounded leases, and scrubs echoed credentials from output.
      19
      MIT