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 集成