smriti-mcp
v0.1.5A portable markdown memory MCP server for any agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_memory
Create a durable markdown memory for facts, decisions, preferences, or project context that should survive beyond the current chat.
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown body of the memory. Use wikilinks like [[Other Memory]] to relate notes. |
meta * | Structured metadata used for naming, grouping, filtering, and retrieval. | |
id | Optional stable memory id such as 'project/Deploy Workflow'. If omitted, Smriti creates one from category and title. |
get_memory
Retrieve a memory note by id and return its complete markdown with YAML frontmatter.
| Parameter | Type | Description |
|---|---|---|
id * | string | Memory id returned by create_memory, for example 'project/Deploy Workflow'. |
append_memory
Append new markdown to an existing memory while preserving its current content and updating the modified timestamp.
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown content to append to the end of the memory. |
id * | string | Memory id to append to. |
update_memory
Patch memory metadata and optionally replace the full markdown body. Use append_memory when adding incremental observations.
| Parameter | Type | Description |
|---|---|---|
id * | string | Memory id to update. |
content | Replacement markdown body. Leave null to preserve existing content. | |
meta | Partial metadata changes. Omitted fields keep their existing values. |
archive_memory
Mark a memory as archived without deleting its markdown file.
| Parameter | Type | Description |
|---|---|---|
id * | string | Memory id to mark as archived. |
delete_memory
Permanently delete a memory note by id.
| Parameter | Type | Description |
|---|---|---|
id * | string | Memory id to permanently delete. |
list_memories
List memory metadata for browsing or filtering without returning full note bodies. Use search_memory when you need relevance ranking.
| Parameter | Type | Description |
|---|---|---|
category | Optional category filter. | |
limit | integer | Maximum number of memories to return. |
status | Optional lifecycle status filter, such as 'active' or 'archived'. | |
tags | Optional tags that every returned memory must contain. |
search_memory
Search durable memories with relevance ranking over title, aliases, tags, path, description, and body terms.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search terms, phrase, or topic to retrieve relevant memories for. |
filters | Optional exact-match metadata filters applied before ranking. | |
include_content | boolean | When true, include full markdown content in each result; set false to save context. |
limit | integer | Maximum number of ranked results to return. |
record_trace
Record an append-only memory trace for shared agent experience. Traces are raw observations that agents can later consolidate into durable memories.
| Parameter | Type | Description |
|---|---|---|
content * | string | Raw trace content or observation to preserve. |
agent | Agent identity writing the trace, for example codex or claude. | |
memory_id | Related memory id, if this trace concerns an existing memory. | |
metadata | Additional structured trace metadata. | |
salience | Optional importance from 0 to 1. | |
scope | Structured scope for the trace, such as project or repository. | |
type | string | Trace event type such as observed, recalled, remembered, or consolidated. |
remember
Agent-friendly write API that records a trace and deterministically chooses whether to create a new memory or append to a strongly matching existing memory.
| Parameter | Type | Description |
|---|---|---|
content * | string | Memory content the agent believes should persist. |
category | string | Category to use when a new memory is created. |
confidence | Optional confidence label for a new memory. | |
id | Target memory id required for explicit append or update modes. | |
memory_type | Optional human-memory class such as episodic, semantic, procedural, or preference. | |
meta | Optional metadata for precise memory creation; supplied fields are authoritative. | |
mode | string | Write mode: auto, create, append, or update. |
salience | Optional importance from 0 to 1. | |
scope | Optional structured scope used for matching and new metadata. | |
source_agent | Agent identity writing the memory. | |
tags | Optional tags for a new memory. | |
title | Optional title for a new memory or matching existing memories. |
recall_context
Return a compact, deterministic recall bundle for an agent task using lexical match, metadata, salience, access history, status, and optional wikilink traversal.
| Parameter | Type | Description |
|---|---|---|
query * | string | Task, question, or situation to recall memory for. |
filters | Optional metadata filters for recall. | |
follow_links | boolean | When true, include nearby wikilink and backlink memories. |
include_archived | boolean | When true, archived and superseded memories may be included. |
limit | integer | Maximum number of memories to include. |
mark_accessed | boolean | When true, update access metadata for recalled memories. |
token_budget | integer | Approximate maximum recall context token budget. |
mark_accessed
Mark a memory as accessed, updating last_accessed_at, access_count, and salience.
| Parameter | Type | Description |
|---|---|---|
id * | string | Memory id to reinforce as recently accessed. |
suggest_consolidation
Suggest groups of raw traces that may deserve consolidation. Smriti does not summarize them; the agent decides the final memory content.
| Parameter | Type | Description |
|---|---|---|
agent | Optional agent identity to filter trace files. | |
limit | integer | Maximum number of consolidation groups to return. |
scope | Optional scope filter for trace grouping. | |
since | Optional ISO timestamp; ignore traces older than this. |
consolidate_memory
Create, append, or update a durable memory from agent-supplied consolidated content. Use after reviewing traces; Smriti records provenance but does not summarize content itself.
| Parameter | Type | Description |
|---|---|---|
content * | string | Final markdown memory content supplied by the agent. |
meta * | Metadata for the consolidated memory. | |
id | Optional target memory id for create, append, or update. | |
mode | string | Consolidation mode: create, append, or update. |
trace_ids | Trace ids that support this consolidation. |
supersede_memory
Mark one memory as superseded by another while preserving both markdown files.
| Parameter | Type | Description |
|---|---|---|
new_id * | string | Memory id that replaces or supersedes the old memory. |
old_id * | string | Memory id that is no longer current. |
reason | Optional explanation appended to the superseded memory. |
review_memory_health
Review memory store health by reporting duplicate titles, stale active memories, oversized notes, and unresolved wikilinks without modifying files.
build_memory_index
Build or refresh the human-readable markdown memory index at index.md.
| Parameter | Type | Description |
|---|---|---|
group_by_category | boolean | When true, group index entries under category headings. |
rebuild_memory
Repair and rebuild the memory store: optionally fix frontmatter, apply or normalize wikilinks from memory titles and aliases using longest matches first, then rebuild index.md and index.yaml.
| Parameter | Type | Description |
|---|---|---|
apply_wikilinks | boolean | When true, add and normalize wikilinks based on memory titles and aliases. |
dry_run | boolean | When true, report proposed frontmatter and wikilink changes without writing files or indexes. |
fix_frontmatter | boolean | When true, repair missing or malformed required frontmatter fields before indexing. |
group_by_category | boolean | When true, group generated index.md entries under category headings. |
load_memory_index
Load the generated markdown memory index, optionally refreshing it first.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean | When true, rebuild index.md before returning it. |