Skip to content
MCP ThesaurusMCP Thesaurus

MindCore Memory MCP

CommunityIncomplete39/100Claim

pypi mindcore-memorystdioMITupdated 2mo ago

The only MCP memory server with circuit breaker, SLO tracking, and BM25+FAISS hybrid search. AI agents forget everything between sessions. MindCore Memory gives them persistent, searchable, production-grade memory โ€” with 118/118 tests passing and full CI/CD.

SourceWebsite1

What can you do with MindCore Memory MCP?

Production-Hardened MCP Memory Server โ€” Hybrid Search + Resilience for AI Agents

The only MCP memory server with circuit breaker, SLO tracking, and BM25+FAISS hybrid search. AI agents forget everything between sessions. MindCore Memory gives them persistent, searchable, production-grade memory โ€” with 118/118 tests passing and full CI/CD.

โญ If this project helps your AI remember, a star means the world to us.

CI PyPI version Python License: MIT Downloads MCP Registry GitHub stars


Quick Start

# 1. Install
pip install mindcore-memory

# 2. Launch (stdio mode โ€” works with any MCP client)
mindcore-memory

# 3. Your AI agent remembers across sessions
{
  "mcpServers": {
    "mindcore-memory": {
      "command": "python",
      "args": ["-m", "mindcore_memory.server"],
      "env": { "MINDCORE_MEMORY_PATH": "~/.mindcore/memory" }
    }
  }
}
pip install mindcore-memory[semantic]
# Enables FAISS embeddings for hybrid BM25+semantic search

Why MindCore โ€” vs the Competition

Feature MindCore Memory Mem0 SynaBun Letta (MemGPT)
Search BM25 + FAISS Hybrid FAISS only sqlite-vec only FAISS only
Circuit Breaker โœ… 3-state โŒ โŒ โŒ
Retry (exp. backoff) โœ… โŒ โŒ โŒ
SLO Tracking โœ… P95/P99 โŒ โŒ โŒ
Prometheus Metrics โœ… /metrics โŒ โŒ โŒ
Encryption at Rest โœ… Fernet โŒ โŒ โŒ
Deduplication โœ… Exact-match merge โš ๏ธ Partial โŒ โŒ
IVF Index (500+) โœ… Auto-switch โŒ โŒ โŒ
Local-First โœ… Zero deps โœ… (cloud optional) โœ… โŒ (needs Docker)
CI/CD Pipeline โœ… Auto โ†’ PyPI + MCP โš ๏ธ Manual โŒ โŒ
Tests 118/118 (100%) Unknown Unknown Unknown
License MIT Apache 2.0 Apache 2.0 Apache 2.0

MindCore is the only MCP memory server designed for production workloads from day one. Circuit breaker protects against embedding service failures. Retry with exponential backoff handles transient errors. SLO tracking alerts you before users notice. Metrics export for your monitoring stack. Every other server assumes nothing fails โ€” MindCore doesn't.


Unique: 3D Boundary Balance Algorithm

MindCore is not just a memory store โ€” it's a cognitive boundary engine. Every stored memory is automatically evaluated through a 4-dimensional scoring system based on the ๆญฃๅๅ…ฌๅผ (Forward/Reverse Formula):

BND_score = 0.28ยทTRJ(Trajectory) + 0.28ยทEVO(Evolution) + 0.28ยทCOG(Cognition) + 0.16ยทBALANCE
  • Forward cycle: TRJ โ†’ BND โ†’ EVO โ†’ COG โ†’ BND (each step draws a boundary, each boundary is growth)
  • Reverse chain: Chaos โ†’ Unknown โ†’ Risk โ†’ Harm โ†’ Death (2+ linked triggers โ†’ auto 50% score penalty)
  • 3D balance: Variance across TRJ/EVO/COG penalizes lopsided memories (pure data dumps without insight)
  • No LLM calls: Pure algorithmic evaluation using keyword patterns, regex, and statistical variance
from mindcore_memory import BNDManager
bnd = BNDManager()
result = bnd.evaluate("ๅŸบไบŽไน‹ๅ‰ไฟฎๅค, ็†่งฃๅˆฐๆ นๅ› , ๆ”น่ฟ›ๅŽๆๅ‡30%", importance=4)
# โ†’ TRJ:0.63  EVO:0.54  COG:0.61  BALANCE:0.98  BND:0.75  ACCEPTED

๐Ÿ“– Full algorithm documentation

No other MCP memory server does this. BND transforms memory storage from a passive data dump into an active cognitive filter โ€” rejecting noise, flagging risk chains, and ensuring only structured, growth-oriented knowledge enters the version chain.


