ThumbGate — PreToolUse Agent Firewall
Pre-action firewall that turns thumbs-down feedback into gates for coding agents
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 1.39.1
- Listing updated
- 3 days ago
About ThumbGate — PreToolUse Agent Firewall
ThumbGate — PreToolUse Agent Firewall is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add thumbgate -- npx -y thumbgateAdd to claude_desktop_config.json
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": [
"-y",
"thumbgate"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": [
"-y",
"thumbgate"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"thumbgate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"thumbgate"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": [
"-y",
"thumbgate"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": [
"-y",
"thumbgate"
]
}
}
}What it does
- 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
Pricing
Open source
Free MIT core; $499 Setup Sprint is optional
Prices change. Check thumbgate.ai before you buy.
ThumbGate — PreToolUse Agent Firewall 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 to ThumbGate — PreToolUse Agent Firewall

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools