prompt-firewall
Acts as a local reversible firewall proxy that the OpenAI SDK points at via baseURL: it masks secrets such as sk_live_ keys in outbound prompts to reversible {{PF_*}} placeholders and restores the originals in the responses returned to the caller.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🛡️ 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| AReversible 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:4100MCP 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…
This server cannot be deployed
Maintenance
Related MCP Connectors
Secrets for developers and agents—secure context and workflows without exposing secret values.
Password vault for AI agents with scoped, user-approved access
A secret store for AI agents: the agent never sees the plaintext.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to scan source code for secrets like API keys and passwords locally without network requests.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to securely inject API keys and secrets into environment files, configs, or commands without the agent ever seeing the secret values.MIT
- FlicenseNot gradedqualityBmaintenanceEnables 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-
- AlicenseBqualityCmaintenanceEnables 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.19MIT