Memory OS AI
Local shared project memory that AI coding assistants read and update through MCP
Memory OS AI 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
- macOS, Linux, CLI
- Runs
- Locally
- Version
- 4.1.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add memory-os-ai --env MEMORY_V4_TOKEN_FILE='<MEMORY_V4_TOKEN_FILE>' -- uvx memory-os-aiAdd --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": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
],
"env": {
"MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
],
"env": {
"MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
],
"env": {
"MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"memory-os-ai": {
"type": "stdio",
"command": "uvx",
"args": [
"memory-os-ai"
],
"env": {
"MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>"
}
}
}
}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 memory-os-ai --env MEMORY_V4_TOKEN_FILE='<MEMORY_V4_TOKEN_FILE>' -- uvx memory-os-aiOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.memory-os-ai]
command = "uvx"
args = ["memory-os-ai"]
env = { MEMORY_V4_TOKEN_FILE = "<MEMORY_V4_TOKEN_FILE>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
],
"env": {
"MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }Or run: gemini mcp add -s user -e MEMORY_V4_TOKEN_FILE='<MEMORY_V4_TOKEN_FILE>' memory-os-ai uvx -- memory-os-ai
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }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": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }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": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "memory-os-ai": { "command": "uvx", "args": [ "memory-os-ai" ], "env": { "MEMORY_V4_TOKEN_FILE": "<MEMORY_V4_TOKEN_FILE>" } } } }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_V4_TOKEN_FILEAbsolute path to the existing private 0600 service token file; never paste the token value.RequiredMEMORY_V4_URLExisting authenticated loopback service endpoint; the relay does not start a server.
About Memory OS AI
Memory OS AI runs a loopback service on your machine that stores dated project decisions, open tasks and history, so assistants such as Claude Code, Codex or Cursor can pick up the same project state instead of each keeping its own notes. A correction explicitly replaces an earlier decision while the old version stays in the history, which makes it possible to ask what was believed on a given date.
The server itself contains no language model. Your assistant extracts the facts and the search runs locally, either with a hybrid BM25 plus embedding profile or a lighter literal BM25 profile. Shared tasks use compare-and-set updates on the SQLite backend, so two assistants cannot silently overwrite each other's changes.
It suits developers who switch between several AI coding clients on one machine and want handoffs without maintaining shared notes by hand. The product is in alpha, supports only a few macOS and Ubuntu 24.04 configurations, and does not cover remote or cloud agents.
What it does
- Dated decision history
- Decisions are stored with dates, and corrections replace earlier entries while keeping the prior record.
- Session briefs
- A compact summary of decisions in force, open tasks and the next action is produced at session start.
- Shared task tracking
- Tasks move between open, blocked and done states with compare-and-set protection against conflicting edits.
- Local hybrid or lexical search
- Search runs on the machine with a choice of a semantic profile or a lighter literal BM25 profile.
- Client configuration helper
- The quickstart command writes MCP entries for chosen assistants, with backups and an undo option.
Good for
- Handing a project from one AI coding assistant to another without re-explaining past decisions
- Recording architectural choices with dates so later sessions can check what was agreed
- Tracking open and blocked tasks that several assistants update on the same codebase
- Searching earlier project facts locally before an assistant guesses about past work
Pricing
Open source
Prices change. Check pypi.org before you buy.
Memory OS AI FAQ
Does Memory OS AI send data to a cloud service?
The README states there is no account, no telemetry and no cloud service run by the maintainers. Local storage does not stop a cloud assistant from receiving the snippets it reads.
Which platforms are supported?
Four retained cells: macOS on Apple Silicon with Python 3.11, 3.12 or 3.13, and Ubuntu 24.04 arm64 with Python 3.11. Other platforms are refused, including Windows and WSL.
What does the relay need to run?
It needs an installed, authenticated shared v4 service reachable at the configured loopback URL and a token file path; the relay does not start a server itself.
Is Memory OS AI free?
Yes. Memory OS AI is open source, so you can use and self-host it for free.
How do I add Memory OS AI to Claude Code?
Run this command in your terminal: claude mcp add memory-os-ai --env MEMORY_V4_TOKEN_FILE='<MEMORY_V4_TOKEN_FILE>' -- uvx memory-os-ai
What are the best alternatives to Memory OS AI?
The closest alternatives to Memory OS AI are Project Memory MCP, Memory MCP Lite, CP Memory, Project Memory and Memoir.
Where this comes from
- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.