smritea-mcp

v0.1.15
smritea-mcp Checked 1 hour ago Published 9 days ago

MCP server for smritea AI memory system

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

add_memory

Store a memory in smritea. Call this whenever the user shares a preference, decision, fact about themselves, or anything they would want recalled in a future conversation. Do not wait to be asked — if the user says "I prefer X", "my X is Y", "remember that", or "don't forget", call this immediately. Identity is not configured — run `smritea-mcp configure`. For the user's own memory, leave actor_id, actor_type, and actor_name unset. For a different named person, set actor_name only. Never invent UUIDs or placeholder IDs.

ParameterTypeDescription
content *stringThe memory content to store
actor_idstring | nullActor this memory belongs to. Omit for the user's own memory — it defaults to your configured identity. For another named person, set actor_name and leave this unset (actor_id is auto-derived from t…
actor_nameDisplay name of the actor. For a non-user actor (e.g. "Harry Potter"), set this — actor_id is derived from it. Omit for the user (defaults to your configured name). Max 255 chars.
actor_typeOptional. Defaults to "user". Set "agent" or "system" only for a non-human actor.
conversation_idstring | nullConversation ID to scope this memory to (UUID)
decay_factorRate of relevance decay over time (>=0). 0 = no decay (memory score is pinned permanently). 0.2 = light decay (default). 1.0 = standard. 3.0+ = aggressive.
decay_functionDecay curve shape: "exponential", "gaussian", or "linear". Default: "exponential".
event_occurred_atstring | nullISO-8601 datetime — when this content was created or occurred. Used by the extraction LLM to resolve relative temporal expressions like "last year" or "yesterday". Defaults to current time if omitte…
importanceHow important is this memory (0.0-1.0). Higher = ranks higher in search. Default: 1.0.
metadataOptional key-value metadata
source_typeOrigin of the memory: "conversation", "document", or "api". Defaults to "api" when omitted.

search_memories

Search smritea memories by natural language query. Call this at the start of a new task or topic to surface relevant context — user preferences, past decisions, stated constraints — without waiting for the user to re-explain them. Also call when the user asks "do you remember", "what do you know about", or "remind me". Search is NOT scoped or filtered unless you ask: it never defaults to the configured identity and never filters by actor. Results are scoped only to the selected app plus any filters you explicitly pass. actor_id/actor_name set speaker_actor_id (who is asking, for pronoun re…

ParameterTypeDescription
query *stringNatural language search query
actor_idstring | nullIdentity of WHO is asking (speaker_actor_id) — used only for pronoun resolution and audit, NEVER to filter results. It does NOT restrict search to that actor. Omit to search with no requester identi…
actor_nameDisplay name of the requester, used to derive speaker_actor_id (same slug as add) for pronoun resolution — NOT a filter. Setting it does NOT restrict results to that person. To restrict which memori…
actor_typeOptional. Ignored by search (search does not filter by actor). Kept for parity with add().
conversation_idstring | nullFilter to a specific conversation
from_timestring | nullISO-8601 datetime — start of a time range: memories whose validity period overlaps [from_time, infinity). Can be used alone (open-ended). Cannot be combined with valid_at (e.g. "2024-01-01T00:00:00Z…
graph_depthGraph traversal depth (1-5). Omit to use the system default.
limitNumber of results; must not exceed the server top_n_max (default 20). Omit to use the app top_n.
metadata_filterMongoDB-style operator DSL to filter by memory metadata. Simple equality: {"department": "engineering"}. Range: {"level": {"$gte": 4}}. Logical: {"$and": [{"department": "eng"}, {"level": {"$gt": 3}}]…
participant_idsSearch across conversations where ALL listed actors participated (AND semantics). One ID selects every conversation that actor took part in. Duplicate IDs are ignored; null or an empty list means no p…
source_typeFilter by origin of the memory: "conversation", "document", or "api".
to_timestring | nullISO-8601 datetime — end of a time range (inclusive): memories whose validity period overlaps (-infinity, to_time]. Can be used alone (open-ended). Cannot be combined with valid_at (e.g. "2024-12-31T…
valid_atstring | nullISO-8601 datetime — return memories valid at exactly this moment. Cannot be combined with from_time or to_time.

get_memory

Retrieve a specific memory by its ID. Use when you already have a memory_id from a previous search result and need the full memory object.

ParameterTypeDescription
memory_id *stringThe memory ID to retrieve

delete_memory

Permanently delete a memory by its ID. Use when the user explicitly asks to forget something or says a stored fact is no longer true. This action is irreversible — confirm the memory_id from a search result before deleting.

ParameterTypeDescription
memory_id *stringThe memory ID to delete

select_app

Set the active smritea app. Stores selected_app_id in ~/.smritea/settings.json and provisions an API key if needed. Call this once when setting up smritea in a new project.

ParameterTypeDescription
app_id *stringThe smritea app ID to use for this project
app_namestringOptional display name for the app

list_apps

List Studio apps for the logged-in account. Uses the Studio JWT from ~/.smritea/auth.json to query the control plane.