# Repository Briefing: doobidoo/mcp-memory-service
> Source: https://repoforai.com/repo/doobidoo/mcp-memory-service (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/doobidoo/mcp-memory-service
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v13.2.1 (2026-12-03) — https://github.com/doobidoo/mcp-memory-service/releases
- **Review Snapshot**: 2026-12-02 (Note: v13.2.1 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, MCP, CLI, API
- **Momentum**: 2,182 ★ total (+2 24h / +19 7d) · 446 forks
- **Topics**: `agent-memory`, `agentic-ai`, `ai-agents`, `autogen`, `claude`, `crewai`, `knowledge-graph`, `langgraph`, `long-term-memory`, `mcp`, `mcp-server`, `memory`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Integration: MCP tools and framework-agnostic REST share one persistent memory service; live API reference is at /api/docs.
- Retrieval: Vector search and BM25, with optional ranking by recency, access frequency, and quality.
- Conversation capture: X-Agent-ID adds an agent tag; conversation_id bypasses deduplication for incremental writes.
- Knowledge lifecycle: Scheduled consolidation and typed graph edges; superseded memories remain available for explicit lookup.
- Backend choice: Local SQLite, Cloudflare, Milvus, or Hybrid with Cloudflare or an HTTP peer as the secondary.
- Operations: SSE notifications for stores and deletes, JSON import/export, and scheduled or API-triggered database backups.
```

## Quick Start / Clone
```bash
pip install "mcp-memory-service[sqlite]"
```
