MindCore Memory MCP

io.github.woshilaohei由 GitHub 帳號 woshilaohei 發布v0.1.11更新於 Oct 24, 2026

AI long-term memory MCP server with importance scoring and confidence calibration

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

一個本機 MCP 記憶伺服器,為 AI 助理提供可持久保存、可搜尋的長期記憶,並具備重要性評分、信心校準與邊界評估。

可以做什麼
儲存記憶,包含內容、重要性、標籤與信心,並由邊界評估自動評分過濾。透過 BM25 加選用 FAISS 語意的混合搜尋召回記憶,可依標籤或工作階段篩選。依相關記憶建構供助理使用的上下文視窗。調整記憶信心、刪除記憶並檢視系統統計。執行邊界檢查與邊界統計,並透過認知推演從高品質記憶中擷取模式。
適用情境
適合希望助理在本機跨工作階段記住事實、決策或上下文,並能依關鍵字或語意檢索的情境。也適合想要一個不依賴外部資料庫服務的自足本機記憶庫的使用者。
執行需求
需要本機 Python 環境,透過 pip 安裝並以 stdio 程序啟動。選用附加元件提供語意搜尋與靜態加密。README 的用戶端設定透過 MINDCORE_MEMORY_PATH 環境變數設定記憶儲存路徑。未宣告需要帳號或 API 金鑰。
安裝前請注意
伺服器會在本機磁碟寫入、更新與刪除記憶,應將記憶庫視為持久資料。靜態加密為選用功能,未啟用時記憶以未加密形式保存。README 中的比較與生產就緒說法較為強烈,依賴前建議自行核實。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MindCore Memory MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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]

[MindCore Memory demo]


Quick Start

bash
# 1. Installpip install mindcore-memory
# 2. Launch (stdio mode — works with any MCP client)mindcore-memory
# 3. Your AI agent remembers across sessions
MCP Client Config (Claude Desktop / Cursor / Cline)
json
{  "mcpServers": {    "mindcore-memory": {      "command": "python",      "args": ["-m", "mindcore_memory.server"],      "env": { "MINDCORE_MEMORY_PATH": "~/.mindcore/memory" }    }  }}
Optional: Semantic Search
bash
pip install mindcore-memory[semantic]# Enables FAISS embeddings for hybrid BM25+semantic search

Why MindCore — vs the Competition

FeatureMindCore MemoryMem0SynaBunLetta (MemGPT)
SearchBM25 + FAISS HybridFAISS onlysqlite-vec onlyFAISS 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❌❌
Tests118/118 (100%)UnknownUnknownUnknown
LicenseMITApache 2.0Apache 2.0Apache 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
python
from mindcore_memory import BNDManagerbnd = 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)

ToolDescriptionKey Parameters
memory_storePersist a memory (auto-BND evaluated)content, importance (1-4), tags, confidence
memory_recallSearch memories (BM25+FAISS hybrid)query, tags, limit, session_id
memory_contextBuild LLM context windowquery, max_tokens, session_id
memory_update_confidenceAdjust memory confidencememory_id, confidence
memory_deleteRemove a memorymemory_id
memory_statsSystem statistics(no args)

Boundary & Deduction (3 tools) 🆕

ToolDescriptionKey Parameters
bnd_check4D boundary evaluation (TRJ/EVO/COG/BALANCE + Anti-Chain)content, importance, confidence, tags
bnd_statsBND manager stats: acceptance rate, scores, anti-chain triggers(no args)
deduceCognitive deduction: pattern extraction from high-quality memoriesquery, 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

PlatformStatusLink
PyPIPublished v0.1.11mindcore-memory
MCP RegistryRegisteredView
GlamaListedView
MCP MarketListedView
MCP.soListedView
LobeHubListedView
mcpservers.orgListedView

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:

bash
git clone https://github.com/woshilaohei/mindcore-memory-mcp.gitcd mindcore-memory-mcppip install -e ".[dev]"pytest -v              # 118 testsruff check .           # lintermypy 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! ⭐

來源:README.md,提交 f939e77

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.11最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合