memory-worth-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
memory-worth-mcp
Persistent agent memory with trust scoring and project-scoped routing for the Model Context Protocol (MCP). 13 tools covering search, write, wakeup, synthesize, stats, tuning, merging, invalidation, and more.
Quick Start
# Install globally or use via npx
npm install -g memory-worth-mcp
# Or run directly (auto-installs)
npx memory-worth-mcpMCP Configuration
Add to your .mcp.json or equivalent:
{
"memory-worth": {
"command": "npx",
"args": ["-y", "memory-worth-mcp"],
"env": {
"MEMORY_WORTH_PROJECT": "your-project-name"
}
}
}Environment variables:
Variable | Purpose | Default |
| Explicit SQLite file path | — |
| Directory containing | — |
| Current project name |
|
| Deprecated alias for | — |
Default DB location: %LOCALAPPDATA%\memory-worth\memory.db (Windows) or XDG_DATA_HOME/memory-worth/memory.db (Unix).
Related MCP server: ZeroDB Agent Memory MCP Server
Available Tools
Tool | Description |
| Search memories by query, scope, trust level, and tags |
| Retrieve a single memory by ID |
| Create a new memory (requires |
| Update content, trust score, tags, or status |
| Soft delete (archive) or hard delete |
| Combine multiple memories into a synthesized answer |
| Session-start digest with high-trust memories and protocol reminder |
| Project and global statistics with trust distribution and top tags |
| Adjust trust score thresholds and relabel memories |
| Mark a memory as superseded by another with a reason |
| Merge multiple memories into a new one, superseding originals |
| Change status (active/archived/superseded) |
| List all available memory tools |
Core Concepts
Trust Scoring
Trust labels are population quantiles computed via Wilson score interval (95% confidence):
Label | Meaning | Threshold |
| Co-occurred with success | Score ≥ 0.7 (75th percentile) |
| Too little evidence | 0.3 < Score < 0.7 |
| Co-occurred with failure | Score ≤ 0.3 (25th percentile) |
Calibration records outcomes (success/failure/neutral) per memory. Minimum 5 calibrations required for a non-unproven label.
Project-Scoped Routing
Scope | Behavior |
| Current project + global, ranked current-first (default) |
| Current project + global |
| Global scope only |
| All projects, no ranking |
Write scope auto-detection: Content referencing file paths (src/file.ts:42), function calls (helper()), git SHAs (a1b2c3d), or project paths (src/) → project scope. Ungrounded conventions → global scope.
Memory Lifecycle
active → (archive) → archived
active → (supersede) → superseded → (merge) → new activeTypical Workflow
%%{init: {'theme': 'dark'}}%%
flowchart TD
A[Session Start] --> B[memory_wakeup]
B --> C{Task Type}
C -->|New Feature| D[memory_write<br/>design decisions]
C -->|Bug Fix| E[memory_write<br/>bug + fix pair]
C -->|Optimization| F[memory_write<br/>proposal]
D --> G[memory_search<br/>prior art]
E --> G
F --> G
G --> H[memory_synthesize<br/>cross-session insights]
H --> I[memory_tune<br/>adjust thresholds]
I --> J[memory_merge<br/>consolidate related]
J --> K[memory_stats<br/>review health]Usage Examples
Session Start (Wakeup)
// Returns high-trust memories, recent activity, items needing review, protocol reminder
await mcp.callTool("memory_wakeup", {
project: "my-project",
sessionId: "abc-123"
});Record a Design Decision
await mcp.callTool("memory_write", {
project: "my-project",
content: "Use requestAnimationFrame + accumulator for fixed timestep. Replaces setInterval(100ms).",
appliesWhen: "Refactoring game loop in src/game-loop.ts:45",
tags: ["architecture", "rendering", "performance"],
sessionId: "abc-123"
});Record Bug + Fix Pair
// Bug
const bug = await mcp.callTool("memory_write", {
project: "my-project",
content: "Self-collision on rapid direction reversal. Root cause: collision check after unshift.",
appliesWhen: "Fixing collision in src/snake.ts:180",
tags: ["bug", "collision", "critical"]
});
// Fix
const fix = await mcp.callTool("memory_write", {
project: "my-project",
content: "Prevent 180° reversal in input handler. Check: if (newDx === -dx && newDy === -dy) return;",
appliesWhen: "Applying fix to src/snake.ts:210",
tags: ["fix", "collision", "resolved"]
});
// Calibrate: mark fix as successful
await mcp.callTool("memory_update", {
id: fix.id,
trustScore: 0.9 // Becomes "high" trust
});Search with Trust Filtering
await mcp.callTool("memory_search", {
query: "collision",
scope: "project",
project: "my-project",
minTrust: 0.7, // Only high-trust
tags: ["resolved"],
limit: 10
});Synthesize Cross-Session Knowledge
await mcp.callTool("memory_synthesize", {
memoryIds: ["id1", "id2", "id3"],
project: "my-project",
question: "What are all known collision issues and their fixes?"
});Prerequisites
Tool | Minimum Version | Purpose |
Node.js | 20+ | MCP server runtime |
npm | 10+ | Package management |
Development
# Clone
git clone https://github.com/simwai/memory-worth-mcp.git
cd memory-worth-mcp
# Install dependencies
npm install
# Run tests
npm test
# Build
npm run build
# Run server locally
npm run dev
# Dry-run release
npm run release:dry:patchRelease Commands
Command | Effect |
| Bump patch (1.0.0 → 1.0.1), create git tag |
| Bump minor (1.0.0 → 1.1.0), create git tag |
| Bump major (1.0.0 → 2.0.0), create git tag |
| Full release: test → build → version → publish → push tags |
| Full minor release |
| Full major release |
| Preview patch release without changes |
Architecture
%%{init: {'theme': 'dark'}}%%
flowchart TD
subgraph Server["MCP Server (stdio)"]
T[Tools Registry] --> S[memory_search]
T --> W[memory_write]
T --> G[memory_get]
T --> U[memory_update]
T --> D[memory_delete]
T --> Y[memory_synthesize]
T --> K[memory_wakeup]
T --> A[memory_stats]
T --> N[memory_tune]
T --> V[memory_invalidate]
T --> M[memory_merge]
T --> P[memory_set_status]
T --> L[memory_list_tools]
end
DB[(SQLite WAL)]
T --> DB
subgraph Trust["Trust Engine"]
WS[Wilson Score] --> Q[Quantiles]
Q --> LBL[Labels: high/unproven/low]
end
subgraph Routing["Routing"]
AS[Auto Scope] --> PR[Project + Global]
AS --> GR[Global Only]
AS --> AL[All Projects]
end
S --> Trust
W --> RoutingProject Structure
memory-worth-mcp/
├── package.json
├── tsconfig.json
├── .gitignore
├── README.md
├── LICENSE
├── scripts/
│ └── release.js
├── src/
│ ├── mcp-server.ts # McpServer with 13 registerTool calls
│ ├── db/
│ │ └── index.ts # SQLite schema + initialization
│ ├── trust/
│ │ └── index.ts # Wilson score, calibration, quantiles
│ ├── routing/
│ │ └── index.ts # Scope resolution, write detection
│ ├── tools/
│ │ ├── index.ts # Tool registry
│ │ ├── memory-search.ts
│ │ ├── memory-get.ts
│ │ ├── memory-write.ts
│ │ ├── memory-update.ts
│ │ ├── memory-delete.ts
│ │ ├── memory-synthesize.ts
│ │ ├── memory-wakeup.ts
│ │ ├── memory-stats.ts
│ │ ├── memory-tune.ts
│ │ ├── memory-invalidate.ts
│ │ ├── memory-merge.ts
│ │ ├── memory-set-status.ts
│ │ └── memory-list-tools.ts
│ ├── types/
│ │ └── index.ts # TypeScript interfaces
│ └── utils/
│ └── paths.ts # DB path resolution
└── tests/
└── core.test.ts # 15 tests (trust + routing)License
ISC — see LICENSE.
Related
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents: save, search and connect context across tools and sessions.
Memory for AI agent teams across tools, sessions, repositories, and teammates.
MemoryOracle - 10 agent memory tools: vector store, recall, summarization, redaction.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with persistent long-term memory capabilities using semantic search. Enables storing, retrieving, and searching memories through three core tools integrated with Mem0 and vector storage.MIT
- AlicenseBqualityBmaintenanceProvides persistent memory management for AI agents with 14 tools, including semantic search, context synthesis, auto-context middleware, and write-back actions to external services like Slack.18575 npm1MIT

synapse-layerofficial
AlicenseBqualityBmaintenanceMCP-native persistent memory for AI agents. Stores and retrieves encrypted memories with Trust Quotient scoring, cross-agent handover protocol, and immutable audit trail. 13 tools. Remote endpoint available.1320 PyPI13Apache 2.0- AlicenseAqualityCmaintenanceProvides persistent, cross-session memory for AI agents, letting them store, search, and manage memories with tools like remember, recall, forget, list, summarize, and import/export.8MIT