Neural Memory

Memory and knowledge

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

Your AI app calls the Neural Memory MCP server, which does the memory and knowledge work and sends the result back to the chat.

About Neural Memory

Neural Memory is a community MCP server from nhadaututtheky, filed in our directory under memory and knowledge. Persistent memory for AI agents, 55 MCP tools, spreading activation recall.

Neural Memory runs on your own machine: your AI app starts it with the command npx -y neural-memory-mcp@4.27.2 and talks to it over standard input and output.

Neural Memory is listed in the official MCP registry as io.github.nhadaututtheky/neural-memory, version 4.27.2.

At a glance

Publisher
nhadaututtheky (community)
Runs
Locally on your machine
Install from
Node.js package on npm: neural-memory-mcp
Written in
Python
License
MIT
GitHub stars
246
Official MCP registry
io.github.nhadaututtheky/neural-memory

How to set up Neural Memory

  1. Install Node.js on the machine that runs your AI app, because Neural Memory starts with npx and downloads its package on first run.
  2. Check the Neural Memory README for keys or settings; the registry lists none that Neural Memory requires.
  3. Add Neural Memory to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Neural Memory tools to confirm the connection.
  5. Run one read-only task with Neural Memory first, and keep your app asking before each tool call until the results look right.

Neural Memory compared with similar servers

  • Remnic by joshuaswarren has fewer GitHub stars than Neural Memory (243 against 246); both are community servers, and both run locally.
  • ArcRift by Eshaan-Nair has more GitHub stars than Neural Memory (249 against 246); both are community servers, and both run locally.
  • Lobu by lobu-ai has fewer GitHub stars than Neural Memory (240 against 246); both are community servers, and Lobu runs as a remote server and Neural Memory runs on your own machine.

Before you connect Neural Memory

  • Give Neural Memory its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Neural Memory tool call until you trust what it does with them.
  • Treat text that Neural Memory fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Neural Memory on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Neural Memory

How marketing and sales teams put Neural Memory to work, by company size. Pick the size closest to yours and start Neural Memory on one use case.

Small business

  • A small business can give Neural Memory its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Neural Memory to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • Neural Memory runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Neural Memory to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Neural Memory, so answers about pricing and features match across teams.
  • Start Neural Memory on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Neural Memory with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Neural Memory the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Neural Memory is a community server, so have security review the code and pin a version before Neural Memory touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Neural Memory README

From nhadaututtheky/neural-memory on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

NeuralMemory

Your AI agent forgets everything between sessions. Neural Memory gives it a brain.

Website · Quickstart · MCP Tools · Pro · Changelog

Memories are stored as interconnected neurons and recalled through spreading activation, the same way the human brain works. No vector database. No API calls. No monthly embedding bill.

pip install neural-memory

Restart your AI tool. Your agent now remembers, no init needed, the MCP server auto-initializes on first use.

Already installed? nmem update upgrades in place and detects whether you installed via pip or from source. nmem update --check only reports what is available.

The CLI is nmem (or the longer neural-memory). There is no nm binary.

3 Tools. That's It.

63 MCP tools are available, but you only need three:

Tool What it does
nmem_remember Store a memory, auto-detects type, tags, and connections
nmem_recall Recall through spreading activation, related memories surface naturally
nmem_recap Resume where you left off at the start of a session

Fresh installs list the standard set of 10 tools to keep token use low; nmem config tier full lists all 63. Check brain health (A–F with fixes) with nmem health or the dashboard.

Everything else, sessions, context loading, habit tracking, maintenance, works transparently in the background.

All 63 MCP tools →

What Makes This Different

Most memory tools are search engines. Neural Memory is a graph that thinks.

When you ask "Why did Tuesday's outage happen?", a vector database returns the most similar sentence. Neural Memory traces the chain:

outage ← CAUSED_BY ← JWT expiry ← SUGGESTED_BY ← Alice's review

Relationships are explicit, CAUSED_BY, LEADS_TO, RESOLVED_BY, CONTRADICTS, so your agent doesn't just find memories, it reasons through them.

Search-based (RAG) Neural Memory
Retrieval Similarity score Graph traversal
Relationships None 24 explicit types
LLM required Yes (embedding) No, fully offline
Multi-hop reasoning Multiple queries One traversal
Memory lifecycle Static Decay, reinforcement, consolidation
Cost per 1K queries ~$0.02 $0.00

Cloud Sync, Your Data, Your Infrastructure

Sync your brain across every machine. Unlike other memory tools, we never store your data.

Laptop ←→ Your Cloudflare Worker ←→ Desktop
                  ↕
              Your Phone

