Memory Engine MCP
Click on "Install 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., "@Memory Engine MCPRecall my project preferences from last week."
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.
๐ง Memory Engine
A living memory system for AI assistants โ built on SQLite + MCP (Model Context Protocol).
Not just a key-value store. Not just a knowledge graph. A living memory that decays, learns, and evolves with your AI.
โจ Features
_atomic memory model โ knowledge stored as atoms (facts, decisions, events, preferences, logs, procedures, notes)
multi-factor ranking โ recall combines FTS relevance ร confidence ร recency ร weight (not just BM25)
organic decay โ atoms lose weight over time if not accessed; critical ones get flagged for review
learning engine โ generates questions for the human when it detects contradictions, gaps, weak atoms, or merge candidates
auto-bonding โ creates relationship links between atoms automatically during import
graph traversal โ navigate the knowledge graph with depth control and relation filtering
markdown import โ one-way sync from your existing markdown notes (coexistence, not replacement)
merge & deduplicate โ consolidate similar atoms intelligently
TTL support โ atoms that expire automatically
versioning โ automatic atom history tracking
Related MCP server: sostenuto
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your AI Assistant โ
โ (via MCP Protocol) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Server (FastMCP) โ
โ 15 tools (recall, remember, ...) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Engine Layer โ
โ ranking ยท decay ยท learning ยท merge โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SQLite (FTS5 + JSON1) โ
โ atoms ยท bonds ยท versions ยท Q&A โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโFiles
File | Purpose | Lines |
| MCP server โ exposes 15 tools via FastMCP | ~330 |
| SQLite layer โ CRUD, FTS, bonds, versions | ~460 |
| Ranking, decay, similarity, gap detection | ~230 |
| Question generation (5 trigger types) | ~210 |
| Markdown โ SQLite one-way importer | ~185 |
| Database schema (atoms, bonds, FTS, versions) | ~120 |
Total: ~1,600 lines of Python. No external dependencies beyond mcp SDK.
๐ง MCP Tools
Tool | Description |
| Create or update an atom |
| Smart query (FTS ร confidence ร recency ร weight) |
| Create a typed bond between atoms |
| Remove a bond |
| Get full atom details with all bonds |
| Merge two atoms (secondary โ primary) |
| List atoms with filters (domain, type, status) |
| Traverse the knowledge graph from an atom |
| Memory statistics (counts, domains, types) |
| Execute decay cycle (reduce unused atom weights) |
| Run learning engine (detect gaps, contradictions) |
| Get pending human questions |
| Answer a pending question |
| Import markdown files (bulk or single) |
| Export an atom as markdown |
๐ Quick Start
Docker (recommended)
# docker-compose.yml
services:
memory-engine:
build: .
restart: unless-stopped
expose:
- "8085"
volumes:
- memory-data:/data
- ./your-markdown-notes:/workspace/memory:ro
environment:
- MEMORY_DB_PATH=/data/memory.db
- MARKDOWN_SOURCE=/workspace/memory
- MEMORY_HOST=0.0.0.0
- MEMORY_PORT=8085
volumes:
memory-data:docker compose up -dLocal (Python โฅ3.11)
pip install -r requirements.txt
python server.pyConnect to your MCP client
Add to your MCP client config (e.g., Claude Desktop, OpenClaw, etc.):
{
"memory-engine": {
"url": "http://localhost:8085/sse",
"transport": "sse"
}
}๐ Use Cases
Personal AI assistant memory โ remember preferences, decisions, project context across sessions
Team knowledge base โ shared memory accessible to AI agents
Project documentation โ import existing markdown docs, query them naturally
Learning journal โ track decisions and their rationale over time
โ๏ธ Configuration
Edit config.json to tune:
Section | What it controls |
| Interval, decay factor, critical threshold, archive timeout |
| Weight of FTS score, confidence, recency, and atom weight |
| Thresholds for contradiction, merge similarity, gap detection |
๐งฌ How It Differs
Feature | memory-graph | sqlite-memory-mcp | Memory Engine |
Storage | SQLite | SQLite | SQLite |
FTS search | โ | โ (BM25) | โ (multi-factor) |
Decay | โ | โ | โ |
Learning/Q&A | โ | โ | โ |
Markdown import | โ | โ | โ |
Auto-bonding | โ | โ | โ |
Graph traversal | Basic | โ | โ (depth + relation filter) |
Merge atoms | โ | โ | โ |
TTL | โ | โ | โ |
Versioning | โ | โ | โ |
๐ License
MIT โ see LICENSE.
๐ค Contributing
Contributions welcome! Open an issue or PR.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SimoneB79/memory-engine-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server