MindGate MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MindGate MCPrecall our auth architecture decisions for this workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ง MindGate MCP (ุจูุงุจุฉ ุงูุนูู)
The Unified Local-First Memory & Context Gateway for AI Coding Agents (Antigravity โข OpenCode โข Codex โข Cursor โข Claude)
ุงูุชูุซูู ุจุงููุบุฉ ุงูุนุฑุจูุฉ (README.ar.md)
MindGate (ุจูุงุจุฉ ุงูุนูู) is a free, open-source, 100% local-first Model Context Protocol (MCP) server engineered to act as a persistent shared brain across all your AI coding assistants. Hardened out of the box against Node2Shell (CVE-2026-111497), MindGate remembers your architectural decisions, coding conventions, bug root causes, and cross-session handoffs so you never have to repeat your context when switching between Antigravity, OpenCode, Codex, or Cursor.
๐ Why MindGate?
Every time you switch from one AI coding tool to anotherโor start a fresh sessionโvaluable project context is lost. MindGate solves context fragmentation with:
100% Free & Local-First Privacy: Powered by an embedded
SQLitedatabase (WALmode) andFTS5 (BM25)full-text ranking stored locally in~/.mindgate/mindgate.db. Zero paid API keys, zero cloud subscriptions, and zero data leaving your machine.Seamless Cross-Agent Handoffs: Design your architecture in Antigravity, call
log_session_summary, and immediately pick up implementation in OpenCode or Codex with full awareness of touched files and next steps.Project Workspaces + Global Developer Brain: Isolate project-specific architectural memories by
workspacewhile sharing your personal coding preferences and clean-code rules globally across every repository.Built-In Node2Shell (
CVE-2026-111497) Hardening: Operates strictly overstdiotransport (zero HTTP exposure) and includes an active runtime security guard that verifies patched Node.js versions and disablesnode:zlibBrotli decompression routines inside the process.
Related MCP server: Sugar Memory
๐๏ธ System Architecture
The diagram below illustrates how MindGate operates as a secure, zero-HTTP memory layer connecting multiple AI agents to a local SQLite + FTS5 knowledge store:
flowchart TB
subgraph Agents["๐ค AI Coding Agents & IDEs"]
direction LR
AG["๐ Antigravity"]
OC["๐ป OpenCode"]
CX["โก Codex CLI / IDE"]
OT["๐ง Cursor / Windsurf / Claude"]
end
subgraph Transport["๐ Isolated Zero-HTTP Transport Layer"]
STDIO["JSON-RPC 2.0 over Stdio\n(No Network Ports / No HTTP Body Parsing)"]
end
subgraph MindGate["๐ง MindGate MCP Server (TypeScript)"]
direction TB
GUARD["๐ก๏ธ Node2Shell Security Guard (CVE-2026-111497)\nโข Verifies Patched Runtime (Node >=22.23.4 / >=24.22.1 / >=26.12.1)\nโข Disables node:zlib Brotli Decompression APIs at Runtime"]
subgraph Tools["๐ ๏ธ MCP Tools & Resources"]
direction LR
T1["remember_decision\nSave Architecture & Fixes"]
T2["recall_context\nBM25 Context Search"]
T3["log_session_summary\nCross-Agent Handoff"]
T4["user_preferences\nGlobal Coding Rules"]
end
ENGINE["โ๏ธ Context Router & Workspace Isolation Engine"]
end
subgraph Storage["๐พ Local Storage (`~/.mindgate/mindgate.db` - SQLite WAL)"]
direction LR
DB_MEM[("๐ Memories Table\n(Decisions & Context)")]
DB_FTS[("๐ FTS5 Virtual Table\n(BM25 Full-Text Index)")]
DB_SES[("๐ Sessions Table\n(Agent Handoff Logs)")]
DB_PREF[("โ๏ธ Preferences Table\n(Developer Profile)")]
end
AG <--> STDIO
OC <--> STDIO
CX <--> STDIO
OT <--> STDIO
STDIO <--> GUARD
GUARD --> Tools
Tools --> ENGINE
ENGINE <--> DB_MEM
ENGINE <--> DB_FTS
ENGINE <--> DB_SES
ENGINE <--> DB_PREFASCII Architecture Overview
+-------------------+ +-------------------+ +-------------------+
| Antigravity | | OpenCode | | Codex |
+---------+---------+ +---------+---------+ +---------+---------+
| | |
+-------------------------+-------------------------+
|
[ JSON-RPC 2.0 via Local STDIO ]
(No HTTP Server / No Brotli I/O)
|
v
+-----------------------------------------------------------------------+
| MINDGATE MCP SERVER (ุจูุงุจุฉ ุงูุนูู) |
| |
| +-----------------------------------------------------------------+ |
| | 1. Node2Shell Security Guard (CVE-2026-111497 Protection) | |
| | - Validates Runtime Version (Node >=22.23.4 / 24.22.1 / 26) | |
| | - Hard-Blocks node:zlib Brotli Decompression APIs | |
| +-----------------------------------------------------------------+ |
| | |
| v |
| +-----------------------------------------------------------------+ |
| | 2. MCP Tool & Resource Router | |
| | - remember_decision() - log_session_summary() | |
| | - recall_context() - set/get_user_preferences() | |
| | - list_workspaces() - delete_memory() | |
| +-----------------------------------------------------------------+ |
| | |
| v |
| +-----------------------------------------------------------------+ |
| | 3. Local SQLite Engine (~/.mindgate/mindgate.db - WAL Mode) | |
| | [Memories] + [FTS5 BM25 Search] + [Sessions] + [Preferences] | |
| +-----------------------------------------------------------------+ |
+-----------------------------------------------------------------------+๐ก๏ธ Node2Shell (CVE-2026-111497) Security Architecture
Node2Shell (CVE-2026-111497) is a critical (CVSS 9.2) out-of-bounds write vulnerability (CWE-787) in the Brotli decompression library bundled with Node.js and system packages. MindGate implements 4 layers of defense-in-depth:
Security Layer | MindGate Implementation |
1. Zero-HTTP | MindGate communicates strictly over standard input/output ( |
2. Strict | Enforces patched runtime versions in |
3. Startup Runtime Version Audit |
|
4. Runtime | Actively neutralizes |
๐ ๏ธ Available MCP Tools
Once connected, your AI coding assistant gains immediate access to the following tools:
Tool Name | Description | Typical AI Trigger |
| Stores an architectural decision, convention, bug root cause, or context snippet with | When you establish a project rule or solve a tricky bug. |
| Searches project and global memories via SQLite | At the start of a task or before refactoring core modules. |
| Records what was accomplished, modified files ( | Before closing Antigravity so OpenCode or Codex can continue seamlessly. |
| Saves a global developer preference (e.g., preferred stack, naming conventions, forbidden libraries). | When you state a coding habit that applies to all projects. |
| Retrieves all saved developer preferences and coding standards. | When bootstrapping or writing code in any workspace. |
| Lists all active project workspaces along with memory and session counts. | When auditing stored project contexts. |
| Deletes an outdated or superseded memory entry by | When an architectural decision is replaced. |
๐ Quick Start & Installation
1. Prerequisites
A patched Node.js runtime (
v22.23.4+,v24.22.1+, orv26.12.1+) or Bun (v1.4.4+).
2. Clone & Build
git clone https://github.com/your-username/mindgate-mcp.git
cd mindgate-mcp
npm install
npm run buildGenerate ready-to-paste configuration snippets for your installed tools:
node dist/index.js init๐ Connecting Your AI Coding Tools
1. Antigravity / Claude Desktop / Cursor
Add the following entry to your MCP configuration file (or use npx -y mindgate-mcp once published to npm):
{
"mcpServers": {
"mindgate": {
"command": "node",
"args": ["/absolute/path/to/mindgate-mcp/dist/index.js"],
"env": {
"MINDGATE_DEFAULT_WORKSPACE": "my-project"
}
}
}
}2. OpenCode (opencode.json)
Add MindGate to ~/.config/opencode/opencode.json or your project's opencode.json:
{
"mcp": {
"mindgate": {
"type": "local",
"command": ["node", "/absolute/path/to/mindgate-mcp/dist/index.js"],
"enabled": true
}
}
}3. Codex CLI (~/.codex/config.toml)
Add the following block to your ~/.codex/config.toml:
[mcp_servers.mindgate]
command = "node"
args = ["/absolute/path/to/mindgate-mcp/dist/index.js"]๐ Repository Structure
mindgate-mcp/
โโโ package.json # Package manifest & Node2Shell engine constraints
โโโ tsconfig.json # Strict TypeScript compiler configuration
โโโ README.md # English documentation & architecture diagrams
โโโ README.ar.md # Arabic documentation & architecture diagrams
โโโ LICENSE # MIT Open-Source License
โโโ src/
โโโ index.ts # Main MCP server entrypoint & CLI init helper
โโโ security/
โ โโโ node2shellGuard.ts # Runtime CVE-2026-111497 (Node2Shell) guard & zlib lock
โโโ db/
โโโ memoryStore.ts # Local SQLite WAL + FTS5 BM25 storage engine๐ค Contributing & License
Released under the MIT License. Built for the open-source developer communityโcontributions, issues, and feature requests (such as local vector embeddings via Transformers.js or a local Web UI) are warmly welcome!
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Memory for AI agent teams across tools, sessions, repositories, and teammates.
Shared project memory that keeps teammates and AI agents aligned across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceGives AI coding agents persistent, local-first memory so they can store, semantically search, and recall decisions, preferences, error patterns, and cross-project guidelines directly during a session. It also optionally queues tasks for autonomous execution against that same memory.-
- FlicenseNot gradedqualityAmaintenanceProvides AI coding agents with a local-first persistent memory layer they can read and write during sessions, storing decisions, preferences, error patterns, and research per project or globally. Enables semantic and keyword search, formatted context recall, and cross-project guideline surfacing without API keys or cloud storage.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent, local-first memory so project decisions, preferences, and cross-project guidelines survive across sessions and can be retrieved by semantic search. Optionally also exposes a task queue for autonomous execution that draws on the same stored context.-
- FlicenseNot gradedqualityAmaintenanceGives AI coding agents a local-first persistent memory they can read and write directly during sessions, storing decisions, preferences, error patterns, and guidelines in per-project and global SQLite stores. Enables semantic and keyword retrieval of relevant context across sessions so agents start work already knowing a codebase's conventions and history.-