longterm-memory
v1.6.1A fully local MCP server for long-term memory with semantic search
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
save_memory
Save information to long-term memory. The content will be embedded locally and indexed for semantic search. Use this to store facts, decisions, preferences, or any context worth remembering across sessions. Text inside <private>…</private> is removed before storing; content that looks like a secret (tokens, keys, passwords) is rejected.
| Parameter | Type | Description |
|---|---|---|
content * | string | The text content to store in memory |
importance | number | Importance level 1-10 (default: 5). Higher = more resistant to decay |
memory_type | string | Memory category (default: general). Affects decay rate |
metadata | object | Optional key-value metadata to attach to this memory (e.g. { "topic": "auth", "project": "api" }) |
tags | array | Optional tags for categorization (e.g. ["personal", "preference"]) |
search_memory
Search long-term memory using semantic similarity. The query is embedded locally and compared against all stored memories using cosine similarity.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language search query describing what you're looking for |
limit | integer | Maximum number of results to return (default: 5) |
threshold | number | Minimum similarity score threshold, 0-1 (default: 0.3) |
get_all_memories
Retrieve all stored memories, ordered by most recent first. Results are paginated.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of memories to return (default: 50) |
offset | integer | Number of memories to skip for pagination (default: 0) |
update_memory
Update an existing memory. Can modify content (triggers re-embedding), metadata, tags, importance, or memory type.
| Parameter | Type | Description |
|---|---|---|
id * | string | The UUID of the memory to update |
content | string | New text content (triggers re-embedding) |
importance | number | New importance level 1-10 |
memory_type | string | New memory category |
metadata | object | New metadata object |
tags | array | New tags array |
search_by_type
Search memories by category type (e.g. fact, preference, conversation). Returns memories ordered by importance.
| Parameter | Type | Description |
|---|---|---|
memory_type * | string | The memory type to filter by |
limit | integer | Maximum number of results (default: 20) |
search_by_tags
Find memories that match any of the provided tags. Returns memories ordered by importance.
| Parameter | Type | Description |
|---|---|---|
tags * | array | Tags to search for — matches memories containing ANY of these tags |
limit | integer | Maximum number of results (default: 20) |
search_by_date_range
Find memories created within a specific date range. Use ISO date format.
| Parameter | Type | Description |
|---|---|---|
date_from * | string | Start date in ISO format (e.g. "2026-01-01" or "2026-01-01T00:00:00Z") |
date_to | string | End date in ISO format (defaults to now) |
limit | integer | Maximum number of results (default: 50) |
delete_memory
Delete a specific memory by its ID. Only delete when the user explicitly requests it or when a memory is confirmed outdated or incorrect.
| Parameter | Type | Description |
|---|---|---|
id * | string | The UUID of the memory to delete |
delete_all_memories
Delete ALL stored memories. This action is irreversible. Only use when the user explicitly asks to clear all memories.
memory_stats
Get statistics about the memory store — total count and database location.
create_backup
Create a manual backup of the memory database and export all memories as JSON.