# M3 Memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/skynetcmd/m3-memory  
**GitHub Stars:** 32  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/m3-memory

## Description
Local-first agentic memory — 100+ tools, 92% LongMemEval-S, hybrid search, GDPR, zero cloud.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "m3-memory": {
    "command": "uvx",
    "args": ["m3-memory"]
  }
}
```

## Documentation

## What M3 Memory does

M3 Memory provides a persistent knowledge layer for AI assistants rather than acting as a chatbot or language model. Assistants connect over MCP, while the same data can also be managed from the `m3` command-line interface. The store is designed to preserve facts, decisions, preferences, project context, and conversation history between sessions.

Memories are typed instead of being treated only as unstructured text. Each memory can retain its source, confidence, change history, and relationships to entities such as people, places, and projects. When a decision changes, earlier versions remain available; newer information can supersede an older memory, and contradictory writes can be detected.

The Knowledge & Memory design supports multiple assistants using one shared store. This allows an agent such as Claude Code, Cursor, Codex, or Gemini CLI to continue work recorded by another agent.

## How it works

MCP clients call M3 Memory tools to write and retrieve information. Search combines keyword matching with semantic meaning, so queries can find relevant memories without reproducing their original wording. Related entities form a knowledge graph that assistants can follow across multiple hops.

SQLite is the default storage backend and keeps data on the local computer. PostgreSQL can be used instead, and the project supports synchronizing memory across machines. A web dashboard and generated wiki provide additional ways to inspect the stored knowledge.

Optional background maintenance is provided by the cognitive loop. It can connect related facts, merge duplicates, and let stale notes fade. Observer and Reflector stages are also part of the stable feature set. A local model from Ollama or LM Studio can optionally help summarize and link memories; that model is not required for the core MCP server.

## Setup and configuration

M3 Memory requires Python 3.12 or newer. Install the package with either `pipx install m3-memory` or `pip install m3-memory` inside a virtual environment. After installation, run:

```bash
m3 setup
m3 doctor
```

`m3 setup` detects available AI agents and adds the M3 connection to them. It can also offer an installed local LLM for optional memory enrichment. `m3 doctor` checks the installation and configuration. The project supports macOS, Windows, and Linux.

Configuration is held in one `m3_config.toml` file. The `m3 config show` command displays settings and their sources. The default deployment needs no cloud account or API key for M3 itself, and it can operate offline.

## Tools and capabilities

The MCP interface covers more than 100 tools, including capabilities for:

- Saving, searching, updating, and superseding memories
- Retrieving conversation history and project context
- Hybrid keyword and semantic search
- Reading version history and querying information as of a date
- Navigating entity relationships in the knowledge graph
- Sharing memory between agents, including handoffs and scoped collaboration
- Supporting GDPR export and erasure workflows

When an assistant connects, M3 can expose a smaller initial tool set so the client receives fewer tool descriptions. Memory reads and search hits are audited with the reader, data owner, and timestamp; these records are retained for 90 days and included in GDPR export and erasure.

## Limitations and notes

M3 Memory is a memory layer, not an AI model or conversational application. The assistants connected to it may have separate model, account, or API requirements. Local LLM enrichment is optional and requires Ollama or LM Studio to be installed before setup.

SQLite is the default backend, while PostgreSQL is an alternative. The project describes the core server, dashboard, cognitive loop, Observer, and Reflector stages as stable. Health and Prometheus metrics, along with HNSW approximate search on PostgreSQL, are planned rather than part of the stable feature set.

_Full upstream README: https://allmcps.com/mcp/m3-memory/readme_

