# neural-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/nhadaututtheky/neural-memory  
**GitHub Stars:** 246  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/neural-memory

## Description
Persistent memory for AI agents — 55 MCP tools, spreading activation recall.

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

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

## Documentation

## What neural-memory does

neural-memory provides persistent memory for AI agents through an MCP interface. It represents memories as connected neurons and retrieves them with spreading activation, allowing related items to surface through associations instead of relying only on keyword similarity. Explicit relationship types include causes, consequences, resolutions, suggestions, and contradictions, which support multi-step recall.

The server covers several memory types, including facts, decisions, errors, insights, preferences, workflows, and instructions. It can also consolidate episodic memories into semantic knowledge, reduce stored content through compression tiers, and manage separate brains. Brain snapshots, rollbacks, diffs, exports, and memory transfers support backup and maintenance workflows.

## How it works

A fresh installation exposes a standard set of 10 MCP tools to reduce context use. The full tier makes up to 63 tools available. Most workflows center on three tools:

- `nmem_remember` stores a memory while detecting its type, tags, and connections.
- `nmem_recall` retrieves associated memories through spreading activation.
- `nmem_recap` restores relevant context at the beginning of a session.

Additional functions handle sessions, context loading, habits, maintenance, causal and temporal recall, and synchronization. The server auto-initializes the brain on first use, so a separate initialization command is not required.

The free system works offline without API calls, embedding services, or a vector database. Its documented storage and search model uses SQLite and FTS5 for the free tier. The optional Pro tier adds semantic similarity through HNSW, along with larger-scale retrieval and vector compression.

## Setup and configuration

Install the Python package with:

```bash
pip install neural-memory
```

Python 3.11 or newer is required. The command-line interface is available as `nmem`, with `neural-memory` as the longer command name. After installation, restart the MCP-compatible AI tool. The `nmem update` command upgrades an existing installation and detects whether it came from pip or source; `nmem update --check` checks for available updates without applying them.

Use `nmem config tier full` to expose the complete tool set. Workload presets are available for balanced, cost-conscious, maximum-recall, and chat-heavy configurations. The web dashboard can be started with `nmem serve` and is available locally at `http://localhost:8000/dashboard`.

## Tools and capabilities

- Store, recall, and recap persistent agent memories.
- Ingest PDF, DOCX, PPTX, HTML, JSON, XLSX, and CSV files.
- Import data from ChromaDB, Mem0, Cognee, Graphiti, and LlamaIndex.
- Perform causal and temporal recall, including time ranges and neighboring events.
- Track consolidation, compression, brain versions, snapshots, and rollbacks.
- Synchronize changes between devices with `nmem_sync` through a Cloudflare Worker deployed to the user's account.
- Inspect memory health with `nmem health` or the dashboard.
- Use the VS Code extension for memory browsing, graph exploration, CodeLens, and WebSocket synchronization.
- Back up brain database files through Telegram.

## Limitations and notes

Free Neural Memory is designed for offline use and does not require paid embeddings. Keyword-based FTS5 recall is the free-tier retrieval method; semantic HNSW recall belongs to Pro. The project describes free-tier scaling at roughly 50,000 neurons and Pro testing beyond two million. Cloud synchronization requires deploying and operating the sync hub in the user's own Cloudflare account, including its D1 database and encryption key. Synchronization transfers changes since the previous sync rather than the entire brain.

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

