doobidoo/mcp-memory-service
A self-hosted MCP and REST memory layer for agents that need context across sessions.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
MCP Memory Service is a Python 3.11+ memory backend, not an agent orchestrator. One deployment serves MCP clients and framework-agnostic REST callers against the same memory store, with a CLI and web dashboard alongside those interfaces. HTTP callers can write to POST /api/memories and query POST /api/search; clients can subscribe to SSE notifications when memories are stored or deleted. The package builds with Hatchling, and the checkout includes run_server.py, src/, and tests/.
For local operation, the SQLite extra supplies ONNX embeddings and pairs them with SQLite storage. The backend choice changes where data lives: Cloudflare supports cross-device use, Milvus provides a dedicated vector database option, and Hybrid combines local reads with background sync to Cloudflare or another service instance over HTTP. Above storage, the service provides a typed knowledge graph and scheduled consolidation, so clients need not implement those memory workflows themselves.
Key Capabilities & Differentiators
Retrieval combines semantic search with BM25. mode="ranked" can factor in recency, access frequency, and quality; an optional fallback cascade tries exact and tag matches when semantic results are sparse. Queries can filter by tag, time range, and store partition. X-Agent-ID adds a write-time agent tag for later filtering, while conversation_id bypasses deduplication for incremental conversation writes. Ingestion chunks PDF, plain text, and Markdown; DOCX and PPTX need optional parsers.
Session hooks can recall context and capture decisions from supported clients. Consolidation clusters and compresses memories and discovers associations. The graph can represent relations such as causes, fixes, and contradicts; heuristic supersession hides older memories from default retrieval without deleting them. Query-aware summaries require an enabled feature and configured LLM provider and fall back to raw results when unavailable. Quality scoring can use an OpenAI-compatible endpoint such as Ollama, LiteLLM, or vLLM.
Trade-offs & Limitations
Compared with assembling a standalone vector database and application-side glue, this service packages capture, scoped retrieval, consolidation, and graph inspection behind one API surface. That is useful when multiple agent frameworks or chat clients share the same context. If the application only needs a vector index and already controls the memory lifecycle, the extra hooks, ranking modes, and consolidation policies add configuration without necessarily improving retrieval. Mem0 exports can be converted, but import compatibility does not establish equivalent ranking or memory behavior.
SQLite is the simplest local option; use Hybrid when local reads and cross-host sharing both matter, and plan to observe sync lag and test recovery when a secondary is unavailable. Tags and store partitions are retrieval controls, not evidence of tenant isolation; bootstrap profiles explicitly are not project-isolated. Local ONNX avoids a hosted embedding dependency, but optional provider-backed features and sync can move data outside the host. The project has a single maintainer, so pin versions and exercise migrations before rolling out upgrades.
Hardware & Deployment Guide
For a workstation, install mcp-memory-service[sqlite] under Python 3.11+ with pip or as an isolated uv tool. Use memory server for local MCP, or memory launch for a background HTTP service on 127.0.0.1:8000; memory info and memory logs are available for basic operations. Docker is the preferred path for long-lived instances. Persist storage outside the container and test restoration from the supported database backups. For remote MCP, configure HTTPS and OAuth rather than exposing the anonymous development setup.
Size against the embedding model, ingestion volume, corpus and index size, concurrent requests, and consolidation schedule; there is no specified VRAM target. Account separately for an LLM endpoint if you enable summaries or model-based scoring. Delta-sync is off by default. Release v13.2.0 added peer TLS options for delta-sync, fixed Claude Code hooks and scoring of queries with no text, and removed fail-closed store guards. Before upgrading, test failed or unavailable store paths as well as normal writes and peer sync.
A team running coding assistants or LangGraph, CrewAI, or AutoGen agents that need to recall shared decisions across runs, with local embeddings and control over where memory is stored.
You only need a vector index, or you require verified tenant isolation out of the box. Agent tags and store partitions do not establish that boundary.
Quick Start & Installation
pip install "mcp-memory-service[sqlite]"
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mcp-memory-service ★ | 2.2k | +19 | Python | Apache-2.0 | A self-hosted MCP and REST memory layer for agents that need context across sess |
| EverOS | 14k | +41 | Python | Apache-2.0 | Local Markdown and indexes give AI agents portable long-term memory |
| Scrapling | 107.9k | +1.8k | Python | BSD-3-Clause | Python HTTP and browser crawlers that turn websites into RAG-ready Markdown |
| mem0 | 70k | +498 | Python | Apache-2.0 | A vector-backed memory layer for AI agents that need to recall past conversation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/doobidoo/mcp-memory-service.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mcp-memory-service
How do LangGraph or CrewAI agents share memory without an MCP client?
Do local search and document ingestion require a GPU?
Can a company self-host or redistribute the service?
How should I compare it with a standalone vector database or an existing Mem0 setup?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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