FastrMemory
Local-first memory for coding agents, stored in SQLite with replayable history
FastrMemory is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Version
- 0.9.3
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add fastrmemory -- npx -y fastrmemoryAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"fastrmemory": {
"command": "npx",
"args": [
"-y",
"fastrmemory"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"fastrmemory": {
"command": "npx",
"args": [
"-y",
"fastrmemory"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"fastrmemory": {
"command": "npx",
"args": [
"-y",
"fastrmemory"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"fastrmemory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fastrmemory"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add fastrmemory -- npx -y fastrmemoryOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.fastrmemory]
command = "npx"
args = ["-y", "fastrmemory"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"fastrmemory": {
"command": "npx",
"args": [
"-y",
"fastrmemory"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Or run: gemini mcp add -s user fastrmemory npx -- -y fastrmemory
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "fastrmemory": { "command": "npx", "args": [ "-y", "fastrmemory" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About FastrMemory
FastrMemory runs as a single in-process TypeScript engine on Node 22 or newer, using the built-in node:sqlite in WAL mode, so there is no daemon or open port on the default CLI and MCP path. The README positions it against designs that decay old memories, need an external database, or dump a growing static file.
Memory is bi-temporal: facts carry valid-from and valid-to timestamps instead of decaying, nothing is deleted during consolidation, and human-readable pages under .fastr/pages are mirrored into Git. Retrieval blends three streams with reciprocal rank fusion. The README reports a 240-case synthetic benchmark with 95.8% Hit@1 using optional MiniLM embeddings and 77.1% with the default offline hash embeddings, and says these are not SWE-bench or LongMemEval results.
It targets coding agents such as Claude Code, Cursor, Windsurf and Codex. The fastr mcp init command writes configs for nine JSON clients and prints a Codex TOML snippet, and recent releases index the code graph automatically through hooks.
What it does
- No daemon
- Runs in process on node:sqlite in WAL mode with no background service or open port by default.
- Bi-temporal history
- Valid-from and valid-to timestamps replace decay, and consolidation never deletes facts.
- Git-mirrored pages
- Memory is mirrored as readable markdown pages under .fastr/pages.
- Hybrid retrieval
- Triple-stream reciprocal rank fusion with optional local MiniLM embeddings.
- One-command MCP setup
- fastr mcp init merges configs for nine JSON clients and prints Codex TOML.
- Automatic code-graph indexing
- Setup and hooks index the project and refresh recent edits.
- Crash safety checks
- The README reports 10 of 10 crash-test runs with no lost or duplicated entries.
Good for
- Give a coding agent persistent project memory across sessions
- Recall exact file paths and stack traces from earlier work
- Replay what an agent knew at an earlier point in time
- Share project memory with a team through Git
Pricing
Open source
FastrMemory FAQ
What does FastrMemory need to run?
Node.js 22.16.0 or newer; it is installed from npm as fastrmemory.
Does FastrMemory need a database or daemon?
No. The default CLI and MCP path uses node:sqlite in process; a daemon is optional.
How accurate is retrieval?
On its own 240-case synthetic holdout the README reports 95.8% Hit@1 with MiniLM and 77.1% with default hash embeddings, and warns it is not a public leaderboard result.
Which clients can FastrMemory configure?
fastr mcp init covers nine JSON-config clients and prints a snippet for Codex.
Is FastrMemory free?
Yes. FastrMemory is open source, so you can use and self-host it for free.
How do I add FastrMemory to Claude Code?
Run this command in your terminal: claude mcp add fastrmemory -- npx -y fastrmemory
What are the best alternatives to FastrMemory?
The closest alternatives to FastrMemory are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


