MCP Firewall Config Generator
Wrap any MCP server for Claude Desktop, Cursor, LM Studio or Ollama with a fail-closed firewall. Pick which tools run, which wait for your approval on Telegram or Slack, and which are blocked, then copy three ready-to-paste files.
Nothing you type leaves this page: no backend, no analytics on inputs.
{
"mcpServers": {
"filesystem-guarded": {
"command": "npx",
"args": [
"-y",
"agent-gateway-sdk",
"mcp-stdio",
"--data-dir",
"/Users/yourname/.mont",
"--",
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/yourname/projects"
]
}
}
}mkdir -p /Users/yourname/.mont # then save rules.json as /Users/yourname/.mont/rules.json
How the generated config works
Each server entry is wrapped with npx -y agent-gateway-sdk mcp-stdio --data-dir … -- <your server command>. Your MCP client still starts one process per server, but every JSON-RPC tools/call now passes through Mont first. Mont looks up MCP /api/mcp/tools/<tool> in rules.json, checks the arguments (as body.*), then either forwards the call, holds it until a human taps Approve, or returns an isError: true tool result that explains the refusal.
- Default deny. A tool with no rule is blocked, so a new tool added by a server update can't run silently.
- Fail-closed guards. A path guard also blocks
..traversal. A max-amount guard never coerces"250"into a number, so a missing or malformed argument falls back to approval or block. - Hard budgets.
onExceed: "BLOCK"caps what auto-approved calls can move per hour, across every session sharing the data directory. - Audit trail. Every call, including refused ones, is written to a SHA-256 hash-chained SQLite table before it runs.
Using LM Studio or Ollama?
Mont wraps the MCP server, not the model, so local 8B–32B models get the same enforcement as Claude or GPT. Rules apply even when no desktop popup is on screen, such as under lms server start, an Ollama-driven agent loop or a CI job. Read how to add a fail-closed permission gate to LM Studio and Ollama MCP tools, or how Slack and Telegram approvals work for Claude Desktop and Cursor.
Why a proxy instead of an ask_human tool?
A prompt-injected model can simply skip a voluntary ask_human tool. A proxy sits on the only path to the real tool, so a gated call can't run without a decision. Read the full breakdown: why voluntary ask_human MCP tools fail under prompt injection.
Free Community edition: rules, budgets, one phone channel and the hash-chained log. No account or license key.