← Back to Leaderboard
Saiming-lab

aiming-lab/SimpleMem

A compression-first memory layer for long-term text and multimodal agent recall

View on GitHub ↗
Engineering Health (Methodology)
B+ · 65/100
Maintenance Activity
● Updated 4mo ago
Latest Release
v0.3.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption19/25
Release Cadence14/20
License Clarity20/20
DockerSelf-HostedMCP
Total Stars
★ 3,883
24h Growth
+2
7d Growth
+3
Forks
417

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

aiming-lab/SimpleMem Star History (2026-01-02 - 2026-12-04) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +3.9k in 336d · avg +12/day 4.1k 2k 0 2026-01-02: ★ 12026-01-24: ★ 1,6362026-02-14: ★ 2,3172026-03-07: ★ 2,5752026-03-28: ★ 2,7712026-04-18: ★ 3,0272026-05-09: ★ 3,0982026-05-30: ★ 3,3822026-06-20: ★ 3,4592026-07-11: ★ 3,5742026-08-01: ★ 3,6162026-08-22: ★ 3,6672026-09-12: ★ 3,7172026-10-03: ★ 3,7942026-10-24: ★ 3,8342026-11-14: ★ 3,8662026-12-04: ★ 3,883 ★ 3.9k 2026-01 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

SimpleMem is an application-level memory layer, not a general-purpose vector database. In v0.3.0, from simplemem import SimpleMem exposes two backends behind one entry point: in auto mode add_dialogue() selects text, while add_text() and the media ingestion methods select Omni. The text pipeline turns dialogue into self-contained facts with resolved references and absolute timestamps, consolidates related fragments, then plans retrieval around query intent. The text example calls finalize() after ingestion and ask() for recall.

The MCP service persists LanceDB data and users.db. Omni uses a separate retrieval design, combining FAISS and BM25 with progressive token-budget expansion and a knowledge graph for cross-modal hops. EvolveMem is exposed through simplemem.optimize(...), an offline evaluation and tuning path that produces a loadable Config rather than changing production retrieval automatically. The Python dependency list includes accelerate and huggingface-hub; the server extra adds MCP and FastAPI.

Key Capabilities & Differentiators

Text retrieval combines semantic search, keyword matching, and metadata filtering. Memory construction and retrieval each have parallel settings with separate worker limits. The Python Omni API accepts text, images, audio, and video and applies modality-specific filtering before indexing. EvolveMem uses development questions with reference answers to evaluate settings such as top_k, fusion, answer verification, and reflection rounds, with rollback when proposed settings regress on the evaluation.

The text-only MCP surface supports token authentication, per-user tables, and Streamable HTTP using MCP 2025-03-26 and JSON-RPC 2.0. The Python setup accepts OpenAI-compatible endpoints; the supplied examples pair gpt-4.1-mini with Qwen/Qwen3-Embedding-0.6B. On LoCoMo, the project reports a 26.4% average F1 gain over prior systems and roughly 30-fold lower inference-time token consumption for text memory. Those results do not establish equivalent savings for ingestion, multimodal workloads, or production latency.

Trade-offs & Limitations

Compared with indexing raw transcripts directly in LanceDB or FAISS, SimpleMem takes on fact extraction, consolidation, and query planning, so agents can retrieve compact context rather than whole dialogue chunks. This moves work into LLM-driven memory construction and makes recall sensitive to extraction errors, especially unresolved references and wrong timestamps. Semantic compression is not verbatim preservation. Keep source records separately when provenance, replay, or auditability matters.

MCP reduces client integration work for text, but Omni still requires Python and adds modality processing and indexes to size. Hosted inference shifts model compute off the service host while introducing provider charges, network dependency, and data-boundary considerations. EvolveMem adds offline evaluation cost and can tune to an unrepresentative development set; validate on held-out conversations before promotion. Per-user tables and token authentication are useful controls, but do not by themselves establish tenant-isolation guarantees or operational readiness.

Hardware & Deployment Guide

Use Python 3.10+ with pip install simplemem or pip install -e . for source development; pip install -e ".[server]" adds MCP/HTTP dependencies. Set OPENAI_API_KEY, OPENAI_BASE_URL, and model names in config.py for the Python setup. The release sequence moved from text-only v0.1.0 to multimodal v0.2.0 and a unified package with auto-routing in v0.3.0. That package unification does not extend the MCP service to multimodal ingestion.

