MCP Memory Gateway logo

MCP Memory Gateway

by IgorGanapolsky

Local MCP pre-action gates that check coding-agent tool calls, capture lessons, and turn repeated failures into prevention rules.

Install MCP Memory Gateway

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "igorganapolsky-mcp-memory-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "thumbgate"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

IgorGanapolsky/mcp-memory-gateway MCP server, branded as ThumbGate, evaluates proposed coding-agent tool calls before execution through a local PreToolUse gate. It stores accepted feedback as local lessons and can promote repeated failures into prevention rules without changing model weights or requiring a cloud service. The MCP interface provides advisory gate checks, while supported agent hooks can enforce decisions before tools run. Reach for it when destructive commands, secret leaks, or recurring project-specific mistakes need a runtime boundary.

Use cases

  • Block detected secret leaks before tool execution
  • Capture feedback about recurring coding-agent mistakes
  • Promote repeated failures into local prevention rules
  • Review proposed destructive commands in strict mode
  • Verify pre-action hooks before enabling agent workflows

Key features

  • PreToolUse evaluation before agent tool execution
  • Local lesson and feedback capture
  • Automatic promotion of repeated failures into prevention rules
  • Default blocking for secret leaks and gate self-disable attempts
  • Configurable strict enforcement with THUMBGATE_STRICT_ENFORCEMENT
  • stdio MCP server via thumbgate serve

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

21/21 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · thumbgate (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars29Stargazers on the source repository.
npm downloads2.5kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Memory Gateway works

What IgorGanapolsky/mcp-memory-gateway MCP server does

ThumbGate places a local decision point between an AI coding agent’s proposed action and the tool execution step. It is intended for agents that may otherwise delete files, expose secrets, force-push changes, fetch and run remote content, or edit their own guardrails. The gate evaluates the proposed call and returns an allow, warning, or denial outcome.

The default policy blocks detected secret leaks and two self-disable command classes: terminating the gate process and enabling its bypass environment override. Destructive or high-risk patterns such as rm -rf, force-pushes, fetch-and-run commands, and direct guardrail edits warn and log by default. Setting THUMBGATE_STRICT_ENFORCEMENT=1 changes those warnings into hard denials.

Feedback becomes local operational memory. A captured thumbs-down can record what went wrong and what should change; repeated concrete failures can then become prevention rules. The process does not retrain the model or update model weights.

How it works

The enforcement path runs locally and does not require a cloud service. Agent integrations can install hooks that inspect a tool call before it executes. Claude Code, Codex, and Gemini CLI use hard pre-action enforcement paths; Cursor, Cline, and other MCP-based setups use the gate_check MCP capability as an advisory check.

The project recommends wiring the hook first, verifying it, and only then adding matching feedback. npx thumbgate doctor confirms that the PreToolUse hook is installed, while the local dashboard can show activity. An empty dashboard is treated as a valid result during initial setup.

Setup and configuration

Run the initializer with npx thumbgate init, then verify the wiring with npx thumbgate doctor. To open the local dashboard, use npx thumbgate dashboard --open. Feedback can be captured from the CLI, for example:

Terminal
npx thumbgate capture --feedback=down \
  --context="Never run DROP on production tables" \
  --what-went-wrong="agent proposed DROP" \
  --what-to-change="require review for DROP"

For MCP directory or client installation, start the stdio server with npx -y thumbgate serve; npx -y thumbgate mcp is equivalent. Do not substitute npm start, which launches the hosted HTTP API rather than the agent-facing stdio server.

Tools and capabilities

  • Check proposed MCP tool calls with gate_check.
  • Capture explicit thumbs-up or thumbs-down feedback as local lessons.
  • Promote repeated concrete failures into prevention rules.
  • Apply default hard blocks for secret leaks and gate self-disable attempts.
  • Warn and log selected high-risk command classes, or deny them in strict mode.
  • Generate reusable prompt-evaluation cases and local proof reports with npx thumbgate eval.
  • Inspect local activity through the dashboard.

Limitations and notes

MCP clients that use gate_check receive advisory behavior; hard enforcement depends on an agent-specific pre-action hook being installed and firing. The default policy does not block every risky command: several high-risk classes warn and log unless strict enforcement is enabled. The enforcement path is local, and the system governs runtime tool calls rather than changing model behavior or weights.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Memory Gateway

IgorGanapolsky/mcp-memory-gateway is an MCP server that connects AI coding agents to a local pre-action safety gate. Its main capability, gate_check, evaluates proposed tool calls, while local feedback capture records lessons and repeated failures can become prevention rules. It supports advisory MCP checks and agent-specific hooks for enforcement.

Install it with `npx -y thumbgate serve` for stdio MCP, or run `npx thumbgate init` to configure an agent-specific integration. Use `npx thumbgate doctor` to verify the PreToolUse hook. The `thumbgate mcp` command is equivalent to `thumbgate serve`.

Yes, Cursor is supported through the MCP `gate_check` capability with advisory enforcement. Initialize it with `npx thumbgate init --agent cursor`; hard pre-action enforcement is available through agent-specific hook integrations rather than the Cursor MCP check.

Set `THUMBGATE_STRICT_ENFORCEMENT=1` to turn default warnings into hard denials. This applies to listed high-risk classes such as `rm -rf`, force-push, fetch-and-run, and direct guardrail edits; secret leaks and gate self-disable attempts are blocked by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Memory Gateway AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/igorganapolsky-mcp-memory-gateway?style=directory)](https://allmcps.com/mcp/igorganapolsky-mcp-memory-gateway)
HTML Embed
<a href="https://allmcps.com/mcp/igorganapolsky-mcp-memory-gateway"><img src="https://allmcps.com/api/badge/igorganapolsky-mcp-memory-gateway?style=directory" alt="MCP Memory Gateway on AllMCPs" /></a>