Agent Memory Mcp

io.github.kira-autonomaPublished by GitHub account kira-autonomav0.1.3Updated Oct 24, 2026

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

The publisher's own server: Memory.fit

VerifiedSTDIODesktop onlyDatabasesKnowledge & Memory

Overview

AI-generated overview

Local MCP server that gives an assistant a persistent SQLite memory with provenance, decay-weighted recall and usefulness feedback.

What you can do
  • Store memories with content, category, tags, confidence and source type
  • Recall memories by keyword and/or category, ranked by confidence, source trust, decay and usefulness
  • Record feedback on whether a recalled memory was useful
  • Read counts and averages for the memory store
When to use it
Useful when an agent should carry lessons, strategies and preferences across sessions instead of rediscovering them, and when you want recall ranked by recency and past usefulness rather than plain similarity.
Requirements
Runs locally over stdio, typically via npx from the npm package. Needs Node.js. Optional environment variables: MEMORY_DB_PATH for the SQLite file location (defaults to a memory.db under the user's home directory) and MEMORY_DEBUG for logging. No API key or account required.
Before you install
The assistant writes to and updates a local SQLite database, so stored content persists and is portable if the file is copied. Feedback and confidence values shape future recall, so incorrect entries can bias later sessions. The README lists crypto wallet addresses for donations; nothing requires sending funds.

Installation

In SourceWeft

  1. Open Agent Memory Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit 6161032

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Memory integrations