MindCore Memory MCP server

MindCore Memory MCP server

mindcore-memory-mcp•bywoshilaohei

A self-hosted MCP server that gives AI agents persistent, searchable memory using hybrid BM25 and FAISS search with production resilience features.

License: MIT License•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Stores, recalls, updates, and deletes persistent agent memories via six memory tools, with automatic BND boundary evaluation on store.
  • •Performs hybrid search combining BM25 keyword scoring, optional FAISS semantic scoring, importance, and recency, falling back to BM25-only when embeddings are unavailable.
  • •Adds a resilience layer with a circuit breaker, exponential backoff retry, and input validation.
  • •Provides observability through SLO latency tracking and a Prometheus-compatible metrics endpoint, plus optional Fernet encryption and deduplication.

BEST FOR

  • •Giving AI agents memory that persists across sessions in MCP clients such as Claude Desktop, Cursor, or Cline.
  • •Building LLM context windows from prior memories with a token budget using the context tool.
  • •Running memory search locally without external databases or services.

ABOUT MINDCORE-MEMORY-MCP

MindCore Memory MCP server is cataloged as an MCP server attributed to woshilaohei. A self-hosted MCP server that gives AI agents persistent, searchable memory using hybrid BM25 and FAISS search with production resilience features. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MindCore Memory MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f939e7714511 · 采集于 2026-11-13 13:22:06 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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

# 1. Install
pip 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)
{
  "mcpServers": {
    "mindcore-memory": {
      "command": "python",
      "args": ["-m", "mindcore_memory.server"],
      "env": { "MINDCORE_MEMORY_PATH": "~/.mindcore/memory" }
    }
  }
}
Optional: Semantic Search
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
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)

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:

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! ⭐

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MindCore Memory MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mindcore-memory-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent