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 集成