Production Features

Resilience Layer

  • Circuit Breaker: CLOSED โ†’ OPEN โ†’ HALF_OPEN state machine. Protects FAISS/embedding operations from cascading failure.
  • Retry: Exponential backoff with jitter. Transient errors retry automatically, permanent errors fail fast.
  • Input Validation: Server-level sanitization against injection attacks.

Observability Layer

  • SLO Tracking: P95/P99 latency targets for all 6 operations. Violations logged and exported.
  • Prometheus /metrics: Zero-dependency Prometheus-compatible collector. Drop-in for any monitoring stack.

Data Layer

  • Encryption: Optional Fernet encryption at rest (mindcore-memory[encrypt]).
  • Deduplication: Exact-match merge โ€” identical memory updates importance/confidence instead of storing duplicates.
  • Smart Eviction: Low-importance memory pruning with atomic disk sync. No zombie memories.

Core Tools

Memory (6 tools)

Tool Description Key Parameters
memory_store Persist a memory (auto-BND evaluated) content, importance (1-4), tags, confidence
memory_recall Search memories (BM25+FAISS hybrid) query, tags, limit, session_id
memory_context Build LLM context window query, max_tokens, session_id
memory_update_confidence Adjust memory confidence memory_id, confidence
memory_delete Remove a memory memory_id
memory_stats System statistics (no args)

Boundary & Deduction (3 tools) ๐Ÿ†•

Tool Description Key Parameters
bnd_check 4D boundary evaluation (TRJ/EVO/COG/BALANCE + Anti-Chain) content, importance, confidence, tags
bnd_stats BND manager stats: acceptance rate, scores, anti-chain triggers (no args)
deduce Cognitive deduction: pattern extraction from high-quality memories query, tags

Search formula: score = BM25(40%) + FAISS(50%) + importance(5%) + recency(5%)

When FAISS embeddings are unavailable, automatically falls back to BM25-only keyword search.


Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     MCP JSON-RPC      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  AI Client         โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚  MindCore Memory           โ”‚
โ”‚  (Claude/Cursor)   โ”‚     stdio / HTTP     โ”‚  MCP Server                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                       โ”‚
                                            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                            โ”‚  Memory Engine             โ”‚
                                            โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
                                            โ”‚  โ”‚ Hybrid Search        โ”‚  โ”‚
                                            โ”‚  โ”‚  BM25 (keyword) 40%  โ”‚  โ”‚
                                            โ”‚  โ”‚  FAISS (semantic)50%โ”‚  โ”‚
                                            โ”‚  โ”‚  importance        5%โ”‚  โ”‚
                                            โ”‚  โ”‚  recency           5%โ”‚  โ”‚
                                            โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
                                            โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
                                            โ”‚  โ”‚ Resilience           โ”‚  โ”‚
                                            โ”‚  โ”‚  Circuit Breaker     โ”‚  โ”‚
                                            โ”‚  โ”‚  Retry + Backoff     โ”‚  โ”‚
                                            โ”‚  โ”‚  SLO Tracking        โ”‚  โ”‚
                                            โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
                                            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                       โ”‚
                                            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                            โ”‚  Storage                   โ”‚
                                            โ”‚  JSONL (append)            โ”‚
                                            โ”‚  + FAISS index (IVF > 500) โ”‚
                                            โ”‚  + Fernet encrypt (opt)    โ”‚
                                            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  • Embedded: No PostgreSQL, Redis, or external services needed. One binary, local JSONL + FAISS.
  • IVF Index: FAISS inverted file index activates at 500+ memories for O(โˆšN) search.
  • MCP Native: Full MCP protocol over stdio and HTTP transports.

Available On

Platform Status Link
PyPI Published v0.1.11 mindcore-memory
MCP Registry Registered View
Glama Listed View
MCP Market Listed View
MCP.so Listed View
LobeHub Listed View
mcpservers.org Listed View

Full Comparison

See docs/comparison.md for a detailed 5-server comparison covering architecture, search quality, latency, and migration guides.


Contributing

See CONTRIBUTING.md for the full guide. Quick path:

git clone https://github.com/woshilaohei/mindcore-memory-mcp.git
cd mindcore-memory-mcp
pip install -e ".[dev]"
pytest -v              # 118 tests
ruff check .           # linter
mypy mindcore_memory/  # type checker

License

MIT License โ€” Copyright (c) 2025 Lao Hei


โฌ† back to top

โญ If MindCore helps your AI remember, give it a star! โญ