MCP Memory Rs logo

MCP Memory Rs

Stores versioned JSON memory locally, supports BM25 and hybrid search, and optionally synchronizes categories across devices.

Install MCP Memory Rs

Run the project’s own setup commands, in order.

Setup steps from the project

mcp-memory-rs installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo build --release   # single static-friendly binary
    

Overview

mcp-memory-rs MCP server provides local-first, persistent memory for AI agents through MCP stdio. It stores named JSON categories on disk with a SQLite FTS5 index, version history, backups, optimistic write checks, and BM25 or hybrid search. Optional HTTP synchronization uses Merkle manifests, dirty queues, and configurable conflict handling between devices. Reach for it when an agent needs user-controlled memory that remains available offline and can be inspected or backed up as files.

Use cases

  • Store persistent agent preferences and project notes
  • Search curated memory with BM25 or hybrid ranking
  • Protect concurrent category writes with hash preconditions
  • Keep bounded session journals and event logs
  • Synchronize memory categories across devices

Key features

  • Versioned JSON category storage
  • SQLite FTS5 and hybrid TF-IDF search
  • Per-device category access control
  • Optimistic concurrency with expected hashes
  • Merkle-based fleet synchronization
  • Bounded append-only log categories

Tools17

What MCP Memory Rs lets your agent do. Expand a tool for its parameters.

Self-reported~298 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Memory Rs works

What mcp-memory-rs does

mcp-memory-rs MCP server gives an MCP client a persistent store for curated agent state. Memory is divided into named JSON categories such as projects, device-specific workflows, or a base profile. The JSON files are the source of truth, while SQLite provides the searchable index.

Writes are versioned and deletes create a backup before removal. A write can replace a category or merge changes at the top level. Supplying an expected content hash lets callers detect a concurrent update instead of silently overwriting it. Append-only log categories support timestamped event or session entries with limits based on entry count or age.

The server is intended for local-first use. Its standard stdio mode can operate without a network connection or cloud account, and the stored files can be read, compared, and backed up using ordinary tools.

How it works

mcp-memory-rs MCP server exposes memory operations through MCP tools. Read, list, history, delta, context, status, doctor, compact, and delete operations manage the local store. Search uses SQLite FTS5 with BM25 ranking, filters, and snippets; the semantic variant combines TF-IDF with FTS5 and does not require model downloads.

Access rules can distinguish administrators, device namespaces, and agent scopes. All devices can read, while non-administrative writers are restricted to permitted categories. The local device identity is used for these MCP-side checks.

Optional fleet synchronization compares Merkle-rooted manifests and identifies items to push, pull, or resolve. A configured remote can receive dirty categories or provide remote changes. The default conflict strategy is last-write-wins, while expected-hash checks protect direct writes rather than sync envelopes.

Setup and configuration

Download a platform release where available, build with Cargo, or install from the Git repository. macOS users must build from source because the project does not ship a prebuilt macOS binary. Running the release binary starts the offline stdio server by default.

Configuration uses TOML. The server can discover an XDG-style configuration path, and environment variables can override file settings. Set MCP_MEMORY_REQUIRE_CONFIG=1 when a managed deployment should fail if configuration is missing. MCP_DEVICE identifies the local device; MCP_MEMORY_MODE selects the operating mode; and MCP_MEMORY_DIR can control the storage location.

HTTP mode is separate from offline stdio operation. It requires MCP_MEMORY_TOKEN, and the README recommends binding the service to loopback and tunneling between nodes rather than exposing it publicly. The HTTP surface is an administrative and synchronization plane: its bearer token grants access to every category, so local per-device ACL rules do not apply to HTTP callers.

Tools and capabilities

  • Read, replace, merge, append, delete, list, and inspect category data.
  • Search with BM25 or hybrid TF-IDF and FTS5 ranking.
  • Review versions, calculate deltas, warm multiple categories within a token budget, and compact old history or backups.
  • Inspect local sync state and diagnostics.
  • Build manifests, compare remote state, exchange sync envelopes, and perform a configured sync step.

Limitations and notes

mcp-memory-rs MCP server does not use embeddings or an external model service in its core search implementation. The HTTP endpoint has broader authority than the local MCP interface and must be protected accordingly.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Memory Rs

mcp-memory-rs is an MCP server that connects AI agents to local JSON memory categories backed by SQLite. Its main tools read, write, append, search, inspect, version, and synchronize category data. It works locally without a cloud account or network dependency, with optional HTTP-based device synchronization.

Install it from a platform release, build it with Cargo, or run `cargo install --git https://github.com/DioNanos/mcp-memory-rs --locked`. Prebuilt archives are listed for Linux and Android targets. macOS users must compile from source because no signed macOS binary is shipped.

It describes the server as an MCP stdio service usable by any MCP client, and gives configuration examples for Claude Code and Codex.

It synchronizes through an optional HTTP remote using Merkle-rooted manifests, dirty queues, and push or pull operations. `sync_diff` identifies changes and conflicts, while `memory_sync` performs a configured step. The HTTP service requires a bearer token and does not enforce the local per-device ACL.

Yes, it searches without embeddings. `memory_search` uses SQLite FTS5 with BM25 ranking, filters, and snippets, while `memory_search_semantic` combines TF-IDF with FTS5. The core does not download models or require an embedding service.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Memory Rs AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-memory-rs?style=directory)](https://allmcps.com/mcp/mcp-memory-rs)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-memory-rs"><img src="https://allmcps.com/api/badge/mcp-memory-rs?style=directory" alt="MCP Memory Rs on AllMCPs" /></a>