Mneme Memory MCP
Integrates with Hermes Agent to provide a shared memory layer, allowing Hermes to access and persist memories across sessions.
Click on "Install 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., "@Mneme Memory MCPremember that my favorite color is blue"
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.
Mneme Memory MCP
The memory that grows with every agent.

Mneme is a local-first shared memory and agent-mesh layer for Claude, Codex, Hermes, and any MCP-aware agent you trust.
It gives your agents one durable mind and one shared bridge: preferences, project state, tool setup, decisions, long-running context, and peer-agent delegation that survive new chats and new clients.
Claude Code <----> mneme-memory-mcp <----> Codex
\ | | /
\ | | /
\--------> ~/.hermes memory <------/
|
Hermes AgentWhat It Does
Remembers across chats, agents, and clients
Installs always-on memory instructions for fresh Claude and Codex chats
Auto-injects Markdown memory into new Claude Code sessions
Archives local Claude and Codex conversation snippets as capped episodic memory, then distills compact searchable summaries
Shares one Hermes-compatible memory home
Stores human-readable memory in Markdown
Stores searchable facts in SQLite FTS
Exposes memory through MCP tools
Installs beside Hermes Agent, and can bootstrap Hermes when it is missing
Wires Claude and Codex together through MCP and the OpenAI Claude-to-Codex plugin
Installs Ponytail for smaller, safer code-generation behavior in both clients
Related MCP server: auxly-memory-cli
Why Mneme?
Mneme means memory. Hermes carries messages; Mneme keeps them from disappearing. This project is the bridge that lets every connected agent return to the same remembered context.
Platform support
The Mneme package (MCP server, memory tools, and CLIs) is pure Python and runs on macOS, Linux, and Windows.
macOS / Linux: use the one-command installer below (
./scripts/install.shis bash).Windows: use the native PowerShell installer below (
.\scripts\install.ps1).
Hermes auto-install uses the official bash installer on macOS/Linux. On Windows, Mneme looks for an existing Hermes Agent install and continues with Mneme MCP memory when Hermes is not present.
Quick Install
macOS / Linux:
git clone https://github.com/ethos-zero/mneme-memory-mcp.git
cd mneme-memory-mcp
./scripts/install.shWindows PowerShell:
git clone https://github.com/ethos-zero/mneme-memory-mcp.git
cd mneme-memory-mcp
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1Both installers support these memory profiles:
Profile | Best For | Memory Home | Global Claude/Codex Instructions |
| A personal machine where every fresh Claude/Codex chat should share memory |
| Yes |
| A cloned repo, shared setup, or isolated workspace |
| No |
| Manual wiring or cautious evaluation | Your existing env/defaults | No |
Both installers ask which profile you want when run interactively. Non-interactive installs, including installs run by an AI agent or automation, stop until the user chooses global, project, or server. After the user answers, rerun with both --profile/-Profile and --profile-confirmed/-ProfileConfirmed, or set MNEME_SETUP_PROFILE plus MNEME_PROFILE_CONFIRMED=1.
The installer:
checks for
hermesinstalls Hermes Agent with the official Hermes installer if missing on macOS/Linux
creates a managed Python venv under the platform data directory
installs
mneme-memory-mcpinto that managed venvcreates the configured memory home and
memoriesdirectoryfor the
globalprofile, installs always-on Mneme instructions into global Claude and Codex guidance filesfor the
globalprofile, configures a Claude CodeSessionStarthook that injects the shared Markdown memory into fresh sessionsfor the
globalprofile, configures a Claude CodeUserPromptSubmithook that adds shared memory context before every future promptfor the
globalprofile, configures Claude and Codex capture hooks that archive recent local conversation snippets and distill compact searchable summariesconfigures Mneme as an MCP server in Codex and Claude Code when those CLIs are present, and writes Claude user-scope MCP config directly when the Claude CLI is unavailable
installs openai/codex-plugin-cc into Claude Code for Claude -> Codex delegation
installs DietrichGebert/ponytail into Codex and Claude Code for minimal, safer implementation behavior
prints manual fallback config
Ponytail is part of the default client-wiring path for global and project profiles when the relevant CLIs are available and runnable. It is skipped only for server, --no-agent-plugins/-NoAgentPlugins, or --memory-only/-MemoryOnly.
Preselect a profile after the user has chosen it:
./scripts/install.sh --profile global --profile-confirmed
./scripts/install.sh --profile project --profile-confirmed
./scripts/install.sh --profile server --profile-confirmedWindows:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile project -ProfileConfirmed
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile server -ProfileConfirmedIf a profile is supplied without the confirmation flag, an interactive shell asks you to type the profile name before it proceeds; a non-interactive shell exits so an agent can ask the user first.
To skip Hermes installation:
./scripts/install.sh --profile global --profile-confirmed --no-hermes-installpowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -NoHermesInstallFor memory-only setup without client/plugin changes:
./scripts/install.sh --profile global --profile-confirmed --memory-onlypowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -MemoryOnlyTo keep MCP/plugin setup but skip global memory instructions:
./scripts/install.sh --profile global --profile-confirmed --no-continuitypowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -NoContinuityFor a project/env-scoped setup using a specific env file:
./scripts/install.sh --profile project --profile-confirmed --env-file /path/to/.envpowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile project -ProfileConfirmed -EnvFile C:\path\to\.envYou can start from .env.example.
If that file has no MNEME_HOME or HERMES_HOME, Mneme adds:
MNEME_HOME=/Users/YOU/.local/share/mneme-memory-mcp/projects/mneme-memory-mcpCheck the setup:
~/.local/share/mneme-memory-mcp/venv/bin/mneme-memory-doctorWindows:
& "$env:LOCALAPPDATA\mneme-memory-mcp\venv\Scripts\python.exe" -m mneme_memory_mcp.doctorInstall Paths
The installer does not create runtime folders on your Desktop. If you clone the repo on your Desktop, the visible Desktop item is just the cloned repo folder.
Default installer paths:
Item | macOS / Linux | Windows |
Managed install directory |
|
|
Python virtualenv |
|
|
Global memory profile |
|
|
Project memory profile |
|
|
Project env file |
|
|
Codex global instructions |
|
|
Codex capture notify wrapper |
|
|
Claude global instructions |
|
|
Claude memory hook |
|
|
Claude capture hook |
|
|
The installer prints the exact install dir, venv dir, memory home, and env file paths it selected.
Override the managed install paths when needed:
./scripts/install.sh --profile global --profile-confirmed --install-dir /path/to/mneme-runtime
./scripts/install.sh --profile global --profile-confirmed --venv-dir /path/to/mneme-venvpowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -InstallDir C:\path\to\mneme-runtime
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -VenvDir C:\path\to\mneme-venvThe default installer performs a normal package install, so the runtime does not depend on keeping the repo checkout on your Desktop. Contributors can use editable mode:
./scripts/install.sh --profile global --profile-confirmed --editablepowershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Profile global -ProfileConfirmed -EditableAgent Mesh

