# ThumbGate — PreToolUse Agent Firewall

> ThumbGate — PreToolUse Agent Firewall is an open-source MCP server for security. Pre-action firewall that turns thumbs-down feedback into gates for coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://thumbgate.ai
- **Repository:** https://github.com/igorganapolsky/thumbgate
- **MCP Registry name:** io.github.IgorGanapolsky/thumbgate
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

Static hooks forget; this one learns from your reactions. You record a thumbs up or down on an agent action, ThumbGate stores a reviewable lesson locally, re-ranks lessons for the next proposed action, and promotes repeated negatives into gates that can allow, warn or deny a call before it runs. Stale auto-promoted gates expire, and nothing retrains the model.

The site is candid about limits: matching destructive actions warn by default and deny only in strict mode, and advisory integrations do not guarantee blocking. Detected secret exfiltration and gate-bypass attempts are denied by default. Its example shows a force-push to a protected branch being denied in strict mode.

It targets Claude Code, Cursor, Codex and similar agents through supported hook integrations, starts with npx thumbgate init, and has a local dashboard. The core is MIT licensed. A 499 dollar Setup Sprint configures one recurring failure in a supported local workflow, with a regression test and rollback evidence.

## Features

- **Feedback capture:** Records thumbs up or down with the action and outcome.
- **Local lessons:** Keeps reviewable lessons that survive sessions without touching model weights.
- **Gate promotion:** Repeated negatives become gates; stale ones expire.
- **Allow, warn or deny:** Decides before the tool call proceeds, with strict mode for hard denies.
- **Dashboard:** A local dashboard opens with one command.
- **Setup Sprint:** A paid engagement for one configured gate.

## Good for

- Stop an agent repeating a mistake you have already corrected
- Block force pushes to protected branches
- Review which lessons the agent has stored
- Roll out a gate for one recurring failure with rollback evidence

## Install

### Claude Code (Terminal)

```sh
claude mcp add thumbgate -- npx -y thumbgate
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "thumbgate": {
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "thumbgate": {
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "thumbgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "thumbgate": {
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "thumbgate": {
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}
```

## FAQ

### Does it guarantee blocking?

No. Destructive actions warn by default, deny in strict mode, and advisory integrations do not guarantee blocking.

### Does it retrain the model?

No. Lessons are stored locally and ranked per action.

### What does the Setup Sprint cost?

499 dollars for one supported local workflow.

### How do I start?

Run npx thumbgate init.

### Is ThumbGate — PreToolUse Agent Firewall free?

Yes. ThumbGate — PreToolUse Agent Firewall is open source, so you can use and self-host it for free.

### How do I add ThumbGate — PreToolUse Agent Firewall to Claude Code?

Run this command in your terminal: claude mcp add thumbgate -- npx -y thumbgate

### What are the best alternatives to ThumbGate — PreToolUse Agent Firewall?

The closest alternatives to ThumbGate — PreToolUse Agent Firewall are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/thumbgate-pretooluse-agent-firewall
