Memovyn
Integrates an optional local Ollama model as a hybrid classifier to provide multi-language guidance and smarter taxonomy label hints, with automatic fallback to pure algorithmic mode.
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.
Memovyn
Memovyn is a local-first, MCP-native permanent memory framework for coding agents. It gives Claude Code, Cursor, Codex, and any MCP-compatible tool a persistent project brain with structured taxonomy, explainable ranking, reinforcement learning, strategic forgetting, and high-speed recall.
Memovyn v0.2 is the Node.js 20 + TypeScript edition. The project now runs on a stable LTS Node runtime while preserving the same high-performance philosophy:
fearfully fast taxonomy and search
local-first SQLite persistence
reinforcement, priors, and avoid-pattern learning
progressive disclosure for token efficiency
premium dashboard and MCP-native workflows
Why Memovyn?
Developers are tired of agents forgetting everything between sessions, repeating old mistakes, and bloating context with unusable memory.
Memovyn is built to solve that directly:
Local-first by default: your memory stays on disk, in your control.
Taxonomy-native: memories are decomposed into semantic, domain, activity, artifact, lifecycle, privacy, and language dimensions.
Explainable: every memory can be inspected with labels, relations, provenance, and version history.
Learning-driven: reinforced patterns become project priors, repeated failures become durable avoid rules, and low-value memories can be archived.
MCP-native: one codebase powers CLI, MCP stdio, MCP HTTP, dashboard, and release packaging.
Related MCP server: Cortex
Why It Beats Typical Memory Layers
Capability | Memovyn | Mem0 / Letta / Zep / vector-only memory |
Local-first persistence | Native | Often partial or cloud-first |
Structured taxonomy | Multi-dimensional and explainable | Usually flat or embedding-driven |
Learning loop | Reinforcement, priors, avoid-rules, forgetting | Often weak or manual |
Debuggability | Signals, provenance, versions, health report | Often opaque |
Token efficiency | Progressive disclosure with explicit estimator | Frequently context-heavy |
MCP-native workflow | First-class | Usually wrapper-level |
Feature Highlights
Permanent Project Memory
isolated memory containers keyed by
project_idSQLite-backed persistence across sessions and reboots
optional cross-project sharing
export/import and version history
World-Class Taxonomy Engine
20-50 labels per memory
3-5 level hierarchy
high-precision alias matching
BM25-style prototype scoring
prefix-trie clustering
relation inference and debug traces
strong project priors and solidified priors
Optional Memovyn_0.1B Hybrid Classifier Hook
local Ollama integration
multi-language guidance and smarter label hints
safe fallback to pure-algorithm mode
deterministic taxonomy remains the final authority
Reinforcement And Strategic Forgetting
weighted feedback
adaptive decay tuned by project activity
consolidated avoid-patterns for repeated regressions
cross-project influence for shared memories
configurable forgetting policy:
offconservativebalancedaggressive
Analytics And Operator UX
token savings estimator
Memory Health Score
Learning Impact Score
Agent Evolution Timeline
most recalled, reinforced, punished, and impactful memories
conflict heatmaps and proactive suggestions
Project Memory Health Report export in Markdown
dashboard dark mode and better loading states
Retrieval Model
progressive disclosure:
index cards
summary layer
timeline layer
detail layer
broad-query fast path for large corpora
active shortlist ranking for cold high-density queries
cached project priors and query plans
Installation
Option 1: Use Release Binary
Download the latest platform artifact from GitHub Releases and extract the release bundle.
Linux / macOS bundles include a memovyn launcher script:
chmod +x memovyn
./memovyn --helpWindows bundles include memovyn.cmd:
.\memovyn.cmd --helpNote:
The Node 20 release lane currently ships stable bundles, not native single-file executables.
Each bundle includes the launcher, runtime files, assets, docs, and dependencies needed to run Memovyn reliably.
Option 2: Build From Source
Requirements:
Node.js 20 LTS
npm 11+
Clone and install:
git clone https://github.com/byte271/memovyn.git
cd memovyn
npm installRun local validation:
npm run typecheck
npm test
npm run buildData Directory
By default Memovyn stores local state under ./.memovyn.
Override it with:
MEMOVYN_DATA_DIR=/path/to/dataOptional Ollama Hook
Enable the hybrid classifier:
MEMOVYN_CLASSIFIER_MODE=ollama
MEMOVYN_OLLAMA_BASE_URL=http://127.0.0.1:11434
MEMOVYN_OLLAMA_MODEL=memovyn_0.1b
MEMOVYN_OLLAMA_TIMEOUT_MS=350If Ollama is unavailable or the model does not respond correctly, Memovyn falls back to pure-algorithm mode automatically.
Strategic Forgetting Policy
MEMOVYN_FORGETTING_POLICY=balancedSupported values:
offconservativebalancedaggressive
Quick Start
Add a memory:
npx tsx src/cli.ts add memovyn-core "We chose SQLite WAL mode and BM25 retrieval for project memory search."Search memories:
npx tsx src/cli.ts search memovyn-core "sqlite retrieval" --limit 5Get ready-to-inject project context:
npx tsx src/cli.ts context memovyn-coreReflect on a result:
npx tsx src/cli.ts reflect memovyn-core "Regression came from forgetting to update the postings index after insert." --outcome regressionApply explicit feedback:
npx tsx src/cli.ts feedback 0195f7f4-8aa7-7ad0-8b8d-9a6b3d5c31fe --outcome success --weight 1.25Inspect a memory:
npx tsx src/cli.ts inspect 0195f7f4-8aa7-7ad0-8b8d-9a6b3d5c31feArchive a low-value memory:
npx tsx src/cli.ts archive 0195f7f4-8aa7-7ad0-8b8d-9a6b3d5c31feGenerate a Project Memory Health Report:
npx tsx src/cli.ts analytics memovyn-core --markdownMCP Bindings
Memovyn exposes:
add_memorysearch_memoriesget_project_contextreflect_memoryfeedback_memoryget_project_analyticsarchive_memory
Claude Code
Use examples/claude-code.mcp.json:
{
"mcpServers": {
"memovyn": {
"command": "memovyn",
"args": ["mcp-stdio"],
"env": {
"MEMOVYN_DATA_DIR": ".memovyn"
}
}
}
}Cursor
Codex
MCP HTTP Server
Run:
npx tsx src/cli.ts serve --bind 127.0.0.1:7761Endpoints:
Dashboard: http://localhost:7761
MCP HTTP: http://localhost:7761/mcp
Dashboard
The dashboard includes:
project cards
taxonomy heatmaps
relation summaries
top recalled, reinforced, punished, and impactful memories
conflict and evolution views
token savings estimator
Memory Health Score
Learning Impact Score
Project Memory Health Report export
provenance-rich inspection
one-click reinforce, punish, archive, and inspect actions
dark mode toggle
Architecture Overview
Storage Layer
SQLite via Node’s built-in
node:sqliteproject containers with share-scope flags
feedback event history
version snapshots
recall and token-savings tracking
Taxonomy Layer
alias matching and prototype scoring
relation inference
solidified priors and avoid-pattern feedback
optional model guidance merged into deterministic ranking
Search Layer
in-memory inverted index
precomputed ranking hints
broad-query shortlist path
query caching
progressive disclosure output
Learning Layer
weighted reinforcement
adaptive decay
strategic forgetting
cross-project influence
proactive suggestions and reconciliation hints
Interface Layer
CLI
MCP stdio
MCP HTTP
dashboard
Markdown health reports
Performance
Measured Locally During Migration
Scenario | Add Avg | Add p95 | Search Avg | Search p95 |
1,000 memories |
|
|
|
|
5,000 memories |
|
|
|
|
200k simulation | n/a | n/a |
|
|
200k simulation details:
insert=1.9562049s
cold_broad_ms=7.249
search_avg_ms=7.062
search_p95_ms=8.491Analytics on the benchmark project:
estimated_tokens_per_recall=323
memory_health_score=85Build, Test, And Release
Local Validation
npm run typecheck
npm test
npm run buildQuick Runtime Smoke Tests
node --experimental-strip-types src/cli.ts
node --experimental-strip-types src/cli.ts add demo "We decided to use SQLite and BM25 for project memory search."
node --experimental-strip-types src/cli.ts search demo sqlite --limit 5Build Release Bundle
npm run build
npm run package:bundleCross-Platform CI
GitHub Actions CI is defined in ci.yml and builds on:
Linux
macOS
Windows
Each runner:
installs Node.js 20
installs dependencies
runs typecheck
runs tests
builds the bundle
prunes dev dependencies
packages a release bundle
uploads the release artifact
Artifact naming:
memovyn-linux-x86_64-bundlememovyn-macos-x86_64-bundlememovyn-windows-x86_64-bundle
Real-World Usage Recommendations
Memovyn works best when used as the project memory system of record for an agent team.
Recommended pattern:
Save architecture decisions and constraints early.
Reflect on failures immediately with
reflectorfeedback.Reinforce decisions that repeatedly prove correct.
Review the Project Memory Health Report regularly.
Enable the Ollama hook only when you want stronger multi-language hints or hybrid decomposition.
Choose a forgetting policy deliberately:
offfor sensitive or very small projectsconservativefor early-stage teamsbalancedfor most production useaggressivefor high-churn large projects
Contributing
See CONTRIBUTING.md.
Changelog
See CHANGELOG.md.
License
MIT
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, knowledge graph, task management and more for AI agents via MCP.
Hosted MCP memory for coding agents: persistent across sessions, editable markdown, team sharing.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides persistent memory for AI coding agents via MCP, enabling agents to store and semantically recall facts, events, and lessons across sessions, all running locally without cloud dependencies.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to maintain a private, local-first persistent memory by automatically saving, searching, and retrieving structured project memories through MCP, with hybrid keyword and embedding search, feedback-driven ranking, and no cloud dependency.2MIT
- FlicenseNot gradedqualityAmaintenanceProvides local-first, cross-session persistent memory that lets AI coding agents store, semantically search, and recall project-specific and cross-project knowledge via MCP tools and resources, with an optional task queue for autonomous execution.-
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store, search, and recall persistent project and cross-project memories locally over MCP, keeping architectural decisions, conventions, and error patterns available across sessions. Also optionally exposes a task server for autonomous task execution driven by that same memory store.-