hot-memory-mcp

v0.9.0
io.github.michael-denyer/hot-memory-mcp Checked 2 hours ago Published 21 days ago

Two-tier memory: hot cache (0ms) + semantic search.

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

remember Remember

Store a new memory. Returns the memory ID.

ParameterTypeDescription
content *stringThe content to remember
categorySubcategory within type (e.g., 'decision', 'architecture', 'import', 'command', 'api', 'config'). Helps organize memories.
memory_typestringType: 'project' (project facts), 'pattern' (code patterns), 'reference' (docs), 'conversation' (discussion facts), 'episodic' (session-bound short-term context)
session_idSession ID for conversation provenance tracking
tagsTags for categorization

recall Recall

Semantic search with confidence gating and composite ranking. Modes: - 'precision': High threshold (0.8), few results (3), prioritizes similarity - 'balanced': Default settings, good for general use - 'exploratory': Low threshold (0.5), more results (10), diverse ranking Returns memories with confidence level and hallucination-prevention guidance.

ParameterTypeDescription
query *stringSearch query for semantic similarity
expand_relationsExpand results via knowledge graph (Engram-style associative recall). Related memories are added with decayed scores. None uses config default.
include_relatedbooleanInclude related memories from knowledge graph for top results
limitMax results (overrides mode default)
memory_typeFilter by type: project, pattern, reference
modeRecall mode: 'precision' (high threshold, few results), 'balanced' (default), 'exploratory' (low threshold, more results)
thresholdMin similarity (overrides mode default)

forget Forget

Delete a memory permanently.

ParameterTypeDescription
memory_id *integerID of memory to delete

list_memories List Memories

List stored memories with pagination.

ParameterTypeDescription
limitintegerMaximum results
memory_typeFilter by type
offsetintegerSkip first N results

memory_stats Memory Stats

Get memory statistics.

hot_cache_status Hot Cache Status

Show current hot cache contents, stats, and observability metrics. Returns items sorted by hot_score (highest first), along with: - metrics.hits: Times hot cache resource was read with content - metrics.misses: Times hot cache resource was empty - metrics.evictions: Items removed to make space for new ones - metrics.promotions: Items added to hot cache - effectiveness: Value metrics (hit rate, tool calls saved, most/least used) - avg_hot_score: Average hot score of items (for LRU ranking)

promote Promote

Manually promote a memory to hot cache for instant recall.

ParameterTypeDescription
memory_id *integerID of memory to promote to hot cache

demote Demote

Remove a memory from hot cache (keeps in cold storage).

ParameterTypeDescription
memory_id *integerID of memory to remove from hot cache

pin Pin

Pin a hot cache memory to prevent auto-eviction. Pinned memories stay in hot cache even when space is needed for new items. Only works on memories already in hot cache.

ParameterTypeDescription
memory_id *integerID of hot memory to pin

unpin Unpin

Unpin a memory, making it eligible for auto-eviction from hot cache.

ParameterTypeDescription
memory_id *integerID of memory to unpin

db_maintenance Db Maintenance

Run database maintenance (vacuum, analyze, auto-demote stale). Compacts the database to reclaim unused space, updates query planner statistics, and demotes stale hot memories (if auto_demote is enabled).

mark_memory_used Mark Memory Used

Mark a memory as actually used/helpful after recall. Call this when a recalled memory was useful in your response. Helps improve ranking by tracking which memories are valuable.

ParameterTypeDescription
memory_id *integerID of the memory that was useful
feedbackOptional feedback (e.g., "helpful", "partially_helpful")

bootstrap_project Bootstrap Project

Bootstrap hot cache from project documentation files. Scans for common project documentation files (README.md, CLAUDE.md, etc.), parses them into memories, and optionally promotes to hot cache. This is ideal for quickly populating the hot cache when starting work on a new codebase. Edge cases handled gracefully: - Empty repo: Returns success with files_found=0 and helpful message - No markdown files: Returns success with message - File read errors: Logged in errors list, continues with other files - Empty files: Skipped silently - Binary files: Skipped with warning - All content already exi…

ParameterTypeDescription
file_patternsSpecific files to seed. If not provided, auto-detects: CLAUDE.md, README.md, CONTRIBUTING.md, ARCHITECTURE.md
memory_typestringMemory type for all content
promote_to_hotbooleanPromote all bootstrapped memories to hot cache
root_pathstringProject root directory (default: current directory)
tagsTags to apply to all memories

end_session End Session

End a session and consolidate episodic memories. Mirrors human memory consolidation: short-term (episodic) memories that prove valuable get promoted to long-term (semantic) storage. Top episodic memories are selected by salience score (combining importance, trust, access count, and recency). Only memories above the threshold are promoted. Use this at the end of a conversation to preserve valuable learnings.

ParameterTypeDescription
session_id *stringSession ID to end
promote_topbooleanPromote top episodic memories to long-term storage (default: true)
promote_typeMemory type for promoted memories: 'project' or 'pattern' (default: project)