MCP Memory Service

Self-hosted persistent memory shared across AI assistants and multi-agent pipelines.

Stars
★ 2.2k
Last updated
today v13.2.0
FARS reviewed
Nov 08, 2026 +7 new
License
Apache-2.0
Primary language
Python

At a glance

How it runs
MCP serverSelf-hosted serviceCLI
Works with
Universal · cross-platformChatGPT · Codex · Claude Code · Claude.ai
Cost
Free, no paid service needed
Pricing
| Cost | Per-call API | Enterprise | Infra costs | **$0** | per README
Models
Ollama · local models per README Compare model cost & benchmarks →
OS / editors
macOS per README
Safety controls
Docker container isolation · Local-only / offline execution per README
Setup effort
Medium · a few setup steps
You'll need
PythonpipSQLite-vec by defaultShell / CLILocal filesystem
Typical use
A LangGraph, CrewAI, or AutoGen developer needs several agents to retrieve the same decisions, errors, and causal history across separate runs.
Not a fit if
  • Teams that want a hosted SaaS instead of running their own server and reverse proxy
  • Teams unwilling to own database operations, backups, and TLS for a self-hosted service
  • Non-English deployments that cannot re-embed existing memories after switching models
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v13.2.0 (2026-12-01)+3.6 ★/day over 7 days
Source review
68/100 · Some gaps

What does this agent do, and when should you use it?

MCP Memory Service is an open-source memory backend that preserves and retrieves context across agent runs, clients, and conversations. It exposes MCP, a 76-endpoint REST API, OAuth, CLI lifecycle commands, SSE events, and a web dashboard from one service. Its default path uses SQLite-vec with local ONNX embeddings, while Cloudflare, hybrid, and Milvus storage options cover synchronization and larger deployments. Retrieval combines vector and BM25 signals, and stored memories can participate in a typed knowledge graph rather than remaining isolated text chunks. Consolidation features add decay, compression, contradiction handling, reasoning, quality scoring, and structured insight cards, making it a fit for teams that want shared long-term memory without sending every record to a hosted memory API.

Clients submit content, tags, and conversation metadata through memory server, MCP tools, or REST endpoints. POST /api/memories stores a record and can read X-Agent-ID to append an agent:<id> tag; conversation_id bypasses semantic deduplication for incremental conversations. Search accepts text and tag filters, then returns matching memories using local embeddings, SQLite-vec, BM25, Reciprocal Rank Fusion, or the multi-signal mode="ranked" path; tag_match=AND/OR controls multi-tag filtering. Entity extraction recognizes @mentions, #tags, URLs, and file paths, while the graph records relationships such as causes, fixes, supports, follows, related, and contradicts. Maintenance and consolidation can score quality, decay or compress older records, detect temporal contradictions, infer connections, and emit structured Insight Cards. Results are available to MCP or HTTP clients and through dashboard views for search, browsing, document ingestion, analytics, quality, API documentation, and a D3.js knowledge graph.

  1. A LangGraph, CrewAI, or AutoGen developer needs several agents to retrieve the same decisions, errors, and causal history across separate runs.
  2. An engineer who frequently starts fresh Claude Code, Codex CLI, OpenCode, or desktop-assistant sessions wants project architecture and prior implementation choices recalled automatically.
  3. A privacy-sensitive team wants semantic memory stored in SQLite-vec with embeddings computed locally through ONNX instead of a commercial memory API.
  4. An operator needs memory synchronized across users or devices and is prepared to deploy Cloudflare, a hybrid backend, or Milvus behind HTTPS and OAuth.
  5. A multi-agent cluster needs a lightweight coordination channel and can use X-Agent-ID plus sentinel tags such as msg:cluster to publish and retrieve signals.
  6. A knowledge manager wants a browser dashboard for document ingestion, semantic search, entity relationships, analytics, quality scores, and consolidation insights.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install mcp-memory-service
Ports
8000

How do you install or deploy this agent?

The basic path requires Python and pip:

