Compartment vs XERJ
Compartment is a free MCP server for knowledge and memory. XERJ is an open-source MCP server for knowledge and memory.
- Compartment is best for keep decisions and preferences across sessions and projects.
- XERJ is best for search local code and docs from an agent.
- What it is
- Compartment is a free MCP server for knowledge and memory.XERJ is an open-source MCP server for knowledge and memory.
- Best for
- Keep decisions and preferences across sessions and projectsSearch local code and docs from an agent
- Kind
- MCP serverMCP server
- Pricing
- FreeOpen source
- Platforms
- macOS, Windows, Linux, CLI, self-hostedCLI, Linux, macOS, self-hosted, API
- Runs
- LocallyLocally
- GitHub stars
- 19.2K
- Last commit
- Nov 2026
- License
- Apache-2.0
- Open source
- Good for
- Keep decisions and preferences across sessions and projects; Share one memory between several coding agents on the same machine; Store sensitive context without sending it to a cloud serviceSearch local code and docs from an agent; Give an agent persistent memory notes; Look up real API definitions
What Compartment does
Encrypted vault
One encrypted file on your machine, with embedding vectors encrypted too.
Offline by design
No API key, account, network use or telemetry; the project says this is enforced in CI.
Hybrid recall
Vector and keyword search over an in-memory index.
One claim per memory
Length and format limits keep memories short and searchable.
Expiry and replacement
Memories can expire, and a new preference supersedes the old one.
Agent integration
Commands wire Claude Code, Claude Desktop, Hermes Agent, OpenClaw, AntiGravity and Codex.
What XERJ does
Single binary
Search, vectors, facts and memory in one Rust program.
Evidence-backed answers
Answers come with the program and evidence used.
Runs locally
Works offline on a CPU, on a laptop or server.
Elasticsearch-compatible API
Exposes an API compatible with Elasticsearch.
Reference coding
Index open-source repos so agents consult real definitions.
MCP integration
Stdio MCP server connects to a running node.
Compartment vs XERJ: questions
Is Compartment or XERJ cheaper?
Both are free. Compare current plans on each official site.
What is the difference between Compartment and XERJ?
Compartment is a free MCP server for knowledge and memory. XERJ is an open-source MCP server for knowledge and memory.

