Two-layer memory for AI agents with an immune system. Zero dependencies.
MCPpedia last refreshed this data
io.github.phillipclapham/anneal-memory is an MCP server that two-layer memory for AI agents with an immune system. Zero dependencies. It exposes 4 tools over stdio and sse, requires no API key, and scores 88/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"anneal-memory": {
"args": [
"anneal-memory",
"--project-name",
"MyProject"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Two-layer memory for AI agents with an immune system. Zero dependencies.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'anneal-memory' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked anneal-memory against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
Unified real-time search engine skill for AI agents.
The official MCP server implementation for the Perplexity API Platform
Free, open-source MCP server that gives AI coding agents (Claude Code, Codex, Cursor, OpenCode, ZCode…) design inspiration from award-winning websites — search with real screenshots, pull design DNA, capture and record live sites. A Mobbin alternative. No API key.
MCP Security Weekly
Get CVE alerts and security updates for io.github.phillipclapham/anneal-memory and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Memory for AI agents: a log of what happened, and one memory file that gets rewritten a day at a time.
An agent records episodes as it works (decisions, observations, open questions, outcomes). Now and then a model rewrites one memory file from the old file plus one day of those episodes. The agent loads that file at the start of every session. The store is a local SQLite file with no dependencies beyond the Python standard library. Every version of the memory file is kept.
anneal-memory calls no model itself. It builds the prompt, you run it on whatever model you like, and it keeps the reply.
Upgrading from 3.x? 4.0 is a breaking release. It removed graduation, patterns, crystals and the section schema, and replaced the wrap with the single method below. Old stores open unchanged. After a store has been used by 4.0, do not point a 3.x install back at it; keep the backup you made before upgrading if you need to go back (a 3.x store is not copied on open, so the upgrade leaves no
.bak; a store from an older generation (1.x or 2.x) is, to<db>.gen<N>-<UTC>.bak; 3.x reads the aging stamps of the tables 4.0 no longer uses differently). See MIGRATING_TO_4.md.
There is one consolidation method, a rolling rewrite.
prepare_wrap opens one step: the oldest calendar day that has episodes not yet wrapped. A day is cut in the machine's time zone, or in the zone you pass (--tz, tz=). A day whose log is longer than 400,000 characters is cut into several steps. It returns a fixed prompt, filled with the current memory file and that day's log, and a wrap token.save_continuity, with the token.A catch-up over several days is several steps in order, each one starting from the file the last one saved. It is never one merged log. After a save, pending_count says how many episodes are still waiting; if it is not zero, prepare the next step.
The save checks what the reply answers, never what the file says. It refuses an empty reply, and a reply over the step's limit: 26,000 characters by default, set with --max-chars / max_chars on prepare_wrap, and the save accepts no other limit. It requires the token of the step prepare_wrap opened, since without it a save cannot tell which step the reply answers. On a store that requires the baton, a step prepared under the gate must be saved by the session that prepared it, naming that session's id. The baton holder cannot commit another session's step, so a take of the baton does not move an open step. To abandon one, cancel it under its preparing session: wrap-cancel --wrap-token <token> --session-id <preparing session>, where the session id is the wrap_gated_session that wrap-status --json shows. Then prepare again from the new holder. The save reads the open wrap again under its write lock, and refuses the reply if the wrap has changed since the save first read it: its prepare time, the list of episodes frozen into it, its limit, its preparing session, or the memory file. It also refuses if any episode frozen into the wrap was deleted or pruned after prepare, since the reply may carry its content: cancel the wrap and prepare again. Do not reuse a caller-supplied token. A reply written for a wrap that was cancelled and prepared again under the same token cannot be reliably told apart from a reply for the new wrap, because the token is all the s