mnemon-mcp
v1.0.1Persistent 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The memory content to store |
layer * | string | Cognitive layer: episodic=events/sessions, semantic=facts/concepts, procedural=rules/workflows, resource=reference material |
confidence | number | How certain this memory is (0.0–1.0, default 0.8) |
entity_name | string | Name of the entity (e.g. 'nikita', 'mnemon-mcp') |
entity_type | string | Entity this memory is about |
event_at | string | ISO 8601 datetime when the event occurred (episodic layer) |
importance | number | Retrieval priority weight (0.0–1.0, default 0.5) |
meta | object | Additional metadata (layer-specific fields) |
scope | string | Project/context scope (default 'global') |
session_id | string | Session ID for grouping episodic memories |
source | string | Source identifier (e.g. 'claude-code', 'api') |
source_file | string | Original file path for imports |
title | string | Optional short title for the memory |
ttl_days | number | Days until this memory expires (null = never) |
valid_from | string | ISO 8601 date when this fact becomes valid (null = always valid) |
valid_until | string | ISO 8601 date when this fact stops being valid (null = no end date) |
memory_search
Full-text search across all memory layers using FTS5. Supports layer/entity/date/scope filtering. Returns scored results with snippets. Superseded entries excluded by default.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query — free text, tokenized for FTS5 |
as_of | string | ISO 8601 date to filter temporal facts. Only returns memories where valid_from <= as_of and valid_until >= as_of (nulls treated as unbounded). |
date_from | string | Filter by event date (event_at if set, else created_at) >= ISO 8601 datetime |
date_to | string | Filter by event date (event_at if set, else created_at) <= ISO 8601 datetime |
entity_name | string | Filter by entity name (exact match, supports aliases) |
include_superseded | boolean | Include superseded (outdated) memories in results (default false) |
layers | array | Filter by memory layers (default: all layers) |
limit | number | Maximum results to return (default 10, max 100) |
min_confidence | number | Minimum confidence threshold |
min_importance | number | Minimum importance threshold |
mode | string | Search mode: fts=FTS5 tokenized (default), exact=LIKE substring, vector=embedding similarity (requires MNEMON_EMBEDDING_PROVIDER), hybrid=FTS5+vector with RRF fusion |
offset | number | Number of results to skip (for pagination, default 0) |
scope | string | Filter by scope (exact match) |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | ID of the memory to update |
confidence | number | New confidence score |
content | string | New content. For in-place update (supersede=false): replaces content directly. For supersede=true: used as fallback if new_content is not provided. |
importance | number | New importance score |
meta | object | Metadata fields to merge into existing meta JSON |
new_content | string | Content for the superseding entry (used only when supersede=true). Falls back to `content` if omitted. |
supersede | boolean | When true, creates a new entry that supersedes this one (preserves history). When false (default), updates fields in place. |
title | string | New title |
memory_delete
Permanently delete a memory by ID. Cleans up superseding chain references: re-activates predecessor if one exists.
| Parameter | Type | Description |
|---|---|---|
id * | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
entity_name | string | Filter stats by entity name (used when id is omitted) |
id | string | Memory ID to inspect. When provided, returns the full memory row and optionally its history chain. |
include_history | boolean | When true and id is provided, include the full superseded chain (ancestor entries) |
layer | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
format * | string | Export format: json (structured), markdown (human-readable), claude-md (compact for LLM context) |
date_from | string | Filter: event date (event_at if set, else created_at) >= ISO 8601 date |
date_to | string | Filter: event date (event_at if set, else created_at) <= ISO 8601 date |
include_superseded | boolean | Include superseded (old version) memories (default: false) |
layers | array | Filter by memory layers (omit for all) |
limit | number | Maximum entries to export (default 1000, max 10000) |
scope | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
cleanup | boolean | When true, garbage-collect expired entries (TTL past due). Default false — report only. |