mnemon-mcp

v1.0.1
io.github.nikitacometa/mnemon-mcp Checked 21 hours ago Published 8 months ago

Persistent layered memory for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

memory_add

Add a new memory to the persistent store. Supports 4 cognitive layers: episodic (events/sessions), semantic (facts/concepts), procedural (rules/workflows), resource (reference material). Automatically supersedes previous entries from the same source_file.

ParameterTypeDescription
content *stringThe memory content to store
layer *stringCognitive layer: episodic=events/sessions, semantic=facts/concepts, procedural=rules/workflows, resource=reference material
confidencenumberHow certain this memory is (0.0–1.0, default 0.8)
entity_namestringName of the entity (e.g. 'nikita', 'mnemon-mcp')
entity_typestringEntity this memory is about
event_atstringISO 8601 datetime when the event occurred (episodic layer)
importancenumberRetrieval priority weight (0.0–1.0, default 0.5)
metaobjectAdditional metadata (layer-specific fields)
scopestringProject/context scope (default 'global')
session_idstringSession ID for grouping episodic memories
sourcestringSource identifier (e.g. 'claude-code', 'api')
source_filestringOriginal file path for imports
titlestringOptional short title for the memory
ttl_daysnumberDays until this memory expires (null = never)
valid_fromstringISO 8601 date when this fact becomes valid (null = always valid)
valid_untilstringISO 8601 date when this fact stops being valid (null = no end date)

memory_update

Update an existing memory. Use supersede=true to create a versioned replacement (preserves history chain). Use supersede=false (default) to update fields in place.

ParameterTypeDescription
id *stringID of the memory to update
confidencenumberNew confidence score
contentstringNew content. For in-place update (supersede=false): replaces content directly. For supersede=true: used as fallback if new_content is not provided.
importancenumberNew importance score
metaobjectMetadata fields to merge into existing meta JSON
new_contentstringContent for the superseding entry (used only when supersede=true). Falls back to `content` if omitted.
supersedebooleanWhen true, creates a new entry that supersedes this one (preserves history). When false (default), updates fields in place.
titlestringNew title

memory_delete

Permanently delete a memory by ID. Cleans up superseding chain references: re-activates predecessor if one exists.

ParameterTypeDescription
id *stringID of the memory to permanently delete

memory_inspect

Inspect memory details or layer statistics. Without id: returns aggregate stats per layer (total, active, superseded, avg_confidence, top_entities). With id: returns the full memory row and optionally its history chain.

ParameterTypeDescription
entity_namestringFilter stats by entity name (used when id is omitted)
idstringMemory ID to inspect. When provided, returns the full memory row and optionally its history chain.
include_historybooleanWhen true and id is provided, include the full superseded chain (ancestor entries)
layerstringFilter layer stats by this layer (used when id is omitted)

memory_export

Export memories to JSON, Markdown, or claude-md (compact LLM-optimized) format. Supports filtering by layer, scope, date range. Returns the exported content as a string.

ParameterTypeDescription
format *stringExport format: json (structured), markdown (human-readable), claude-md (compact for LLM context)
date_fromstringFilter: event date (event_at if set, else created_at) >= ISO 8601 date
date_tostringFilter: event date (event_at if set, else created_at) <= ISO 8601 date
include_supersededbooleanInclude superseded (old version) memories (default: false)
layersarrayFilter by memory layers (omit for all)
limitnumberMaximum entries to export (default 1000, max 10000)
scopestringFilter by scope (e.g. 'global', 'project-name')

memory_health

Diagnostic health report on the memory store. Returns expired entries, orphaned superseding chains, stale/never-accessed memories, low-confidence entries, and per-layer stats. Use cleanup=true to garbage-collect expired entries.

ParameterTypeDescription
cleanupbooleanWhen true, garbage-collect expired entries (TTL past due). Default false — report only.