For self-hosted text MCP, populate .env and run docker compose --env-file .env up -d. The supplied Compose file publishes port 8000 and mounts the named volume simplemem_data at /app/MCP/data. Plan backups around that volume, not the ./data bind mount described in the quick start. Replace the default JWT_SECRET_KEY and ENCRYPTION_KEY before exposure. Compose defaults to OpenRouter; the host Ollama option uses http://host.docker.internal:11434/v1 for the LLM. Local service hosting alone does not establish offline operation: verify the paths for embedding and any other model calls too.

Routing: One Python import dispatches dialogue ingestion to text memory and media-oriented ingestion methods to Omni.
Text memory: Self-contained facts use resolved references and absolute timestamps; retrieval combines semantics, keywords, and metadata filters.
Multimodal retrieval: Omni combines FAISS and BM25, progressively expands the token budget, and supports graph-based cross-modal hops.
Offline tuning: EvolveMem searches retrieval settings on labeled development questions and saves the result as a reusable Config.
Client integration: Text MCP supports Streamable HTTP with MCP 2025-03-26 and JSON-RPC 2.0; the deployment guide also lists an SSE endpoint.
Persistence: Compose mounts the simplemem_data volume at /app/MCP/data for LanceDB and the users.db file.
Best For

Long-running assistants that need compact recall from conversation history, with text clients using MCP and multimodal applications integrating through Python.

Skip If

You mainly need a general-purpose vector database, verbatim transcript recovery without a separate archive, or full multimodal ingestion through MCP.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCP
# 📥 Clone repository
git clone https://github.com/aiming-lab/SimpleMem.git
cd SimpleMem

# 📦 Install dependencies (pinned versions)
pip install -r requirements.txt

# — OR — install as an editable package
pip install -e .                  # default: text + multimodal + evolver
pip install -e ".[server]"        # + MCP / HTTP server (mcp, fastapi, ...)
pip install -e ".[all]"           # everything, including dev tools

# ⚙️ Configure API settings
cp config.py.example config.py
# Edit config.py with your API key and preferences

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
SimpleMem ★3.9k+3PythonMITA compression-first memory layer for long-term text and multimodal agent recall
crawl4ai88.5k+408PythonApache-2.0Async browser crawler that turns web pages into Markdown and JSON for RAG
mempalace60.8k+120PythonMITLocal-first RAG memory for retrieving verbatim project and conversation history
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/aiming-lab/SimpleMem.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

aiming-lab/SimpleMem Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about SimpleMem

Which integration should I use, and does plain text always select the text backend?

In Python, the first ingestion call selects the backend in auto mode: add_dialogue() selects text, while add_text() selects Omni, as do add_image(), add_audio(), and add_video(). Set mode="text" or mode="omni" explicitly when you want integration behavior to be independent of call order. Use MCP for text memory; use Python for full multimodal ingestion.

Does self-hosting require a GPU, and how should I size the host?

No fixed GPU or VRAM requirement is specified. When chat inference runs remotely, size the host for the embedding workload, concurrent ingestion and retrieval, and index growth. If you run Ollama on the host or run modality models locally, benchmark CPU RAM, VRAM where applicable, and throughput separately using representative inputs and concurrency.

Can we use it commercially and keep memory data inside our network?

The repository's MIT license permits commercial use and self-hosting; preserve the required copyright and license notices when redistributing. Review model licenses and inference-provider terms separately. If memory must stay inside a controlled network, verify where dialogue, extracted facts, and queries are sent for inference or embeddings; a local Docker volume does not prevent outbound model calls.

When is a direct vector-store integration the better choice?

Prefer a direct vector-store integration when your application already owns ingestion, record semantics, and retrieval logic, or when operators need to recover source wording verbatim. Choose SimpleMem when turning conversations into structured facts and planning recall are the hard parts. Compare both on factual recall, omitted details, total model usage, and end-to-end latency with your own conversations.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining aiming-lab/SimpleMem? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature aiming-lab/SimpleMem on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare