frugal-memory
Persistent assistant memory in a single SQLite file using full-text search, no embeddings
frugal-memory is a free MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- Linux, macOS, Windows
- Runs
- Locally
- Version
- 0.5.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add frugal-memory -- uvx frugal-memoryAdd --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": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add frugal-memory -- uvx frugal-memoryOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.frugal-memory]
command = "uvx"
args = ["frugal-memory"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Or run: gemini mcp add -s user frugal-memory uvx -- frugal-memory
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "frugal-memory": { "command": "uvx", "args": [ "frugal-memory" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MEMORY_LANGTool names, texts and stemmer: 'en' (default for a new memory) or 'de'. Unset, an existing memory keeps the language it was built in.MEMORY_DBPath of the SQLite file. Default: $XDG_DATA_HOME/frugal-memory/memory.db
About frugal-memory
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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.
- showName suggests: reads
- Fetches chosen entries in full.
- topics
- Lists projects and their newest titles.
What it does
- 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
Pricing
Free
Free; no API key
frugal-memory 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.



