Agent Memory Mcp

io.github.kira-autonoma由 GitHub 帳號 kira-autonoma 發布v0.1.3更新於 Oct 24, 2026

Agent memory MCP server with provenance tracking, decay-weighted recall, and feedback loops.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面資料庫知識與記憶

概覽

AI 產生的概覽

本機 MCP 伺服器,為助理提供具備來源追蹤、衰減加權召回與有用性回饋的持久化 SQLite 記憶。

可以做什麼
  • 儲存記憶,包含內容、類別、標籤、信心度與來源類型
  • 依關鍵字和/或類別召回記憶,並依信心度、來源可信度、衰減與有用性排序
  • 記錄某條被召回的記憶是否有用
  • 查看記憶庫的計數與平均值統計
適用情境
適合需要讓代理跨工作階段保留經驗、策略與偏好、避免重複摸索的情境,也適合希望召回結果依時效與過往有用性排序、而非僅依相似度的使用者。
執行需求
以 stdio 方式在本機執行,通常透過 npm 套件以 npx 啟動,需要 Node.js。選用環境變數:MEMORY_DB_PATH 指定 SQLite 檔案路徑(預設位於使用者家目錄下的 memory.db),MEMORY_DEBUG 控制日誌。不需 API 金鑰或帳號。
安裝前請注意
助理會寫入並更新本機 SQLite 資料庫,儲存內容會長期保留,複製該檔案即可搬移。回饋與信心度會影響後續召回,錯誤條目可能誤導之後的工作階段。README 列出用於捐款的加密貨幣錢包地址,但使用本身無需付款。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agent Memory Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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:

  1. Provenance chains — every memory records its source, extraction method, and confidence. You know why you believe something, not just what you believe.
  2. Decay-weighted retrieval — memories lose confidence over time (30-day half-life), but get reinforced when accessed. Recently-used memories bubble up naturally.
  3. 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

bash
npm install @kiraautonoma/agent-memory-mcp

Or run directly with npx:

bash
npx @kiraautonoma/agent-memory-mcp

MCP Configuration

Add to your Claude Desktop / MCP client config:

json
{  "mcpServers": {    "memory": {      "command": "npx",      "args": ["-y", "@kiraautonoma/agent-memory-mcp"],      "env": {        "MEMORY_DB_PATH": "/path/to/your/memory.db"      }    }  }}

Environment Variables

VariableDefaultDescription
MEMORY_DB_PATH~/.agent-memory/memory.dbPath to SQLite database
MEMORY_DEBUG(unset)Set to "1" for info logs, "verbose" for debug

Tools

memory_store

Store a memory with provenance metadata.

json
{  "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.

json
{  "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.

json
{  "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.

json
{  "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:

  • memories table: content, category, tags, provenance fields, decay tracking, feedback counts
  • feedback_log table: 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

FeatureThisMem0LettaZep
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.

來源:README.md,提交 6161032

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合