mindcore-memory-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mindcore-memory-mcp Remember that my favorite color is blue."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
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 searchRelated MCP server: Synapse Memory
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 | ✅ | ❌ | ❌ | ❌ |
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·BALANCEForward 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 ACCEPTEDNo 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 |
| Persist a memory (auto-BND evaluated) |
|
| Search memories (BM25+FAISS hybrid) |
|
| Build LLM context window |
|
| Adjust memory confidence |
|
| Remove a memory |
|
| System statistics | (no args) |
Boundary & Deduction (3 tools) 🆕
Tool | Description | Key Parameters |
| 4D boundary evaluation (TRJ/EVO/COG/BALANCE + Anti-Chain) |
|
| BND manager stats: acceptance rate, scores, anti-chain triggers | (no args) |
| Cognitive deduction: pattern extraction from high-quality memories |
|
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 | |
MCP Registry | Registered | |
Glama | Listed | |
MCP Market | Listed | |
MCP.so | Listed | |
LobeHub | Listed | |
mcpservers.org | Listed |
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 checkerLicense
MIT License — Copyright (c) 2025 Lao Hei
⭐ If MindCore helps your AI remember, give it a star! ⭐
Available Tools
9 toolsbnd_checkA
Evaluate content through the 3D Boundary balance algorithm (Forward/Reverse Formula). Returns 4D scores (TRJ/EVO/COG/BALANCE) and accept/reject decision.
Inputs: content (required), tags, confidence, importance.
bnd_statsA
Get BND manager stats: acceptance rate, score distributions, anti-chain triggers.
Inputs: no named parameters.
deduceB
Run the Deduction engine on stored memories to derive new cognitive insights. Finds patterns across high-quality COG memories.
Inputs: query (required), tags.
memory_contextA
Build a context window from relevant memories for LLM input.
Inputs: query (required), max_tokens, session_id.
memory_deleteA
Delete a memory by its ID. Irreversible — use with caution.
Inputs: memory_id (required).
memory_recallC
Recall memories relevant to the query.
Inputs: query (required), tags, limit, session_id.
memory_statsB
Get stats: total count, importance distribution, avg confidence.
Inputs: no named parameters.
memory_storeB
Store a new memory that should be remembered long-term.
Inputs: content (required), tags, source, confidence, +2 more.
memory_update_confidenceA
Update a memory confidence score after correction.
Inputs: memory_id (required), confidence (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: BND algorithm evaluation, deduction, memory CRUD operations, context building, and stats. No overlapping functionality.
Tools follow a consistent snake_case convention with prefixes like 'bnd_' and 'memory_', though 'deduce' deviates from the verb_noun pattern and 'memory_context' is noun_noun instead of verb_noun.
9 tools is well within the ideal 3-15 range, covering all essential operations for a memory system with cognitive algorithms without being excessive.
Covers core memory operations (store, recall, delete, update confidence, stats, context) and specialized BND/deduction tools. Minor gaps like inability to update other memory fields or list all memories are acceptable.
Maintenance
Related MCP Connectors
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
An MCP memory server. One memory your agents share — across models, devices and apps.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for long-term agent memory, providing persistent memory, searchable knowledge, and evolving identity for AI agents.53Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server that provides long-term memory for LLMs by storing and retrieving important facts, decisions, and preferences through smart semantic search and automatic organization.12MIT
- AlicenseAqualityBmaintenanceA long-term memory MCP server for AI agents that stores memories (facts, decisions, etc.) in a single SQLite database with hybrid search and full edit history, ensuring consistency across sessions.431MIT
- FlicenseNot gradedqualityBmaintenanceA persistent memory server for AI agents using MCP protocol, enabling semantic storage and retrieval of dialogues, documents, and agent states.-