OpenMem
One set of memory tools for coding agents over Hindsight, mem0 or Cognee
OpenMem is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.6.3
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add openmem -- npx -y @bcmyguest/openmemAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"openmem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add openmem -- npx -y @bcmyguest/openmemOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.openmem]
command = "npx"
args = ["-y", "@bcmyguest/openmem"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"openmem": {
"command": "npx",
"args": [
"-y",
"@bcmyguest/openmem"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Or run: gemini mcp add -s user openmem npx -- -y @bcmyguest/openmem
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "openmem": { "command": "npx", "args": [ "-y", "@bcmyguest/openmem" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MEMORY_PROVIDERActive backend: hindsight (default), mem0, or cogneePM_STACK_ROOTOpenMem stack directory (compose project, .env)
About OpenMem
OpenMem puts a stable set of memory_* tools in front of whichever memory backend you run, so an agent keeps the same interface if you switch provider. Hindsight is the default, with mem0 and Cognee as alternatives chosen through MEMORY_PROVIDER. Switching does not move data by itself; export and import, or re-indexing, carries content across, and the export format is called PMM.
An indexer polls Git repositories and watches folders, feeding docs, code outlines, Obsidian vaults, notes, papers, bookmarks, RSS and OpenAlex feeds into the active provider. Session hooks for Claude Code, Codex, Cursor and OpenCode recall memory at the start of a session and retain it at the end. A setup wizard, a doctor command and an install-coding-agent command handle the rest.
The stack runs under Docker Compose v2 and needs Node 24 or newer plus an LLM route for Hindsight. A notice in the README says the older context-management pieces (smart compaction, the LiteLLM context proxy, the OpenCode trim plugin) are deprecated here and have moved to a separate project, Smarter Compact; OpenMem is now for memory.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 6 tools changes data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- memory_recall
- Recalls stored memory.
- memory_addName suggests: changes
- Adds to memory.
- memory_searchName suggests: reads
- Searches memory.
- memory_reflect
- Synthesises across stored memory.
- memory_exportName suggests: reads
- Exports memory in the portable PMM format.
- memory_import
- Imports memory from a PMM export.
What it does
- Swappable providers
- Runs the same memory tools over Hindsight, mem0 or Cognee.
- Source indexer
- Polls repos and watches folders, vaults and feeds to build memory.
- Session hooks
- Recalls memory when a coding session starts and retains it when it stops.
- Portable export
- memory_export and memory_import use the PMM format to move content between providers.
- Setup wizard and doctor
- Plans first-time setup with a dry run and checks the stack afterwards.
Good for
- Give a coding agent persistent project knowledge
- Index an Obsidian vault or notes folder for agent recall
- Try mem0 or Cognee without changing agent configuration
- Move memory content between providers
Pricing
Open source
OpenMem FAQ
What does OpenMem require?
Docker Compose v2, Node 24 or newer, and an LLM route for Hindsight.
Which providers are supported?
Hindsight (default), mem0 and Cognee, selected with MEMORY_PROVIDER.
Which coding agents are covered?
Claude Code, Codex, Cursor and OpenCode.
Does switching providers migrate my data?
No. Use memory export and import, or re-index the sources.
What happened to context management?
It is deprecated in OpenMem and moved to Smarter Compact.
Is OpenMem free?
Yes. OpenMem is open source, so you can use and self-host it for free.
How do I add OpenMem to Claude Code?
Run this command in your terminal: claude mcp add openmem -- npx -y @bcmyguest/openmem
What are the best alternatives to OpenMem?
The closest alternatives to OpenMem are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