You deploy the sync hub to your own Cloudflare account (free tier). Your D1 database, your encryption key, your data. We provide the code, you own the infrastructure.

Sync runs through the nmem_sync MCP tool (ask your agent, or call it directly):

nmem_sync(action="seed")   # first time: prepare existing memories
nmem_sync(action="full")   # push and pull changes since the last sync

Only changes since the last sync travel, not the full brain. Pro adds Merkle delta sync (one round trip, only differing entities) when you sync against a self-hosted nmem serve hub.

Cloud Sync setup guide →

Features

Memory & Recall
  • 14 memory types, fact, decision, error, insight, preference, workflow, instruction, and more
  • Spreading activation, memories surface by association, not keyword match
  • Cognitive reasoning, hypothesize, submit evidence, make predictions, verify with Bayesian confidence
  • Workload presets, nmem config preset {balanced,safe-cost,max-recall,chat-heavy} tune the brain for SaaS, frugal mode, deep retention, or conversational agents
  • Temporal recall, nmem_causal exposes temporal_range and temporal_neighborhood actions; see the Temporal Recall Recipes guide
Knowledge Ingestion
  • Train from documents, PDF, DOCX, PPTX, HTML, JSON, XLSX, CSV ingested into permanent brain knowledge
  • Import adapters, migrate from ChromaDB, Mem0, Cognee, Graphiti, LlamaIndex in one command
Lifecycle & Storage
  • Memory consolidation, episodic memories mature into semantic knowledge over time
  • Compression tiers, full → summary → essence → ghost → metadata (reclaim storage, keep meaning)
  • Brain versioning, snapshot, rollback, diff, transplant memories between brains
Community
  • Brain Store, browse, import, and publish pre-built brains to the community marketplace
  • 3 seed brains, Python Best Practices, Git Workflows, Docker Essentials (ready to import)
Ecosystem
  • Web dashboard, 7-page React UI with graph visualization, health radar, timeline, mindmap, Brain Store
  • VS Code extension, memory tree, graph explorer, CodeLens, WebSocket sync (Marketplace →)
  • Safety, Fernet encryption, sensitive content auto-detection, parameterized SQL, path validation
  • Telegram backup, send brain .db files to Telegram for offsite backup

Quick Examples

# Store memories (type auto-detected)
nmem remember "Fixed auth bug with null check in login.py:42"
nmem remember "We decided to use PostgreSQL" --type decision
nmem todo "Review PR #123" --priority 7

# Recall
nmem recall "auth bug"
nmem recall "database decision" --depth 2

# Brain management
nmem brain list && nmem brain health
nmem brain export -o backup.json

# Sync across devices: ask your agent, or call the MCP tool
#   nmem_sync(action="full")

# Web dashboard
nmem serve    # http://localhost:8000/dashboard
import asyncio
from neural_memory import Brain
from neural_memory.storage import InMemoryStorage
from neural_memory.engine.encoder import MemoryEncoder
from neural_memory.engine.retrieval import ReflexPipeline

async def main():
    storage = InMemoryStorage()
    brain = Brain.create("my_brain")
    await storage.save_brain(brain)
    storage.set_brain(brain.id)

    encoder = MemoryEncoder(storage, brain.config)
    await encoder.encode("Met Alice to discuss API design")
    await encoder.encode("Decided to use FastAPI for backend")

    pipeline = ReflexPipeline(storage, brain.config)
    result = await pipeline.query("What did we decide about backend?")
    print(result.context)  # "Decided to use FastAPI for backend"

asyncio.run(main())

Neural Memory Pro

Free Neural Memory is complete, 63 tools, unlimited memories, fully offline. You never have to pay.

But past 10K memories, things change. Keyword matching misses semantically related content. Consolidation slows to minutes. Storage grows unbounded. If your agent's brain is getting big, Pro makes it smart.

Free recalls by keyword. Pro recalls by meaning.
Query: "authentication improvements"

Free (FTS5):  2 results, exact matches only
Pro  (HNSW):  7 results, includes "JWT rotation", "session hardening", "OAuth migration"
What Pro adds
Free (SQLite) Pro (InfinityDB)
Recall Keyword match (FTS5) Semantic similarity (HNSW)
Speed at 1M neurons ~500ms <5ms
Scale tested ~50K neurons 2M+ neurons
Compression Text-level trimming 5-tier vector compression (97% savings)
Consolidation O(N²) brute-force O(N×k) HNSW clustering
Storage per 1M ~5 GB ~1 GB
Cloud sync Change-log push/pull + Merkle delta (self-hosted nmem serve hub)
Pro-exclusive features
  • Cone Queries, adjustable semantic recall. Narrow the cone for precision, widen for exploration
  • Smart Merge, consolidation that scales to 1M+ neurons using HNSW neighbor clustering
  • Directional Compression, compress along multiple semantic axes while preserving meaning
  • 5-Tier Auto Lifecycle, memories flow from float32 → float16 → int8 → binary → metadata. Auto-promote on access
