agentrecall
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentrecallremember that I prefer dark mode and my name is Aziz"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentrecall
Agent memory in a single SQLite file. No vector database, no server, no cloud, no API key.
pip install agentrecall-dbInstalls as
agentrecall-dbon PyPI (the bareagentrecallname was taken). You stillimport agentrecalland run theagentrecallCLI — only the install name differs.
from agentrecall import Memory
with Memory("agent.db") as mem: # one SQLite file, nothing else running
mem.add("The user prefers dark mode", tags=["preference"])
mem.add("User's name is Aziz; lives in Tashkent", metadata={"kind": "fact"})
# The core install gives you fast keyword recall (SQLite FTS5). For meaning-based
# search that matches paraphrases, add the [semantic] extra — see below.
for hit in mem.search("dark mode preference", k=3):
print(hit.score, hit.content)That's the whole setup. agent.db is an ordinary SQLite file you can cp, git diff,
back up, inspect with any SQLite tool, and read from any language. Nothing else is running.
Why another memory library?
Most "memory layers" for agents are infrastructure. To get started you stand up a vector database, run a server, sign up for a cloud, or hand over an API key — and many of them call an LLM on every write to "extract" facts, which is slow, costs tokens, and is non-deterministic.
agentrecall is the opposite. It is a library, the store is one file, recall is
deterministic, and nothing leaves the machine.
infra needed | semantic search | offline | stores | LLM call per write | |
agentrecall | none (1 file) | ✅ torch-free, opt-in | ✅ | SQLite | ❌ verbatim |
mem0 | vector DB / cloud | ✅ | ⚠️ | vector + KV + graph | ✅ |
Letta / MemGPT | server + Postgres | ✅ | ⚠️ | Postgres + pgvector | ✅ |
Zep | server + datastore | ✅ | ⚠️ | knowledge graph | ✅ |
official MCP memory server | none | ❌ keyword only | ✅ | JSONL flat file | ❌ |
Three things agentrecall does that nothing else combines:
Zero infrastructure. The core has no third-party dependencies — keyword recall runs on Python's stdlib
sqlite3(FTS5 + BM25). A freshpip install agentrecall-dbwith nothing else works.Semantic search with no torch, no GPU, no download server. Add the
[semantic]extra and you get hybrid keyword + vector recall powered by model2vec static embeddings (~10 MB, CPU-only) stored in sqlite-vec. Still one file, still offline.Verbatim & deterministic.
agentrecallnever calls an LLM to mutate your memories. What youadd()is what is stored — no silent fact-extraction, no cloud round-trip, no surprise token bills.
Related MCP server: MCPMem
Install
pip install agentrecall-db # core: keyword recall, stdlib only
pip install "agentrecall-db[semantic]" # + torch-free semantic search (model2vec + sqlite-vec)
pip install "agentrecall-db[mcp]" # + MCP server
pip install "agentrecall-db[all]" # everythingSemantic search (optional, torch-free)
from agentrecall import Memory
# embeddings="auto" (the default) turns semantic on automatically *iff* the
# [semantic] extra is installed, and silently stays keyword-only otherwise.
mem = Memory("agent.db", embeddings="auto")
print(mem.semantic_enabled) # True once you've installed agentrecall[semantic]
mem.add("I love hiking in the mountains on weekends")
hits = mem.search("outdoor hobbies") # matches even with zero shared keywordsSearch is hybrid: keyword (FTS5/BM25) and vector (cosine) candidates are blended with
Reciprocal Rank Fusion,
so you get the precision of keywords and the recall of embeddings. Bring your own embedder
(OpenAI, a local model, anything) by passing embedder= — any object with .dim and
.embed(texts) -> list[list[float]].
Optional ranking boosts:
mem = Memory("agent.db", recency_weight=0.5, importance_weight=0.3)
mem.add("Critical: API key rotates on the 1st", importance=3.0)
mem.search("api key", recency_weight=1.0) # per-call overrideExpiring memories (TTL)
Not every fact is true forever. A memory added with a ttl stops being recalled once its
deadline passes — no cron job, no cleanup pass, no if in your agent loop:
mem.add("User is debugging the staging deploy", ttl="4h") # gone after the session
mem.add("Rate limit resets at 14:00 UTC", ttl="1h")
mem.add("User's name is Aziz", ) # no ttl → permanentttl accepts "30d", "12h", "1h30m", a number of seconds, or a timedelta. For an
absolute deadline, pass expires_at=<datetime> instead (the two are mutually exclusive).
Expiry is a visibility rule, applied in SQL before the LIMIT, so an expired memory
never occupies a slot in your top-k:
mem.search("staging") # expired memories are absent
mem.all() # absent
mem.get(memory_id) # raises MemoryNotFound
mem.count() # doesn't count them
mem.search("staging", include_expired=True) # opt back in, on any readNothing is deleted until you say so. Rows linger — invisible — until you reclaim the disk:
mem.purge_expired() # returns how many rows wentBecause it only removes what's already invisible, running it (or never running it) cannot change what your agent recalls. To renew or cancel a deadline:
mem.update(mid, ttl="7d") # restart the countdown from now
mem.update(mid, expires_at=None) # drop the deadline — permanent againupdate() finds already-expired memories, so a renewal brings one back.
Namespaces
Isolate memories per user, per agent, or per session with a namespace:
alice = Memory("app.db", namespace="user:alice")
bob = Memory("app.db", namespace="user:bob") # same file, isolated memories
alice.add("prefers metric units")
bob.search("units") # never sees Alice's memoriesAs an MCP server
Give Claude (or any MCP client) persistent, searchable memory — an embeddings-capable alternative to the official keyword-only JSONL memory server:
pip install "agentrecall-db[mcp]"
agentrecall serve --db ~/.agent-memory.db// Claude Desktop / Claude Code MCP config
{
"mcpServers": {
"memory": {
"command": "agentrecall",
"args": ["serve", "--db", "/Users/me/.agent-memory.db"]
}
}
}Tools exposed: remember, recall, forget, forget_expired, list_memories,
memory_stats. remember takes an optional ttl, so the model can mark a fact as
session-scoped when it stores it.
CLI
agentrecall add "Deadline is July 7" --tags project --importance 2
agentrecall add "Debugging staging today" --ttl 4h # expires on its own
agentrecall search "when is the deadline" -k 3
agentrecall list --limit 10 --include-expired
agentrecall stats # live count + how many expired
agentrecall forget --keep-last 1000 # prune to the newest 1000 per namespace
agentrecall forget --expired # reclaim disk from elapsed TTLs
agentrecall export --format md > memories.mdMove a store between machines with the JSON round-trip (- reads stdin):
agentrecall --db old.db export > memories.json
agentrecall --db new.db import memories.jsonImport accepts either a JSON array or one object per line (JSONL), and preserves tags, metadata, importance, namespace, and expiry. Ids are reassigned by the destination.
Every command honours --db, --namespace, and the AGENTRECALL_DB /
AGENTRECALL_NAMESPACE / AGENTRECALL_EMBEDDINGS environment variables.
API at a glance
mem.add(content, *, tags=None, metadata=None, importance=1.0, namespace=None,
ttl=None, expires_at=None) -> MemoryRecord
mem.add_many([str | dict, ...]) -> list[MemoryRecord]
mem.search(query, *, k=5, namespace=None, tags=None, recency_weight=None,
importance_weight=None, include_expired=False) -> list[MemoryHit]
mem.get(id, *, include_expired=False) / mem.update(id, ...) / mem.delete(id)
mem.all(*, namespace=None, tags=None, limit=None, offset=0,
include_expired=False) -> list[MemoryRecord]
mem.count(*, namespace=None, include_expired=False) -> int
mem.forget(*, before=None, namespace=None, keep_last=None) -> int # deleted count
mem.purge_expired(*, namespace=None) -> int # deleted counttags filtering matches memories containing all of the requested tags.
The database is just SQLite
No magic. Open it with anything:
sqlite3 agent.db "SELECT id, content, importance, created_at FROM memories ORDER BY created_at DESC LIMIT 5;"Schema: a memories table (with JSON tags/metadata columns and a nullable
expires_at), an FTS5 index kept in sync by triggers, and — only in semantic mode — a
sqlite-vec vector table. See SPEC.md for the full contract.
Older database files are migrated in place on open: the expires_at column is added and
existing rows keep NULL, i.e. they never expire.
Scope & limits (honest defaults)
Agent-scale, not web-scale. sqlite-vec uses a linear scan (no ANN index yet) — great for thousands of memories per namespace, not millions of RAG chunks.
Sync, single-process. Use one
Memoryper thread.sqlite3is fast and local; there is no async API by design.No knowledge graph / entity-relation modeling. That's Cognee and Zep's lane.
agentrecallstays small on purpose.No automatic summarization. Memories are stored verbatim. If you want LLM-distilled memories, distill before you
add()— your call, your model, your tokens.add()is append-only. Re-adding the same text creates a new row (no content dedupe). To revise a memory, keep the integer id returned byadd()and callupdate(id, ...)/delete(id).forget(before=..., keep_last=...)deletes the union — rows older thanbeforeor beyond the newestkeep_lastper namespace. With neither argument it's a no-op (to wipe a store, just delete the file).TTL hides, it doesn't delete. An expired memory stays on disk until
purge_expired(). That's deliberate — expiry is reversible (update(id, ttl=...)), and aSELECTinsqlite3still shows you what an agent has stopped recalling.
Development
pip install -e ".[dev]"
pytest
ruff check .The keyword (FTS-only) test suite runs with zero third-party dependencies. Semantic
tests are skipped automatically when the [semantic] extra isn't installed.
License
MIT © 2026 Shaxzodbek Qambaraliyev / Blaze
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Mem0-compatible persistent memory for AI agents: write facts once, recall them semantically.
Memory system for AI agents with semantic search. Store and recall memories with ease.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to store and retrieve memories with semantic search capabilities using vector embeddings. Provides persistent memory storage with SQLite backend for context retention across conversations.771MIT
- AlicenseNot gradedqualityAmaintenanceProvides long-term memory for LLMs via local SQLite storage with hybrid search (BM25, vectors, recency decay), enabling AI coding agents to persist and recall memories across sessions without cloud or API keys.53MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI assistants with persistent memory across sessions using local SQLite and keyword search, allowing storage and retrieval of user preferences, project context, and decisions.128MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shaxzodbek-uzb/agentrecall'
If you have feedback or need assistance with the MCP directory API, please join our Discord server