pip install mcp-memory-service

Start a localhost HTTP service with:

MCP_ALLOW_ANONYMOUS_ACCESS=true memory server --http

The REST API is then available at http://localhost:8000. For background operation, run memory launch; inspect it with memory info or memory health, read logs with memory logs --lines 50, and stop it with memory stop. Claude Desktop users can add {"memory":{"command":"memory","args":["server"]}} under mcpServers in the client configuration and restart Claude. For backend selection, clone the repository and run python scripts/installation/install.py, then choose SQLite, Cloudflare, Hybrid, or Milvus. A production Remote MCP deployment additionally needs a reachable HTTPS endpoint plus appropriate OAuth, proxy or tunnel, and firewall configuration.

How do you use this agent?

Once the HTTP server is running, store a memory from any HTTP client:

curl -X POST http://localhost:8000/api/memories -H 'Content-Type: application/json' -H 'X-Agent-ID: researcher' -d '{"content":"API rate limit is 100 req/min","tags":["api","limits"]}'

Retrieve it with:

curl -X POST http://localhost:8000/api/memories/search -H 'Content-Type: application/json' -d '{"query":"API rate limits","tags":["agent:researcher"]}'

The stored record receives the agent:researcher tag, and matches are returned in the response's memories field. For Claude Code, run claude mcp add memory -- memory server and restart the client. For claude.ai, start the service in Streamable HTTP mode with OAuth enabled, expose it over HTTPS, and register its /mcp URL as a Connector. Any deployment bound to 0.0.0.0 should also use authentication, TLS, and firewall controls.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

README-backed isolation & workflow protocols

Isolation & controls
Docker container isolation Local-only / offline execution

What are this agent's strengths and limitations?

Pros
  • One self-hosted service supplies MCP, REST, CLI management, OAuth, SSE, and a dashboard, so HTTP-based agents do not need an MCP-specific SDK.
  • Retrieval goes beyond a vector lookup by combining BM25, RRF, multi-signal ranking, typed graph edges, entity linking, and consolidation.
  • SQLite-vec and local ONNX embeddings keep the default data path on owned infrastructure and avoid per-call memory API fees.
  • X-Agent-ID, conversation identifiers, and tag filtering provide explicit mechanisms for agent scoping, shared state, and tag-based communication.
  • Deployment options span local use, Docker, Cloudflare synchronization, hybrid storage, Milvus Lite, self-hosted Milvus, and Zilliz Cloud.
Limitations
  • Self-hosting transfers responsibility for database operations, backups, upgrades, authentication, TLS, reverse proxies, and safe network exposure to the adopter.
  • Default turn-level ingestion spreads session signals across records; the published LongMemEval R@5 is 80.4%, or 86.0% with session storage, below the raw ChromaDB figure cited for MemPalace.
  • Alternative backends add operational dependencies: Cloudflare needs external configuration, while Milvus Lite is discouraged for long-lived services and full Milvus or Zilliz adds infrastructure.
  • Automatic consolidation was changed to disabled by default after unintended scheduling behavior, so teams must configure and validate decay, compression, contradiction, and scoring policies.
  • The release history includes fixes for critical document-route authentication and MCP write-scope issues, making prompt upgrades and security review important for exposed deployments.

How does this agent compare with similar options?