Mneme makes Claude and Codex meet in the same memory field.
Claude -> Codex: installed through OpenAI's
codex-plugin-ccClaude Code plugin.Codex -> Claude: exposed through Mneme's
delegate_to_claudeMCP tool.Shared memory: both clients use the same Mneme MCP server pointed at the same Hermes-compatible memory home.
Always-on continuity: global Claude/Codex instructions, Claude startup and per-prompt memory injection, and local capture hooks make chats consult shared memory and keep adding searchable context as work happens.
Efficient implementation mode: Ponytail is installed for both clients when available.
More details live in docs/agent-mesh.md, docs/always-on-memory.md, and docs/ponytail.md.
Hermes Pairing
Mneme is designed to sit next to Hermes Agent, the agent that grows with you. Hermes provides the agent runtime and desktop experience; Mneme provides a small shared-memory MCP bridge that other agents can use directly.
For the full setup, install both:
Hermes Agent for the local agent environment
Mneme Memory MCP for shared memory across Codex, Claude Code, Hermes, and other MCP clients
More details live in docs/hermes.md.
Memory Store
Mneme stores memory in three local forms:
Generated Markdown views for always-on human-readable working context:
~/.hermes/memories/USER.md~/.hermes/memories/MEMORY.md
SQLite typed fact/event store for searchable recall, supersession, handoffs, and episodic archives:
~/.hermes/memory_store.db
USER.md and MEMORY.md are compact generated views. The database is the source of truth: semantic facts, project facts, procedural runbooks, resource pointers, structured handoffs, and a capped episodic archive live there. Automatic conversation captures write raw turns to episodic_entries, not the main fact table. Mneme then writes one session summary plus a few high-value distilled facts, so always-loaded context does not grow with every transcript turn.
Upgrading an older 0.6.x store quarantines legacy category='conversation' raw transcript rows into episodic_entries and removes them from searchable facts. The migration is idempotent and rebuilds FTS after quarantine so stale transcript text cannot remain searchable.
Facts can carry a stable key and optional version. Mneme parses numeric/date-like version strings, marks older facts superseded, and memory_current / mneme-memory current returns the deterministic current value.
Retrieval is scope-gated. Project reads see global + project; global, handoff, and agent-private scopes are isolated unless explicitly requested. Search uses the local FTS5 lexical path plus a LIKE fallback, merges/dedupes results, and ranks current in-scope facts by trust and freshness. Optional semantic/vector and graph indexes are intentionally deferred behind a future optional path, not required dependencies.
It is designed to sit next to Hermes, but the MCP memory server does not require Hermes Agent to be running.
Tools
The MCP server exposes:
memory_summary- read the current Markdown memory summarymemory_search- search the SQLite fact store with scope visibilitymemory_list- list recent facts with scope visibilitymemory_add- add a durable memorymemory_update- update a fact by idmemory_remove- remove a fact by idmemory_current- resolve the current fact for a supersession keymemory_consolidate- regenerate compactUSER.mdandMEMORY.mdviewsmemory_handoff_write- write a structured handoffmemory_handoff_latest- fetch the latest handoff for a scopeagent_bridge_status- check local Claude, Codex, and Node readinessdelegate_to_claude- ask Claude Code to handle a one-shot task with Mneme memory injecteddelegate_to_codex- ask Codex to handle a one-shot task with Mneme memory injected
Mneme also installs these local CLI commands:
mneme-memory- read, search, list, add, consolidate, resolve current facts, and manage handoffs without an MCP clientmneme-memory-capture- archive local Claude/Codex conversation transcripts and distill compact searchable summariesmneme-memory-continuity- install or inspect always-on Claude/Codex memory continuitymneme-memory-env-mcp- run the MCP server after loading memory settings from a.envfile
Manual Install
macOS / Linux:
git clone https://github.com/ethos-zero/mneme-memory-mcp.git
cd mneme-memory-mcp
python3 -m venv .venv
.venv/bin/pip install -e .Windows:
git clone https://github.com/ethos-zero/mneme-memory-mcp.git
cd mneme-memory-mcp
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .Your server command will be:
/absolute/path/to/mneme-memory-mcp/.venv/bin/mneme-memory-mcpOn Windows:
C:\absolute\path\to\mneme-memory-mcp\.venv\Scripts\python.exe -m mneme_memory_mcpConfigure Codex
Add this to ~/.codex/config.toml:
[mcp_servers.mneme_memory]
command = "/absolute/path/to/mneme-memory-mcp/.venv/bin/mneme-memory-mcp"
args = []
startup_timeout_sec = 120
[mcp_servers.mneme_memory.env]
HERMES_HOME = "/Users/YOU/.hermes"On Windows, use TOML literal strings so backslashes are not interpreted as escapes:
[mcp_servers.mneme_memory]
command = 'C:\absolute\path\to\mneme-memory-mcp\.venv\Scripts\python.exe'
args = ['-m', 'mneme_memory_mcp']
startup_timeout_sec = 120
[mcp_servers.mneme_memory.env]
HERMES_HOME = 'C:\Users\YOU\.hermes'Restart Codex or open a fresh session so it reloads MCP servers.
Example config files live in examples/codex-config.toml and examples/codex-config-windows.toml.
To also expose Hermes Agent itself to Codex, add a Hermes MCP server using the hermes command installed by Hermes Agent:
[mcp_servers.hermes]
command = "hermes"
args = ["mcp", "serve", "--accept-hooks"]
startup_timeout_sec = 120Configure Claude Code
Add this to ~/.claude.json:
{
"mcpServers": {
"mneme-memory": {
"type": "stdio",
"command": "/absolute/path/to/mneme-memory-mcp/.venv/bin/mneme-memory-mcp",
"args": [],
"env": {
"HERMES_HOME": "/Users/YOU/.hermes"
}
}
}
}On Windows:
{
"mcpServers": {
"mneme-memory": {
"type": "stdio",
"command": "C:\\absolute\\path\\to\\mneme-memory-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "mneme_memory_mcp"],
"env": {
"HERMES_HOME": "C:\\Users\\YOU\\.hermes"
}
}
}
}If you already have other mcpServers, merge the mneme-memory entry into the existing object.
Example config files live in examples/claude.json and examples/claude-windows.json.
Always-On Client Memory
Always-on client memory is the global profile. It is ideal for one trusted personal machine, because every configured local Claude and Codex session is instructed to start from the same memory layer.
The installer writes managed instruction blocks to:
~/.codex/AGENTS.md~/.claude/CLAUDE.md
It also installs this Claude Code hook:
~/.claude/hooks/mneme-memory-sessionstart.shOn Windows this hook is:
%USERPROFILE%\.claude\hooks\mneme-memory-sessionstart.cmdand merges it into ~/.claude/settings.json under SessionStart.
The MCP server is still the source of truth for search and writes; the global instructions plus Claude startup and per-prompt hooks make high-signal memory visible in fresh chats and before future prompts in active Claude Code sessions.
Read the full behavior in docs/always-on-memory.md.
For repo-scoped memory, choose the project profile when prompted, or use --profile project --profile-confirmed after the user has chosen it. That profile configures MCP clients through mneme-memory-env-mcp, which reads MNEME_HOME or HERMES_HOME from .env, and it does not install global Claude/Codex memory instructions.
Environment Variables
Defaults are chosen for Hermes compatibility:
Variable | Default | Purpose |
| unset | Primary Mneme home override |
|
| Hermes-compatible memory home |
|
| Markdown memory directory |
|
| SQLite fact store path |
Priority for home is:
MNEME_HOMEHERMES_HOME~/.hermes
Local Smoke Test
python -m unittest discover -s tests -vTo test through an MCP client, use any MCP-compatible inspector/client and run:
mneme-memory-mcpPrivacy
This server is local-first. It does not send memory anywhere by itself. Any agent you connect to it can read or write the configured local memory, so only connect agents you trust.
The delegate_to_claude and delegate_to_codex tools run the other CLI on your machine non-interactively. delegate_to_codex uses Codex's workspace-write sandbox with approvals disabled (and can be set to danger-full-access), so it can change files in the working directory on its own. Treat them like any autonomous agent and enable them only for directories and tasks you trust.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ethos-zero/mneme-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server