# frugal-memory

> frugal-memory is a free MCP server for knowledge and memory. Persistent assistant memory in a single SQLite file using full-text search, no embeddings. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Linux, macOS, Windows, CLI
- **Repository:** https://github.com/komakeule57-maker/frugal-memory
- **MCP Registry name:** io.github.komakeule57-maker/frugal-memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

The author's argument is cost: over 275 real questions from 89 sessions it measured 2,359 tokens per answered question against 11,319 for one markdown file per fact read whole, and says the comparison is to markdown notes, not other memory servers. Every answer is capped, so a search returns eight preview lines of about 1.2 KB and `show` fetches chosen entries.

Entries are filed on two axes, a free-text project tag and a closed vocabulary of knowledge kinds such as pitfall, decision or measurement. When you save something, it reports overlapping entries and changed numbers so contradictions surface; nothing is deleted, only superseded and hidden by default. A search followed by fetching an entry is remembered, and a repeat of the same wording ranks that entry first.

It needs Python 3.11+, SQLite with FTS5 and the `mcp` SDK. Search is English by default with German as a second language (`MEMORY_LANG=de`). Optional extras are a shared literature archive, a lab notebook and a fact check through any OpenAI-compatible model.

## Features

- **Capped answers:** Search and fetch output have known upper bounds.
- **Two filing axes:** Project tag plus an enforced list of knowledge kinds.
- **Contradiction hints:** Reports similar entries and changed numbers when you save.
- **Never deletes:** Superseded entries stay findable with a note.
- **Learns from failures:** Search-then-fetch pairs boost repeat questions.
- **German option:** Switches tool names, texts and stemming to German.
- **Optional fact check:** Asks an OpenAI-compatible model whether entries conflict.

## Good for

- Give Claude Code a memory that survives sessions
- Move a folder of markdown notes into searchable entries
- Record decisions and pitfalls per project
- Keep a lab notebook of measurement series

## Install

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

```sh
claude mcp add frugal-memory -- uvx frugal-memory
```

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": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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 frugal-memory -- uvx frugal-memory
```

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

```toml
[mcp_servers.frugal-memory]
command = "uvx"
args = ["frugal-memory"]
```

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user frugal-memory uvx -- frugal-memory

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

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": {
    "frugal-memory": {
      "command": "uvx",
      "args": [
        "frugal-memory"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `recall`: Searches memory entries and returns capped previews.
- `remember`: Saves an entry and reports overlaps.
- `show` (name suggests: reads): Fetches chosen entries in full.
- `topics`: Lists projects and their newest titles.

## FAQ

### Does frugal-memory use embeddings?

No. It uses SQLite FTS5 full-text search.

### Where is data stored?

In a SQLite file, by default under the XDG data directory, or wherever MEMORY_DB points.

### Does anything leave my machine?

Only if you turn on the optional fact check.

### What does frugal-memory require?

Python 3.11+, SQLite with FTS5 and the official mcp SDK.

### Is frugal-memory free?

Yes. frugal-memory is free to use.

### How do I add frugal-memory to Claude Code?

Run this command in your terminal: claude mcp add frugal-memory -- uvx frugal-memory

### What are the best alternatives to frugal-memory?

The closest alternatives to frugal-memory are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/frugal-memory
