Neural Memory logo

Neural Memory

Offline graph memory for AI agents with spreading-activation recall, session recaps, document ingestion, and optional self-hosted sync.

Install Neural Memory

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "neural-memory": {
      "command": "uvx",
      "args": [
        "neural-memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio neural-memory -- uvx neural-memory

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The neural-memory MCP server gives AI agents persistent memory stored as interconnected neurons rather than embeddings in a vector database. Its core tools, nmem_remember, nmem_recall, and nmem_recap, store experiences, follow relationships between memories, and restore session context; the server initializes automatically on first use. It also supports document ingestion, memory lifecycle management, brain versioning, and optional synchronization through infrastructure deployed in the user's Cloudflare account. Reach for it when an agent needs offline, multi-session recall with explicit causal and associative relationships.

Use cases

  • Store decisions and project facts across agent sessions
  • Recall related causes, resolutions, and prior discussions
  • Ingest documents into persistent agent knowledge
  • Sync a memory brain between personal devices
  • Inspect and maintain an agent's memory graph

Key features

  • Spreading-activation graph recall
  • Automatic memory typing, tagging, and linking
  • Offline storage without embeddings or API calls
  • Document ingestion and knowledge migration
  • Brain snapshots, rollback, and compression
  • Optional Cloudflare-based synchronization

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/23 checks healthy over the last 89d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · neural-memory (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars246Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.

How Neural Memory works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Neural Memory

neural-memory is an MCP server that connects AI agents to a persistent local memory graph. Its main tools, nmem_remember, nmem_recall, and nmem_recap, store memories, retrieve associated knowledge through spreading activation, and restore context between sessions without requiring a vector database or embedding API.

Install it with `pip install neural-memory`, then restart your MCP-compatible AI tool. Python 3.11 or newer is required, and the server initializes automatically on first use. The command-line interface is available as `nmem` or `neural-memory`.

Yes, the free system works offline without API calls, embedding services, or a vector database. Its free-tier retrieval uses local SQLite and FTS5. Optional synchronization requires a Cloudflare Worker deployed in your own account.

Run `nmem config tier full` to list the complete tool set. Fresh installations expose a standard set of 10 tools to reduce token usage, while the full tier provides up to 63 tools covering sessions, maintenance, temporal recall, habits, and other functions.

Yes, `nmem_sync` can synchronize changes between devices through a Cloudflare Worker that you deploy to your own account. Use the seed action for an initial preparation and the full action for subsequent push-and-pull synchronization.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNeural Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/neural-memory?style=directory)](https://allmcps.com/mcp/neural-memory)
HTML Embed
<a href="https://allmcps.com/mcp/neural-memory"><img src="https://allmcps.com/api/badge/neural-memory?style=directory" alt="Neural Memory on AllMCPs" /></a>