hot-memory-mcp
v0.9.0Two-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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The content to remember |
category | Subcategory within type (e.g., 'decision', 'architecture', 'import', 'command', 'api', 'config'). Helps organize memories. | |
memory_type | string | Type: 'project' (project facts), 'pattern' (code patterns), 'reference' (docs), 'conversation' (discussion facts), 'episodic' (session-bound short-term context) |
session_id | Session ID for conversation provenance tracking | |
tags | Tags 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query for semantic similarity |
expand_relations | Expand results via knowledge graph (Engram-style associative recall). Related memories are added with decayed scores. None uses config default. | |
include_related | boolean | Include related memories from knowledge graph for top results |
limit | Max results (overrides mode default) | |
memory_type | Filter by type: project, pattern, reference | |
mode | Recall mode: 'precision' (high threshold, few results), 'balanced' (default), 'exploratory' (low threshold, more results) | |
threshold | Min similarity (overrides mode default) |
forget Forget
Delete a memory permanently.
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID of memory to delete |
list_memories List Memories
List stored memories with pagination.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum results |
memory_type | Filter by type | |
offset | integer | Skip 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.
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID of memory to promote to hot cache |
demote Demote
Remove a memory from hot cache (keeps in cold storage).
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID 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.
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID of hot memory to pin |
unpin Unpin
Unpin a memory, making it eligible for auto-eviction from hot cache.
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID 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).
link_memories Link Memories
Create a typed relationship between two memories. Use this to build a knowledge graph connecting related concepts. Relationships are directional: from_memory -[relation_type]-> to_memory. Examples: - "Python 3.12 features" -[supersedes]-> "Python 3.11 features" - "Auth implementation" -[depends_on]-> "Database schema" - "API endpoint details" -[elaborates]-> "API overview" - "Project notes" -[mentions]-> "PostgreSQL" (entity extraction)
| Parameter | Type | Description |
|---|---|---|
from_memory_id * | integer | Source memory ID |
relation_type * | string | Relationship type: 'relates_to' (general), 'depends_on' (prerequisite), 'supersedes' (replaces), 'refines' (more specific), 'contradicts' (conflict), 'elaborates' (more detail), 'mentions' (references… |
to_memory_id * | integer | Target memory ID |
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.
| Parameter | Type | Description |
|---|---|---|
memory_id * | integer | ID of the memory that was useful |
feedback | Optional 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…
| Parameter | Type | Description |
|---|---|---|
file_patterns | Specific files to seed. If not provided, auto-detects: CLAUDE.md, README.md, CONTRIBUTING.md, ARCHITECTURE.md | |
memory_type | string | Memory type for all content |
promote_to_hot | boolean | Promote all bootstrapped memories to hot cache |
root_path | string | Project root directory (default: current directory) |
tags | Tags 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.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session ID to end |
promote_top | boolean | Promote top episodic memories to long-term storage (default: true) |
promote_type | Memory type for promoted memories: 'project' or 'pattern' (default: project) |