frugal-memory
概览
作者提供的说明(英文原文)
Memory for AI assistants in one SQLite file: full-text search, no vectors, no embeddings.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 90/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
MEMORY_LANG,MEMORY_DB
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "your-value",
"MEMORY_DB": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add frugal-memory --env MEMORY_LANG=your-value --env MEMORY_DB=your-value -- uvx frugal-memory运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "your-value",
"MEMORY_DB": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"frugal-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "your-value",
"MEMORY_DB": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
MEMORY_LANGenvTool names, texts and stemmer: 'en' (default for a new memory) or 'de'. Unset, an existing memory keeps the language it was built in.MEMORY_DBenvPath of the SQLite file. Default: $XDG_DATA_HOME/frugal-memory/memory.db
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 komakeule57-maker 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5692 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5692 个服务器的 80% 更新
- 基础检查结果等于或优于此分类中其他 5692 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
frugal-memory 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.3.1)于10天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
frugal-memory
A persistent memory for AI assistants that is just a SQLite file — and costs about a fifth of what reading markdown notes does.
No vector store, no embeddings, no external service, no API key. Python, SQLite with FTS5, stdio — the only dependency is the official mcp SDK. Nothing leaves your machine unless you explicitly turn on the optional fact check.
Measured over 275 real questions from 89 working sessions: 2,359 tokens per answered question, against 11,319 for the usual one markdown file per fact, found with grep and read whole. That baseline is the naive case on purpose: it is what happens when the file is opened with Read, which loads it whole. The careful path, grep -C with three lines of context, turned out more expensive, not cheaper: 28 times the characters in the median with a realistic search order (added after the run; 65 times under the rule fixed before it), because a broad search over 1,756 files returns hundreds of matching lines (details). Both compare against markdown notes, not against other memory servers. The gap grows as the memory does, because every answer here is capped and grep is not. All figures come from one installation, and the docs say where one did not hold up.
Why
An assistant's memory usually fails in one of two ways: it is a pile of markdown files that has to be read whole to be searched, or it is a vector database that answers *that* something matched but never *why*.
This one is a ranked full-text index over short entries, with two things bolted on that turn a note pile into a memory: entries are filed on two axes — where it belongs (project) and what kind of knowledge it is (pitfall, decision, measurement, …) — and when you write something down, the tool tells you which existing entries it overlaps with, so contradictions surface instead of quietly piling up.
Features
- Capped, calculable answers — a search returns eight preview lines of about 1.2 KB in total instead of 4.2 KB of full text;
showthen fetches the entries you pick, about 6,000 characters per call unless you ask for everything. The worst case is known before you ask. - It learns from its own failures — when a search is followed by fetching an entry, that pair is remembered. Ask the same thing again and the entry that answered last time comes first. Word-for-word repeats only, and the header says when it fired.
- Two filing axes — a free-text project tag and a closed, enforced vocabulary of knowledge kinds. Chronicle entries are hidden from search by default, but the header always says how many were held back.
- Duplicate and contradiction hints —
rememberreports similar existing entries and which numbers changed, so you can supersede instead of accumulate. - Nothing is ever deleted — superseded entries drop out of the default view and stay findable, with a note on why and by what. One switch brings them back if that was a mistake.
- Browsing, not just searching —
topics()lists projects and a project's newest title lines for when you have forgotten the words to search for. Capped like everything else: one page, and a line saying how to get the rest. - Project-bound in use, not in search — the usual question is asked inside one project, with
tag=. That filter is hard, so when the best match lies outside the project,recallnames it instead of leaving you with a plausible-looking list of the wrong entries. - Two opt-in extensions on the same engine — a literature archive that all projects share, and a lab notebook for measurement series. Each is its own file and its own server entry; leave them out and nothing changes (below).
- Opt-in second opinion — optionally ask any OpenAI-compatible model whether two entries contradict each other or just supersede one another.
- English by default, German as a second language — the search matches inflected forms ("configured" finds "configuring").
MEMORY_LANG=deswitches tool names, messages and kinds to German, and the search to German stems and compound parts ("Rangliste" finds "Ranglisten", "Katalysator" finds "Fusionskatalysator"). The figures from real use below come from German notes (A Note on Language). Measured, the stems rarely change the answer: the plain any-term stage of the search already finds what they would add (details).
Requirements
- Python 3.11+
- The
mcpSDK (requirements.txt, that's the whole list) - SQLite with FTS5 — included in standard CPython builds
- Tested on Linux, macOS and Windows with Python 3.11 and 3.14: the full test suites plus the installed package, on every push. Day-to-day use so far is on Linux only — reports from macOS and Windows are very welcome as issues.
- Optional, for the fact check only: any OpenAI-compatible endpoint
Setup
From PyPI, as a command in its own environment:
pipx install frugal-memory # or: uv tool install frugal-memory
claude mcp add memory -s user -- frugal-memory
With uv it also works without installing first; uvx fetches the package on the first start:
claude mcp add memory -s user -- uvx frugal-memory
The database is created on first use at ~/.local/share/frugal-memory/memory.db ($XDG_DATA_HOME if set). frugal-memory-nachziehen is the upkeep script described in DESIGN.md. Coming from a folder of markdown notes, frugal-memory-import moves them in, paragraph by paragraph (IMPORT.md). frugal-memory-skill installs the working rules for Claude Code (see below). With uvx, all of them run as uvx --from frugal-memory frugal-memory-import ….
Or from a checkout of this repository:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
claude mcp add memory -s user -- \ /path/to/frugal-memory/.venv/bin/python \ /path/to/frugal-memory/memory_server.py
Here the database is created as memory.db next to the script. Either way, MEMORY_DB=/some/path.db puts it somewhere else.
-s user makes the server available in all projects; the entry ends up in ~/.claude.json. Restart Claude Code afterward — MCP servers are only loaded at startup. The tools are then called mcp__memory__recall and mcp__memory__remember.
For Claude Desktop, use ~/.config/Claude/claude_desktop_config.json instead:
{
"mcpServers": { "memory": { "command": "/path/to/frugal-memory/.venv/bin/python", "args": ["/path/to/frugal-memory/memory_server.py"] } } }
One rule matters more than any setting: one fact per call, not one document. recall returns whole entries — store a 180 KB file as a single entry and you get it back as a single hit, having gained nothing.
Teaching the agent how to use it
The tools alone don't tell an agent the working rules: search before reading files, recall → show, exactly one kind per entry, supersede instead of accumulate, retry in the other language. Two layers carry them:
- The short form comes with the server. On connecting it sends about 600 characters of instructions (English, or German with
MEMORY_LANG=de), which Claude Code adds to every session that has the server. Guest mode (--guest) sends none, since it cannot store anything. - The full rules are a skill. It ships with the repo and the PyPI package; one command installs it:
uvx --from frugal-memory frugal-memory-skill # or frugal-memory-skill after pip install
cp -r skills/frugal-memory ~/.claude/skills/ # or from a clone
Claude Code loads the skill's full text only when the memory comes up; until then only its one-line description sits in context. An existing SKILL.md that differs is left alone unless you add --force.
A third layer is up to you: a few lines in CLAUDE.md, for what neither layer can say — mainly that the server, not Claude Code's own memory files, is where knowledge goes. An optional block to copy is in docs/CLAUDE-MD.md.
Reading another machine's memory
Each machine keeps its own memory, and each numbers its entries from 1. A session on machine A can read the memory of machine B over SSH — the server runs on B, next to its file; the database itself never crosses the network:
claude mcp add memory-b -s project -- \
ssh b /path/to/frugal-memory/.venv/bin/python \ /path/to/frugal-memory/memory_server.py --guest
--guest (German: --gast) means three things:
- Read-only. The file is opened with
mode=ro, and onlyrecall,showandtopicsare offered. The writing tools are gone, and so areconsolidateandcheck: upkeep belongs to the owner, who can act on it. A guest's searches do not feed the owner's search feedback either, and a guest never migrates the schema. - Every id carries the memory's name:
b#72, not#72. The name is the host name in lower case;MEMORY_NAMEoverrides it. - A named id is checked, in both modes.
show("b#72")asked of any memory other thanbis refused instead of quietly returning that memory's own #72. Bare ids (72,#72) mean the memory being asked.
The guest speaks the language of the memory it reads, unless MEMORY_LANG says otherwise. -s project keeps the three extra tool definitions out of sessions that do not need them. The tools are then called mcp__memory-b__recall and so on.
Two Opt-in Extensions
The same server starts in two more modes. Each has its own file, its own tools and its own entry in Claude Code; the memory itself is never opened in them. Both follow MEMORY_LANG like the memory does. They grew out of daily use with several projects at once and have not been measured the way the memory has — they are offered because they made that work noticeably easier, not because a number says so.
Literature archive (--archive)
Papers, datasets and prior work, shared by all projects. The memory holds what *you* found out; the archive holds what *others* published, and its value lies in the find another project already made.
claude mcp add archive -s user -- uvx frugal-memory --archive
- Same eight tools, other kinds:
finding,method,survey,resource(code, dataset),gap(searched, nowhere measured),lead(unchecked) andrejected(checked and rejected — e.g. a citation a language model made up). Leads and rejected entries are hidden from search, like the chronicle in the memory. - The same source is recognized by its id, not its wording. When
remembersees an arXiv number, DOI or link that is already in the archive, it says so — two projects rarely describe a paper in the same words. It also asks for the source and the evidence level (full text, abstract, unconfirmed) when they are missing. - Every id carries the name
archive#12(archiv#12in German mode), so it is never mistaken for a memory id. - File:
archive.dbnext to the memory's, orARCHIVE_DB. Several machines can share one archive by starting it over SSH on the machine that holds the file (without--guest, so all of them can write).
Lab notebook (--messbuch)
Measurement series as a structure instead of loose entries: question, criterion, recipe, numbers, verdict, and what supersedes what. Spread over a dozen memor
只显示了开头部分;其余内容请在仓库中阅读