mcp-openmemory
Simple standalone MCP server giving Claude the ability to remember your conversations and learn from them over time.
claude mcp add --transport stdio baryhuang-mcp-openmemory npx @peakmojo/mcp-openmemory@latest \ --env MEMORY_DB_PATH="/Users/username/mcp-memory.sqlite"
How to use
MCP OpenMemory adds memory capabilities to Claude Desktop by exposing a set of tools that let the assistant save, recall, and summarize memory across conversations. It runs as an MCP server that talks to Claude Desktop, enabling you to store individual messages, generate memory abstracts, and retrieve recent memory history. Key tools available are save_memory for persisting important exchanges, recall_memory_abstract for getting a current memory summary, update_memory_abstract to refine or expand the memory summary, and get_recent_memories to fetch recent conversation details. You can configure a persistent SQLite database via MEMORY_DB_PATH, ensuring memory persists across sessions. To start using it, run the MCP server through Claude Desktop's MCP configuration (or test-start with npx @peakmojo/mcp-openmemory@latest) and ensure the server is discoverable by Claude Desktop under the configured mcpServers entry. When interacting with Claude, invoke the memory tools as you would with other MCP tools, and consider using a project-specific context to namespace memory when needed. Remember to configure and restart Claude Desktop after changes for the tools to appear and be usable.
How to install
Prerequisites:
- Node.js installed on your system (verify with node --version)
- Claude Desktop installed and configured to use MCP servers
- Optional: a preferred path for MEMORY_DB_PATH where memory will be persisted
Installation steps:
- Install and start the MCP OpenMemory server via npm/npx:
- npx @peakmojo/mcp-openmemory@latest
- This will run the server directly without a global install (recommended for quick tests).
- If you want Claude Desktop to start the server automatically via configuration, create the mcpServers entry in the Claude config with the following example:
{
"mcpServers": {
"mcp-openmemory": {
"command": "npx",
"args": [
"@peakmojo/mcp-openmemory@latest"
],
"env": {
"MEMORY_DB_PATH": "/path/to/your/memory.sqlite"
}
}
}
}
-
Ensure the MEMORY_DB_PATH path exists and is writable by the user running Claude Desktop. If omitted, a default './memory.sqlite' will be used in a temporary location.
-
Verify the server runs by starting it manually:
- npx @peakmojo/mcp-openmemory@latest
- Check for log output indicating the server is ready.
-
Open Claude Desktop and confirm the MCP server appears under Tools/Plugins or the Developer configuration, then restart Claude Desktop if required.
Additional notes
Tips and notes:
- MEMORY_DB_PATH controls where memory is persisted. Use an absolute path to avoid issues when Claude Desktop restarts.
- You can namespace memory per project by using different MEMORY_DB_PATH values for separate Claude profiles or projects.
- If the MCP server doesn't appear, verify JSON syntax in the Claude config and ensure the path in MEMORY_DB_PATH exists.
- Common issue: ENOENT errors on Windows may require APPDATA to be set in the environment configuration.
- Logs can help diagnose problems; refer to Claude's log directories for mcp*.log files.
- Tools available: save_memory, recall_memory_abstract, update_memory_abstract, get_recent_memories. Use context fields to partition memory logically if needed.
- This server relies on SQLite; no external DB dependencies are required beyond the filesystem path you provide.
Related MCP Servers
any-chat-completions
MCP Server for using any LLM as a Tool
bitbucket
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
time
⏰ Time MCP Server: Giving LLMs Time Awareness Capabilities
unity-editor
An MCP server and client for LLMs to interact with Unity Projects
website-publisher
AI Website builder and publisher MCP. Quickly publish and deploy your AI generated code as real website URL. Support html, css, js, python etc.
xgmem
Global Memory MCP server, that manage all projects data.