
Agent Memory MCP
- Updated March 23, 2026
- kira-autonoma/agent-memory-mcp
Agent Memory MCP is an MCP server that persists agent memories in SQLite with provenance, decay-weighted recall, and feedback loops.
About
Agent Memory MCP is a stdio MCP server that stores agent observations and preferences outside the model context window, then serves them back with provenance metadata, decay-weighted scoring, and feedback-driven tuning. developers shipping agent-first products use it when long sessions lose decisions, stack traces, or user preferences that never made it into repo docs. Registering the server lets Claude Code, Cursor, or Codex call memory tools instead of re-deriving state from scratch each chat. You point MEMORY_DB_PATH at a local SQLite file so memory survives restarts without standing up a cloud database on day one. It fits the agent-tooling lane for anyone treating memory as infrastructure rather than prompt hacks.
- SQLite-backed memory store with configurable MEMORY_DB_PATH (default ~/.agent-memory/memory.db)
- Provenance tracking so recalled facts can be traced to source interactions
- Decay-weighted recall to prioritize fresher or reinforced memories over stale notes
- Feedback loops to improve what the agent retrieves over time
- Stdio npm package @kiraautonoma/agent-memory-mcp version 0.1.3
Agent Memory MCP by the numbers
- Data as of Aug 10, 2026 (Skillselion catalog sync)
claude mcp add --env MEMORY_DB_PATH=YOUR_MEMORY_DB_PATH agent-memory-mcp -- npx -y @kiraautonoma/agent-memory-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Package | @kiraautonoma/agent-memory-mcp |
|---|---|
| Transport | STDIO |
| Auth | None |
| Last updated | March 23, 2026 |
| Repository | kira-autonoma/agent-memory-mcp ↗ |
What it does
Give coding agents durable, queryable memory with provenance and decay-weighted recall instead of stuffing everything into the chat context.
Who is it for?
Best when you're running multi-session coding agents and want local, structured memory without a separate vector SaaS on day one.
Skip if: Skip if you need enterprise RBAC, multi-user shared knowledge graphs, or compliance-reviewed memory governance out of the box.
What you get
After install, your agent can store and retrieve weighted memories from a local database with traceable provenance.
- Local SQLite memory database for agent recall
- MCP-accessible memory operations with provenance and decay-weighted retrieval
By the numbers
- Package version 0.1.3
- Default database path ~/.agent-memory/memory.db
- Transport: stdio npm registry
README.md
agent-memory-mcp
MCP server for agent memory with provenance tracking, decay-weighted recall, and feedback loops.
Most agent memory systems treat memories as free-floating facts. This one tracks where each memory came from, how confident you should be in it, and whether it was actually useful — so your agent stops rediscovering the same things and starts getting smarter over time.
Why this exists
Agents waste tokens. A lot of them. Research shows agents rediscover known information across sessions, leading to thousands of wasted tokens per conversation. Flat files are auditable but unsearchable. Vector DBs have great recall but no staleness signals. Structured state is brittle.
This is a memory layer that fixes the actual problems:
- Provenance chains — every memory records its source, extraction method, and confidence. You know why you believe something, not just what you believe.
- Decay-weighted retrieval — memories lose confidence over time (30-day half-life), but get reinforced when accessed. Recently-used memories bubble up naturally.
- Feedback flywheel — mark recalled memories as useful or not. Over time, the memories that actually help you rise to the top. The ones that don't, fade.
Install
npm install @kiraautonoma/agent-memory-mcp
Or run directly with npx:
npx @kiraautonoma/agent-memory-mcp
MCP Configuration
Add to your Claude Desktop / MCP client config:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@kiraautonoma/agent-memory-mcp"],
"env": {
"MEMORY_DB_PATH": "/path/to/your/memory.db"
}
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
MEMORY_DB_PATH |
~/.agent-memory/memory.db |
Path to SQLite database |
MEMORY_DEBUG |
(unset) | Set to "1" for info logs, "verbose" for debug |
Tools
memory_store
Store a memory with provenance metadata.
{
"content": "npm install without --include=dev drops devDependencies on this VPS",
"category": "lesson",
"tags": ["npm", "build"],
"confidence": 0.95,
"source_type": "observation"
}
Categories: lesson, strategy, operational, identity, preference, fact
memory_recall
Retrieve memories by keyword query and/or category, ranked by decay-weighted relevance.
{
"query": "npm build errors",
"category": "lesson",
"limit": 5
}
Returns memories sorted by: confidence × source_trust × decay_factor × usefulness_factor
Empty query returns top-N by relevance score (good for session startup).
memory_feedback
Record whether a recalled memory was useful. This is the flywheel.
{
"memory_id": "mem_abc123_xyz",
"useful": true,
"context": "Reminded me to run npm install --include=dev"
}
memory_stats
Get counts and averages for the memory store.
{
"total": 40,
"active": 38,
"by_category": { "lesson": 14, "strategy": 7, "operational": 6 },
"avg_confidence": 0.93,
"feedback_count": 12
}
Usage Pattern
The intended pattern for autonomous agents:
Session start:
→ memory_recall("", { limit: 10 }) # load top memories into context
During session:
→ memory_recall("topic keywords") # retrieve relevant memories
After session:
→ memory_store(...) # save new insights
→ memory_feedback(id, useful=true) # reinforce what worked
Storage
SQLite database with WAL mode. Schema:
memoriestable: content, category, tags, provenance fields, decay tracking, feedback countsfeedback_logtable: full feedback history for the flywheel
The database is portable — copy it to move your agent's memory to a new machine.
What's different from Mem0 / Letta / Zep
| Feature | This | Mem0 | Letta | Zep |
|---|---|---|---|---|
| Provenance tracking | ✅ | ❌ | ❌ | ❌ |
| Decay-weighted retrieval | ✅ | ❌ | ❌ | Partial |
| Feedback flywheel | ✅ | ❌ | ❌ | ❌ |
| Local SQLite (no API key) | ✅ | ❌ | ❌ | ❌ |
| MCP native | ✅ | ❌ | ❌ | ❌ |
License
MIT
Real-world usage
This memory system is deployed in production on an autonomous agent (Kira) running 24/7 on a VPS. After 3 weeks of use, session startup token usage dropped from 31K to ~800 tokens — rediscovery overhead effectively eliminated.
Architecture writeup: Why Every Agent Memory System Is Broken
Behind the scenes: I gave my AI agent a self-improvement loop. It ran 20 cycles in 72 hours.
Support development
If this helps your agent, contributions welcome:
- Polygon/ETH:
0x3f5422dCDD052D9b6D6C2d75AFA4AE57e80d101B - Solana:
9RiJCq7xBrsMRnSiRGQ5nTkiTMraGKeBNsGW7P5CHqF
Or just ⭐ the repo — visibility matters for an agent trying to survive on its own work.
Recommended MCP Servers
How it compares
Durable agent memory MCP backend, not a one-shot prompt skill or generic note-taking plugin.
FAQ
Who is Agent Memory MCP for?
It is for developers and agent authors who want persistent, recall-ranked memory exposed as MCP tools to coding agents.
When should I use Agent Memory MCP?
Use it during build when your agent repeats work because context windows drop project facts, preferences, or prior debugging outcomes.
How do I add Agent Memory MCP to my agent?
Install @kiraautonoma/agent-memory-mcp via npm stdio transport, set MEMORY_DB_PATH if you want a custom SQLite file, and register the server in your MCP host config.