Free tool · runs in your browser

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.

MCP client
1

MCP client

~/Library/Application Support/Claude/claude_desktop_config.json — Settings → Developer → Edit Config, paste, then fully quit and reopen Claude Desktop.

Operating system & data directory
2

Operating system & data directory

MCP servers to wrap
3

MCP servers to wrap

Tool rules (default deny)
4

Tool rules (default deny)

Unlisted tools are blocked. Guards are fail-closed: a missing or non-matching argument falls back to the "else" decision.

  • read_text_file
    Allow only ifstarts withelse
  • list_directory
  • directory_tree
  • search_files
  • get_file_info
  • list_allowed_directories
  • read_multiple_files

    takes a paths array: a path guard cannot inspect it

  • write_file
    Approve only ifstarts withelse
  • edit_file
    Approve only ifstarts withelse
  • create_directory
  • move_file
Approval channel
5

Approval channel

Both are zero-tunnel: Mont connects out, so no public URL or ngrok. The bot token lives in Mont, never in the model's context.

claude_desktop_config.json
{
  "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"
      ]
    }
  }
}
terminal
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.