Skip to content

Cortex

Cross-platform persistent memory MCP for Codex, Gemini CLI, Claude Code, and other local MCP hosts. 36 cited neuroscience mechanisms, local-first SQLite/PostgreSQL, hybrid…

Install: claude plugin install hypermnesia-mcp

Works with Claude Code, Codex, Gemini CLI · 75 GitHub stars

Install

$claude plugin install hypermnesia-mcp

Install command taken from the project's README or registry entry. Always review code before running it.

Memory for AI coding agents that you can hold accountable. Keep decisions, fixes and project context between sessions, and inspect what was retrieved. Runs locally by default. No account, no API key, no server to manage.


Sovereign is what it is today. Everything runs on your machine: a local SQLite file by default, or PostgreSQL + pgvector if you prefer. No LLM in the retrieval loop, and nothing leaves localhost unless you configure an integration that does. Your project's memory is a file you own and can delete.

Claude Code and Codex share Cortex memory. Both native plugins provide the same memory tools and 11 lifecycle hook modules for automatic capture, recall and project context. Use either agent on a project and keep its memory when you switch. Verified with real Claude and Codex sessions on macOS. The same stdio MCP server also supplies memory tools to Claude Desktop, Claude Cowork and other local MCP hosts.

Eco-responsible is what we are aiming at. Work that never reaches a datacenter is work nobody has to power, and an agent that finds the right context first time re-reads fewer files. We hold that intent to the Green Software Foundation's SCI method, and we publish no CO₂ or energy figure, because we have not measured one. What we do and do not claim ↓

36 neuroscience mechanisms · 57 memory tools · 11 lifecycle hooks · a self-curating per-project wiki — all local, all open-source, MIT.

Install

Claude Code — add the marketplace and install the plugin:

claude plugin marketplace add cdeust/Cortex
claude plugin install hypermnesia-mcp

Update the same way, one command:

claude plugin update hypermnesia-mcp

Claude Desktop — download hypermnesia-mcp.mcpb from Releases and open it, or use Settings → Extensions. The bundle carries the tools but no hooks; the MCPB format has none.

Claude Cowork is detected automatically (CLAUDE_ENVIRONMENT=cowork) and uses the local SQLite store. No PostgreSQL required.

For Codex, install the native plugin for memory tools and automatic hooks:

uv tool install "hypermnesia-mcp[sqlite]"
codex plugin marketplace add cdeust/Cortex
codex plugin add hypermnesia-mcp-codex@cortex-codex-plugins

Open /hooks in Codex to review and trust the Cortex hooks, then start a fresh session. Changed hook definitions require renewed trust after an update. The plugin uses the same saved backend selection as Claude Code; both hosts share memory when they use the same configuration root and store. Codex setup details.

Other stdio MCP hosts (Gemini CLI, Cursor, Windsurf, VS Code) launch the same server and get the same tools. See launch commands. WSL, TLS client certificates and corporate proxies are covered in deployment scenarios.

The first session installs Cortex's runtime into the plugin's data directory (about a minute on a cold machine; a Mac whose python3 is older than 3.10 also gets a private CPython 3.12), then shows Cortex ready: <store>, <n> memories; <how recall ranks>, or Cortex not ready: with the cause. Semantic search installs in the background; until it lands the same line says recall is keyword-only.

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related