Omni-Mem MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Omni-Mem v2.0
Autonomous, cross-agent persistent memory for Antigravity, Claude Code, and OpenAI Codex.
Zero daemon. Zero OAuth. Zero SaaS. Zero
npmdependencies.
Powered by Node.js built-innode:sqlite(WAL + FTS5 + BM25) with bounded $O(1)$ growth forever.
Why Omni-Mem?
Most coding-agent memory plugins fail in one of three ways:
Fragile daemons & proprietary OAuth (
claude-membreaks whenever you switch proxies/providers or lack an Anthropic OAuth token, while running an HTTP server on:37777).Passive MCP-only tools (
server-memory) that models forget to query at session start and forget to update at session end.Snowball rot — raw chat logs accumulate indefinitely, polluting prompts with false positives and outdated fixes.
Omni-Mem solves all three via a single local SQLite database (~/.omni-mem/memory.db) wired natively into the lifecycle hooks and MCP layers of all three coding agents.
Capability |
|
| Omni-Mem v2.0 |
Antigravity + Claude Code + Codex shared brain | ❌ | Manual | ✅ Autonomous |
Works with custom proxies / any model / offline | ❌ (requires Anthropic OAuth) | ✅ | ✅ 100% local |
Zero background daemon / zero open HTTP ports | ❌ ( | ✅ | ✅ Zero daemon |
Zero external npm dependencies | ❌ | ❌ | ✅ Pure Node.js |
Strict lexical-gated JIT recall + typo rescue | ❌ | ❌ | ✅ FTS5 + synonyms + 3-gram |
Self-resolving Open Loops ( | ❌ | ❌ | ✅ Built-in |
Bounded $O(1)$ growth (Hard Caps + 24h Auto-GC) | ❌ | ❌ | ✅ Built-in |
Automatic secret redaction firewall | ⚠️ | ❌ | ✅ Built-in |
Related MCP server: Hilo Local
Architecture
[Antigravity] ──┐
[Claude Code] ──┼──► Lifecycle Hooks (SessionStart · PreInvocation/UserPromptSubmit · Stop · PreCompact)
[OpenAI Codex] ─┘ │
▼
~/.omni-mem/memory.db (SQLite WAL + FTS5)
├── Git-branch & file-drift aware boot context (<omni-mem>)
├── Strict lexical + synonym + 3-gram typo JIT recall (<omni-mem-recall>)
├── Incremental JSONL transcript harvester (Antigravity + Claude + Codex)
├── Self-resolving Open Loops (todo) + entity superseding
├── O(1) Hard Caps + lazy 24h Auto-GC + WAL autocheckpoint
├── Optional detached LLM distiller (Ollama / OpenAI / Anthropic)
└── Zero-dependency stdio MCP Server (9 tools) + On-demand HTML DashboardKey Features
4-Layer Autonomous Lifecycle:
SessionStart: Injects<omni-mem>with open loops (todo), pinned rules, top project decisions/bugfixes (with real-time[drift: <file> movido/removido]alerts), cross-agent handoffs, and global preferences — hard-capped to3400chars.PreInvocation/UserPromptSubmit: Captures inline user directives immediately ("sempre...", "nunca...", "lembra que...", "always...", "never...") and injects<omni-mem-recall>only when the prompt passes a strict lexical + bilingual synonym + 3-gram Dice typo gate. Short-circuits repeated tool-loop invocations with{}to protect prompt caching.Stop/PreCompact: Incrementally reads transcript deltas bybyte_offsetacross Antigravity (transcript_full.jsonl), Claude Code (.claude/projects/*.jsonl), and Codex (rollout-*.jsonl, ignoringguardian_reviewand internal subagents). Auto-resolves opentodos when a later turn fixes or ships them.Stdio MCP Server + CLI + On-Demand HTML Dashboard: 9 lazy-loaded MCP tools (opening and closing SQLite per call so WAL checkpoints never block) plus
omnimem report --openfor an interactive dark-mode local dashboard (~/.omni-mem/dashboard.html).
Anti-Snowball $O(1)$ Engine:
Per-project hard caps:
80non-pinned core memories,12session handoffs,8open todos (pinned rules/preferences are immortal).Entity/topic superseding (
status = 'superseded',superseded_by = new_id) prevents conflicting legacy bugfixes from piling up.Lazy 24h / 50-write Auto-GC: TTL archive (
session> 14d,todo> 7d, unaccessed > 45d), physicalDELETEpurge (> 60d), FTS5optimize,wal_checkpoint(TRUNCATE), andincremental_vacuum.
Secret Redaction Firewall: Automatically scrubs
sk-*,tpk_*,ghp_*,AIza*, JWTs,Bearertokens, private key blocks, andapi_key/token/passwordassignments before anything touches disk.
Quick Start (1 Command)
Requirements: Node.js >= 22.5 (tested on Node.js v24.14.1 with built-in node:sqlite).
git clone https://github.com/brunorainha-commits/omni-mem.git
cd omni-mem
node --no-warnings src/install.mjsThe installer backs up your existing configs (*.pre-omnimem-*.bak) and wires:
Antigravity:
~/.gemini/config/plugins/omni-mem/(auto-discovered live)Claude Code:
~/.claude/settings.json(hooks) +~/.claude.json(MCP server)OpenAI Codex:
~/.codex/hooks.json(strictHooksFileschema) +~/.codex/config.toml([features] hooks = true+[mcp_servers.omni-mem])
Codex Hook Trust (required once): Codex loads
~/.codex/hooks.jsonwithtrustStatus: "untrusted"by default and skips untrusted handlers silently (even though theomni-memMCP server connects immediately). After restarting Codex Desktop, open Settings → Hooks and click Trust on the 4 Omni-Mem hooks (SessionStart,UserPromptSubmit,Stop,PreCompact). For non-interactive Codex CLI automation,--dangerously-bypass-hook-trustis also supported by Codex.
Verify installation and optionally backfill existing history from all 3 agents:
node --no-warnings ~/.gemini/config/plugins/omni-mem/src/cli.mjs doctor
node --no-warnings ~/.gemini/config/plugins/omni-mem/src/cli.mjs ingest-history 30
node --no-warnings ~/.gemini/config/plugins/omni-mem/src/cli.mjs report --openCLI Reference
omnimem doctor # Verify DB, FTS5, and all 3 agent integrations
omnimem status # Counts by agent, kind, project, DB & WAL size
omnimem audit [dir] # Cap utilization, noise candidates, last Auto-GC
omnimem gc # Run full garbage collection & WAL truncate now
omnimem report [--open] # Generate self-contained ~/.omni-mem/dashboard.html
omnimem preview [dir] # Preview exact SessionStart injection (branch + drift)
omnimem search "<query>" # Hybrid FTS5 + synonym + typo search
omnimem save <kind> <t> <c> # Manually store/pin a memory
omnimem forget <id|query> # Archive stale/wrong memory
omnimem restore <id...> # Restore an archived memory
omnimem timeline [dir] # Chronological cross-agent history
omnimem ingest-history [N] # Backfill last N transcripts per agent
omnimem sync-agents-md [dir] # Optional managed <!-- OMNI-MEM:START --> block in AGENTS.md
omnimem distill [dir] --force # Run optional LLM distiller on demandMCP Tools (Exposed to Antigravity, Claude Code & Codex)
mem_search · mem_save · mem_timeline · mem_forget · mem_stats · mem_audit · mem_gc · mem_report · mem_sync_agents_md
Optional Detached LLM Distiller
Disabled by default (0 ms overhead, zero API keys required). To enable periodic background synthesis with local Ollama or any OpenAI/Anthropic-compatible endpoint, create ~/.omni-mem/config.json:
{
"distiller": {
"enabled": true,
"provider": "openai",
"baseUrl": "http://127.0.0.1:11434/v1",
"model": "qwen2.5-coder:7b",
"apiKeyEnv": "",
"minRawMemories": 6,
"cooldownMinutes": 60
}
}License
MIT © 2026 Bruno Rainha
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent cross-session memory shared by Codex, Claude Code, ChatGPT, and other AI agents.
Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.
Shared memory for coding agents. Stop re-explaining your codebase every session.
One memory for you and your AI agents, shared by ChatGPT, Claude, Gemini, Grok, Codex and Cursor.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents like Codex, Grok Build, and Antigravity to share persistent local memory, preferences, project context, tasks, and handoffs using Markdown and SQLite.1MIT

Hilo Localofficial
AlicenseNot gradedqualityCmaintenanceGives AI coding agents persistent local memory: it saves, full-text searches, and loads typed memories, reusable skills, technical docs, session context, and history through SQLite FTS5, with optional Git export/import and OAuth cloud sync. Runs entirely offline with isolated profiles, so agents keep context across sessions without an account.MIT- AlicenseNot gradedqualityBmaintenanceEnables coding agents to maintain a local SQLite-backed cognitive memory with token-efficient progressive disclosure, decay-aware recall, multi-hop associative retrieval, contradiction resolution, and secret redaction.MIT
- AlicenseBqualityCmaintenanceEnables local, SQLite-backed long-term memory sharing across AI agents and coding clients, with full-text search, CRUD operations, progressive disclosure, token-budgeted context packs, and memory pruning/diagnostics.1015 npm3Apache 2.0