Against Mem0, Zep, and a hand-built Redis plus Pinecone stack, the project emphasizes Apache-2.0 licensing, self-hosting, local ONNX embeddings, MCP, 76 REST endpoints, a typed knowledge graph, and automatic consolidation. Its comparison describes Mem0 and Zep as commercial or enterprise offerings and the DIY option as requiring manual integration. Compared with the MCP-native MemPalace, MCP Memory Service adds REST access, a dashboard, OAuth, multi-user operation, Cloudflare synchronization, and graph relationships, but reports lower LongMemEval R@5 figures. The repository also cautions that MemPalace's 96.6% raw-mode result primarily measures ChromaDB with default embeddings and is not directly comparable to this project's default turn-level ingestion.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
MCP Memory Service This agent 68 · Some gaps MCP serverFree ★ 2.2k today Python ChatGPT · Codex · Claude Code · Claude.ai
MemoMind Memory Layer 45 · Major gaps MCP serverFree + model costs ★ 605 3mo ago Python Claude Code · OpenAI API · Claude API
GrayMatter 66 · Some gaps CLIFree ★ 490 6d ago Go Codex · Claude Code · OpenAI API · Claude API
MemMachine Memory Layer 39 · Blocked Library / SDKFreemium ★ 3.1k 2d ago Python OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
68/ 100 5-point scale 3.4 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 7 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 18/29
Reliability 8/14
Adaptability 14/18
Convention 14/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust18 / 29 · 3.1/5

The README describes localhost binding by default, local ONNX and SQLite, and configurable cloud LLM, sync, and remote access. The OAuth quickstart says OAuth is off by default. The archived permission-hook plan calls out its global effect and explicit opt-in; SECURITY.md says backup encryption is the user's responsibility. Deductions: the anonymous HTTP example and multi-user security configuration add operational risk; dependency security is represented mainly by policy advice and a certificate incident note, with no dependency inventory or ongoing scan results in the sample; backups, exports, and installation backup instructions are present, but a complete recovery guarantee is not. Copyright and license are explicit, and the README points to authorship details that are not included; publisher identity is unverified.

Reliability8 / 14 · 2.9/5

The CLI source shows errors for missing HTTP dependencies and server startup failures. The docs describe SQLite, Cloudflare, and Hybrid backends, and say unavailable summaries fall back to raw results. Deductions: the README claims 5 ms retrieval without supporting evidence in the sample; example documents include older version numbers and planned features, creating version and timing inconsistencies with the current product description. The static material does not show a locked dependency set or evidence of backend availability.

Adaptability14 / 18 · 3.9/5

The README names LangGraph, CrewAI, AutoGen, Claude, and generic HTTP clients, and distinguishes local, team, cloud-sync, and browser-based remote scenarios. It describes search, tags, partitions, imports, and multiple storage configurations. Deductions: some boundaries are stated, such as bootstrap profiles not being project-isolated and extra document formats requiring optional tools, but enablement conditions are spread across docs; trigger scope and deployment fit are mostly described through configuration rather than corroborated by complete integration implementations in the sample.

Convention14 / 18 · 3.9/5

The documentation index, setup and configuration guides, migration material, troubleshooting, security policy, and changelog entry points are clearly organized; the Apache-2.0 LICENSE is complete. The README says the project is maintained by one person and identifies GitHub, Discord, and vulnerability reporting channels. Deductions: sampled natural-trigger and quality-config docs contain older version declarations, future plans, or inconsistent status descriptions, weakening naming and documentation stability; maintenance responsibility is stated, but author and contribution details are only linked and cannot be checked from this sample.

Effectiveness9 / 13 · 3.5/5

The product offers persistent shared memory, semantic and keyword search, a knowledge graph, APIs, import/export, and backup entry points. Local operation can reduce cloud costs, and the docs offer several installation and deployment paths. Deductions: quality scoring, summaries, models, and sync add configuration and resource costs; retrieval latency and effectiveness benefits in the README are product claims that the supplied material cannot independently establish.

Verifiability5 / 8 · 3.1/5

Many README feature claims point to API, architecture, configuration, and integration docs; the CLI and HTTP source excerpts support parts of the transport and error-handling descriptions, while the security policy gives concrete configuration advice. Deductions: the packet is a limited sample, so many linked targets and test materials are not visible; performance, quality accuracy, and claims that examples are tested cannot be independently confirmed from the supplied static content. The rationale distinguishes documented claims from visible source facts, but some claims still lack corroboration.