Get Pro
pip install neural-memory                 # Pro features included
nmem shared activate --key NM-PRO-XXXX-XXXX-XXXX   # activate license
nmem shared status                                 # verify: Pro: Active

$9/mo, 30-day money-back guarantee. All free tools keep working. Downgrade anytime, keep your data.

Pro quickstart → · Full comparison → · Pricing →

Setup by Tool

Claude Code (Plugin)
/plugin marketplace add nhadaututtheky/neural-memory
/plugin install neural-memory@neural-memory-marketplace
Cursor / Windsurf / Other MCP Clients
pip install neural-memory

Add to your editor's MCP config:

{
  "mcpServers": {
    "neural-memory": { "command": "nmem-mcp" }
  }
}
OpenClaw (Skill or Plugin)

Skill, one click via ClawHub. Published on every release:

clawhub.ai/skills/neural-memory

Plugin, memory slot replacement. Use this if you want NeuralMemory to be OpenClaw's memory provider rather than a skill it calls:

pip install neural-memory && npm install -g neuralmemory

Set memory slot in ~/.openclaw/openclaw.json:

{ "plugins": { "slots": { "memory": "neuralmemory" } } }
Upgrade to Pro

Already using Neural Memory? Just activate your key:

nmem shared activate --key NM-PRO-XXXX-XXXX-XXXX   # activate license

Then enable InfinityDB (semantic search engine):

# ~/.neuralmemory/config.toml
storage_backend = "infinitydb"

Restart your MCP server. Existing memories are auto-migrated from SQLite to InfinityDB on first startup.

Get a license → · Pro quickstart →

Installation extras
pip install neural-memory[server]              # FastAPI server + dashboard
pip install neural-memory[extract]             # PDF/DOCX/PPTX/HTML/XLSX extraction
pip install neural-memory[nlp-vi]              # Vietnamese NLP
pip install neural-memory[embeddings]          # Local embedding models
pip install neural-memory[embeddings-openai]   # OpenAI embeddings
pip install neural-memory[all]                 # Everything
Benchmarks vs alternatives
Metric NeuralMemory Mem0 Cognee
Write 50 memories 1.2s 148.2s (121x slower) 290.6s (80x slower)
Read 20 queries 1.8s 2.9s 34.6s
API calls 0 70 149

Zero LLM calls, zero API cost. Full benchmarks → · Cognitive Efficiency release evidence →

Documentation

Guide Description
Quickstart Guide Interactive guide with animated demos
Pro Quickstart Get started with Pro features
CLI Reference All 82 CLI commands
MCP Tools Reference All 63 MCP tools with parameters
Cloud Sync Multi-device sync setup
Brain Health Guide Understanding and improving brain health
Embedding Setup Configure embedding providers
Architecture Technical design deep-dive

Development

git clone https://github.com/nhadaututtheky/neural-memory
cd neural-memory && pip install -e ".[dev]"
nmem doctor --dev        # Verify contributor setup
pytest tests/ -v          # 7800+ tests
ruff check src/ tests/    # Lint

See CONTRIBUTING.md for guidelines.

Support

If Neural Memory helps your AI agent remember, please consider giving it a star, it helps others discover the project and keeps development going.

You can also sponsor the project.

License

MIT, see LICENSE.

Questions about Neural Memory

What is the Neural Memory MCP server?

Persistent memory for AI agents, 55 MCP tools, spreading activation recall. Neural Memory is maintained by nhadaututtheky on GitHub at nhadaututtheky/neural-memory, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Neural Memory MCP server?

Add Neural Memory to your AI app's MCP config with the command npx -y neural-memory-mcp@4.27.2. In Claude Code, run claude mcp add --transport stdio neural-memory -- npx -y neural-memory-mcp@4.27.2. To run Neural Memory this way you need Node.js installed.

Does Neural Memory need an API key?

The registry lists no required keys for Neural Memory. Check the Neural Memory README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Neural Memory an official MCP server?

No. Neural Memory is a community server maintained by nhadaututtheky. Community servers can be excellent; read the code and the open issues before you give Neural Memory access to company data.

What license is Neural Memory under?

Neural Memory is released under the MIT license, according to its GitHub repository. The license covers the code of Neural Memory; the service it connects to has its own terms.