Skip to content
MCP server

mcp-memory-rs

Local-first persistent memory server for AI agents, stored as plain JSON and SQLite

Pricing
Open source
Platforms
Linux, macOS, API
Version
0.2.1
Listing updated
today

Similar MCP servers

About mcp-memory-rs

mcp-memory-rs is an open-source MCP server for knowledge and memory. It is available on Linux, macOS, API, CLI and self-hosted.

The README describes mcp-memory-rs as a Rust MCP server that keeps an agent's long-lived state on the user's own disk. Each memory category is a JSON file backed by a SQLite FTS5 index, and every write is versioned with a backup taken before deletes. Files are the source of truth, so the database can be rebuilt from them and the state can be read, diffed and backed up with ordinary tools.

Multiple devices can share memory through an optional HTTP sync endpoint that uses merkle manifests and optimistic concurrency. The stdio server runs offline by default, and the README notes that sync is a separate, explicit step. A per-device ACL governs writes on the MCP stdio surface, while the HTTP API is documented as an admin plane gated by a single bearer token.

The project is aimed at people running AI coding clients such as Claude Code or Codex who want the same memory to survive a model or vendor change. Search uses BM25 without embedding models, and the companion server mcp-vl-msa-rs handles chunked corpus retrieval.

Tools this server provides (18)

Taken from the project documentation; the running server may differ.

memory_read
Read a category, with optional field filtering.
memory_write
Replace or merge-patch a category; versioned with an expected_hash precondition.
memory_append
Append a timestamped entry to a bounded append-only log category.
memory_delete
Delete a category after creating a backup.
memory_list
List all categories with hash, size and update metadata.
memory_search
Run FTS5 full-text search with BM25 ranking and filters.
memory_search_semantic
Run hybrid TF-IDF and FTS5 search.
memory_history
Show the version history of a category.
memory_delta
List changes since a known hash.
memory_context
Read multiple categories in one token-budgeted call.
memory_compact
Prune old versions and backups.
memory_status
Show dirty queue, manifest hash and last sync.
memory_doctor
Run diagnostics on paths, database, categories and sync config.
sync_manifest
Build a merkle-rooted manifest of all categories.
sync_diff
Compare local and remote manifests.
sync_push
Export sync envelopes.
sync_pull
Import sync envelopes.
memory_sync
Run one sync step against the configured remote.

What it does

Versioned JSON categories
Each category is stored as a JSON file with write history and automatic backups before overwrites and deletes.
BM25 full-text search
Category search runs on SQLite FTS5 with BM25 ranking and category, date and actor filters.
Per-device write ACL
Admin devices can write everything, while other devices are limited to their own category namespace on the stdio surface.
Fleet sync over HTTP
Nodes exchange merkle-rooted manifests and push or pull dirty categories through an optional bearer-token endpoint.
Snapshot and restore CLI
Built-in commands create verified snapshots, restore stores and check consistency between the database and JSON files.

Good for

  • Give a coding agent persistent project and infrastructure notes that survive switching between MCP clients
  • Keep per-device workflow state separate across several laptops or servers
  • Sync agent memory between machines through a loopback endpoint tunnelled between nodes
  • Back up and restore an agent's memory store without copying the live database by hand

Pricing

Open source

Apache-2.0 licensed and free to use, per the repository README.

Prices change. Check dev.mmmbuto.com before you buy.

mcp-memory-rs FAQ

Does it need a cloud account or embedding service?

The README says no cloud account, embedding service or network dependency is needed in the default offline mode. Semantic search is an optional TF-IDF hybrid, and no model downloads are required.

Which MCP clients does it work with?

The README names Claude Code and Codex and says any client that speaks MCP over stdio can use it.

Is the HTTP sync API restricted per device?

No. The README states that HTTP callers are identified only by the shared token, so per-device ACL is not enforced on the HTTP API.

Which platforms have prebuilt binaries?

The README lists prebuilt Linux x86_64 and aarch64 builds (glibc and musl) and an aarch64 Android target. macOS users are told to build from source with cargo install.

Is mcp-memory-rs free?

Yes. mcp-memory-rs is open source, so you can use and self-host it for free.

What are the best alternatives to mcp-memory-rs?

The closest alternatives to mcp-memory-rs are MCP Memory, mcp-vl-msa-rs, Agent Memory MCP, Cross-Agent Memory and Holographic Memory.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.

How AIPoweredBot checks servers