Risks and how to mitigate them
  • The HTTP example explicitly sets MCP_ALLOW_ANONYMOUS_ACCESS=true. Before network-facing or multi-user deployment, configure suitable authentication, TLS, and network restrictions as SECURITY.md advises.
  • The README describes autonomous consolidation and controlled forgetting. Configure backups and review the false-scoring risks called out in the quality examples before relying on retention decisions.
  • The sampled docs contain older version declarations and planned-feature statuses; confirm the actual configuration and version docs for the target revision before deployment.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision ac41f17dce84 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/mcp-memory-service.svg)](https://followagents.com/en/agents/mcp-memory-service)
<a href="https://followagents.com/en/agents/mcp-memory-service"><img src="https://followagents.com/badge/mcp-memory-service.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v13.2.0
    Release notes excerpt
    Special Thanks This release carries work from outside contributors: - @massimiliano1991: delta-sync peer TLS options (#2160) and removal of the fail-closed store guards (#2145) - @marcoabreu: the Claude Code hook fixes (#2151, #2152) and the quality scorer fix for queries with no text (#2156) - @abdelhadi703: second split edit chunk replacement (#2147) - @tonydzi: the missing-import fix in the handlers (#2161) - @henry201605: the two Milvus conflict fixes (#2170, #2174) - @Bowen-Xue-ac2: dashboard spinner centering (#2173) …
    View on GitHub ↗
  2. v13.1.0
    Release notes excerpt
    Special Thanks Thank you to the contributors whose work is in this release: - @rise11hx-cmyk, the dashboard sync actions now sit on the island row and the compact card is retired (#2142) - @zlg-codes, dashboard edits no longer reject a memory as a duplicate of itself (#2129) - @seung-waedet, every consolidation run is recorded as a memory (#2106) - @tonydzi, a hybrid hub forwards applied delta-sync events to its secondary (#2135) - @massimiliano1991, the sync orchestrator logging guard and the Milvus cross-store entity fix (#2132, #2130) …
    View on GitHub ↗
  3. v13.0.0
    Release notes excerpt
    Special Thanks Thank you to the contributors whose work is in this release: @Adil-Khan-N, @AkhilVipparla, @Aftabbs, @alksv1, @aplatogg, @dodoshell, @Goldloli, @harshu0117, @jay23606, @jeej3000, @jilsnshah, @KshitijKasodkar, @massimiliano1991, @Oak-soday, @OnlineBunker, @PloneMraz, @SalyyS1, @Shivraj-G, @tonydzi, @wuzhongyanqiu and @Yoel-qin. The GHSA-xv2j-8j5x-m228 report came from de3erve. Breaking: five tools renamed to the memory_* prefix (#2052) | Old name | New name | | --- | --- | | commit_session_legacy | memory_commit_session | …
    View on GitHub ↗

FAQ

Does it require a paid cloud API?
Not for the basic deployment. SQLite-vec and local ONNX embeddings can run entirely on self-hosted infrastructure with no per-call memory fee. Cloudflare, Zilliz Cloud, external model endpoints, or other hosted infrastructure may introduce their own costs.
Is an MCP client mandatory?
No. LangGraph, CrewAI, AutoGen, and ordinary HTTP clients can use the 76 REST endpoints directly. MCP is an additional native transport for clients such as Claude and Codex.
Can the service be exposed publicly?
Yes, Remote MCP can run over Streamable HTTP and HTTPS, including through a Cloudflare Tunnel. It should not be exposed as an unauthenticated API: the documented production measures include OAuth, TLS, a reverse proxy, IP or subnet restrictions, and firewall rules.
How are memories separated between agents?
A writer can send X-Agent-ID, which adds an agent:<id> tag automatically. Searches can filter on that tag for isolation, while shared or sentinel tags such as msg:cluster provide deliberate cross-agent visibility.
Are database upgrades automatic?
The documented v8-to-v9 path runs idempotent schema and ontology migrations at startup, but the memory taxonomy and asymmetric relationship behavior changed. Integrations that depend on legacy types or bidirectional edges still need review and may need an explicit relationship direction.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts