# FastrMemory

> FastrMemory is an open-source MCP server for knowledge and memory. Local-first memory for coding agents, stored in SQLite with replayable history. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/atifjubaer/fastrmemory
- **MCP Registry name:** io.github.atifjubaer/fastrmemory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add fastrmemory -- npx -y fastrmemory
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add fastrmemory -- npx -y fastrmemory
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.fastrmemory]
command = "npx"
args = ["-y", "fastrmemory"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user fastrmemory npx -- -y fastrmemory

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "fastrmemory"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "fastrmemory": {
      "command": "npx",
      "args": [
        "-y",
        "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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/fastrmemory
