open-memex
Shared local Markdown memory for coding agents across Copilot, Cursor and Claude Code
- Pricing
- Open source
- Platforms
- CLI, vscode, self-hosted
- Runs
- Locally
- Version
- 0.10.0
- Listing updated
- 3 days ago
About open-memex
open-memex is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
open-memex targets one frustration: every coding session starts from zero, and decisions made yesterday vanish when the chat ends. It stores memories as plain Markdown files, treated as the source of truth, with a rebuildable SQLite FTS5 index for fast retrieval, so you can read, edit, back up or delete them with ordinary tools.
Because every connected editor reads and writes the same store, something captured in Cursor is respected later in Claude Code, VS Code Copilot, Visual Studio or opencode. open-memex init detects installed editors and wires them up. Search is keyword-based with a curated multilingual synonym map, so ship finds deploy, with no embedding model, and a derived knowledge graph of project memories feeds an outline into session start.
Privacy is local: no account, cloud service or telemetry, common API keys are masked before saving, and text inside <private> tags is stripped. Personal memories never sync, while project memories can be proposed, reviewed and published through Git branches and pull requests. It needs Node.js 22.14 or newer and is Apache-2.0 licensed.
Install
Run in a terminal
claude mcp add open-memex -- npx -y open-memexAdd to claude_desktop_config.json
{
"mcpServers": {
"open-memex": {
"command": "npx",
"args": [
"-y",
"open-memex"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"open-memex": {
"command": "npx",
"args": [
"-y",
"open-memex"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"open-memex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"open-memex"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"open-memex": {
"command": "npx",
"args": [
"-y",
"open-memex"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"open-memex": {
"command": "npx",
"args": [
"-y",
"open-memex"
]
}
}
}What it does
- Plain Markdown storage
- Memories are files you can open, edit and back up.
- Shared across editors
- Copilot, Cursor, Claude Code, Visual Studio and opencode use one store.
- Synonym-aware search
- A curated multilingual map lets related wording find the right memory.
- Secret masking
- Common keys and tokens are masked and private-tagged text is stripped before saving.
- Git team sharing
- Project memories go from personal draft to reviewed memory via pull requests.
- Health check
- `open-memex doctor` verifies storage, editor wiring and the SQLite driver.
Good for
- Remember deployment rules and environment quirks across sessions
- Record architecture decisions with their reasons
- Share one memory between several coding tools
- Pass reviewed project knowledge to teammates through Git
- Keep personal working preferences available to every agent
Pricing
Open source
Prices change. Check stoneskin.github.io before you buy.
open-memex FAQ
Does it send data to a cloud?
No. There is no account, cloud service or telemetry, and personal memories stay on the machine.
What does it need?
Node.js 22.14 or newer, installed with `npm install -g open-memex`.
Is an embedding model required?
No. Retrieval uses SQLite FTS5 keyword search with a synonym map.
What is the licence?
Apache-2.0.
Is open-memex free?
Yes. open-memex is open source, so you can use and self-host it for free.
How do I add open-memex to Claude Code?
Run this command in your terminal: claude mcp add open-memex -- npx -y open-memex
What are the best alternatives to open-memex?
The closest alternatives to open-memex are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to open-memex

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools