Skip to main content
Glama

kiro-recall

Kiro CLI용 로컬 MCP 메모리 서버로, AI 어시스턴트에게 세션을 넘어 지속되는 의미론적 메모리를 제공합니다.

Kiro Crew의 메모리 아키텍처에서 영감을 받아 — SQLite + Ollama 임베딩을 사용하는 가볍고 자족적인 시스템으로 재구현했으며, Obsidian을 사람이 읽을 수 있는 동기화 대상으로 사용합니다.

기능

  • 의미론적 메모리 — 구조화된 키-값 사실 (pref.editor: Neovim, project.active: MyProject)

  • 일화적 메모리 — 시간이 지나며 감쇠하는 대화 조각 (~23일 반감기)

  • 교훈 — 모든 다른 메모리를 덮어쓰는 수정 사항 및 규칙 (최우선 순위)

  • 의미론적 회상 — Qwen3-Embedding을 통한 벡터 유사도 검색 (1024차원, 로컬 실행)

  • Obsidian 동기화 — 그래프 탐색을 위해 [[wikilinks]]가 포함된 마크다운으로 메모리 렌더링

Related MCP server: tartarus-mcp

아키텍처

┌──────────────────────────────────────────┐
│  Kiro CLI / any MCP client               │
│  Tools: Remember, Recall, Learn, Forget  │
└──────────────┬───────────────────────────┘
               │ stdio (MCP protocol)
       ┌───────▼───────┐          ┌─────────────────┐
       │  memory.db    │  sync →  │  Obsidian Vault  │
       │  (SQLite)     │          │  (Markdown)      │
       └───────┬───────┘          └─────────────────┘
               │
       ┌───────▼───────┐
       │  Ollama       │
       │  qwen3-embed  │
       │  (localhost)   │
       └───────────────┘

요구 사항

  • macOS 또는 Linux

  • Python 3.10+

  • Ollama (로컬 임베딩용)

  • uv (권장) 또는 pip

설치

git clone https://github.com/YOUR_USERNAME/kiro-recall.git
cd kiro-recall
bash install.sh

설치 스크립트는 다음을 수행합니다:

  1. Ollama 설치 (없으면) 및 서비스로 시작

  2. qwen3-embedding:0.6b 모델 다운로드

  3. Python venv 생성 및 의존성 설치

  4. MCP 서버 구성을 ~/.kiro/settings/mcp.json에 설치

  5. 스티어링 파일을 ~/.kiro/steering/obsidian-memory.md에 설치

  6. 기존 Obsidian 볼트에서 메모리 시드 (선택 사항)

수동 설정

설치 스크립트를 사용하지 않으려면:

# 1. Install Ollama and the embedding model
brew install ollama  # or: curl -fsSL https://ollama.com/install.sh | sh
brew services start ollama
ollama pull qwen3-embedding:0.6b

# 2. Create venv and install deps
uv venv .venv
uv pip install "mcp[cli]>=1.0.0" "httpx>=0.27.0"

# 3. Copy to ~/.kiro/memory
mkdir -p ~/.kiro/memory
cp server.py db.py embed.py obsidian_sync.py ~/.kiro/memory/

# 4. Add to MCP config (see install.sh for the JSON patch)

MCP 도구

도구

설명

Remember

사실, 일화 또는 교훈 저장

Recall

모든 메모리에 대한 의미론적 검색

Learn

우선순위가 높은 수정/규칙 저장

Forget

키 또는 ID로 메모리 제거

MemoryStats

메모리 계층별 개수 표시

메모리 계층

계층

우선순위

감쇠

사용 사례

교훈

최상위

없음

"항상 wikilinks 사용", "지역을 가정하지 말 것"

의미론적

높음

없음 (제자리에서 업데이트)

사용자/프로젝트에 대한 구조화된 사실

일화적

중간

exp(-0.03 × days)

대화 조각, 결정

키 형식

  • pref.* — 사용자 선호도 (pref.theme, pref.voice, pref.editor)

  • project.* — 활성 프로젝트 (project.active, project.stack)

  • user.* — 사용자 사실 (user.role, user.company, user.tools)

Obsidian 동기화

수동으로 또는 cron을 통해 실행:

~/.kiro/memory/.venv/bin/python ~/.kiro/memory/obsidian_sync.py

출력:

  • Memory/Semantic.md — 접두사별로 그룹화된 모든 사실

  • Memory/Lessons.md — 카테고리별로 그룹화된 수정 사항

  • Sessions/YYYY-MM-DD.md — 오늘의 일화적 메모리

구성

환경 변수로 Obsidian 볼트 경로를 설정합니다 (설치 중 프롬프트, ~/.kiro/memory/.env에 저장):

export KIRO_MEMORY_VAULT="$HOME/Documents/Obsidian/My Vault"

기본값은 ~/Documents/Obsidian/Kiro Knowledge Base입니다.

Ollama 엔드포인트는 embed.py에서 설정됩니다:

OLLAMA_URL = "http://localhost:11434/api/embed"
MODEL = "qwen3-embedding:0.6b"

라이선스

MIT

Available Tools

6 tools
ForgetA

Remove a memory.

Args: memory_type: One of 'semantic', 'episodic', or 'lesson'. identifier: The key (for semantic) or ID number (for episodic/lesson).

ParametersJSON Schema
NameRequiredDescriptionDefault
identifierYes
memory_typeYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It correctly signals a destructive operation via 'Remove', but does not disclose permanence, reversibility, failure behavior, or any side effects. The parameter details add some context, but behavioral transparency remains minimal for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured, with a one-line purpose statement and a clear Args block. Every sentence adds value and there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter delete tool, the description covers the essential invocation details: what to remove and how to identify it. An output schema exists, so return-value documentation is not required. The lack of alternative-selection guidance is the only notable gap, though it is more a usage-guideline concern.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description fully compensates by enumerating valid memory_type values ('semantic', 'episodic', 'lesson') and clarifying that identifier is a key or ID number depending on type. This is exactly the semantic content an agent needs beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Remove a memory') with a specific verb and resource. It is distinct from Remember (add), Recall (retrieve), and MemoryStats (inspect), but does not explicitly differentiate itself from the sibling PruneMemory, which also removes memories.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use Forget versus PruneMemory or other siblings. The description explains parameters but provides no context for selecting this tool over alternatives, nor any prerequisites or caveats.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

LearnA

Store a correction or rule that should always be followed.

These have the highest priority and override other memories.

Args: rule: The rule or correction. e.g. "Always use wikilinks when writing to Obsidian" category: One of 'preference', 'tool', 'knowledge'. Default 'preference'.

ParametersJSON Schema
NameRequiredDescriptionDefault
ruleYes
categoryNopreference

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses a key behavioral trait: learned rules have highest priority and override other memories. However, it does not explain side effects, whether prior conflicting rules are overwritten or merely deprioritized, persistence duration, or how removal works.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the core purpose and priority behavior, followed by an efficient Args section. Every sentence earns its place with no redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool, the description covers purpose, priority behavior, and parameter semantics. It does not explain how it relates to sibling tools like Remember, but the presence of an output schema reduces the need to describe return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates fully. It defines 'rule' with an instructive example and 'category' with its allowed values and default. This gives an agent everything needed to fill both parameters correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Store' and the resource 'correction or rule', and it adds the defining trait that these entries have highest priority and override other memories. This distinguishes Learn from the sibling Remember behaviorally, though it does not name the alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this tool is for storing persistent corrections or rules that must always be followed, but it does not explicitly state when to use Learn versus Remember or when not to use it. Usage must be inferred from the stated priority semantics rather than directly guided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

MemoryStatsA

Show memory statistics — counts, age, and decay health per memory tier.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. 'Show' implies a read-only inspection, and the description names the reported dimensions (counts, age, decay health, tier). It does not disclose potential side effects, whether decay health calculations are triggered, or any access/cost implications, but for a read-style stats tool this is a reasonable baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, tight sentence that front-loads the action and then specifies the meaningful output categories. No filler, no repetition of the tool name, and every word contributes to understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter statistics tool, the description is largely complete: it names the resource and the specific metrics reported. The presence of an output schema helps cover return details. Minor room for improvement would be stating whether this is a pure read operation or if it can trigger decay calculations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters and the schema is empty, matching the description. With no parameters to document, the description adds value by clarifying what each result category covers, which is all that is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Show'), a clear resource ('memory statistics'), and detailed specifics ('counts, age, and decay health per memory tier'). It is clearly distinct from the sibling tools, which perform actions like remembering, recalling, forgetting, or pruning rather than reporting statistics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The intended use is implied: call this when you need memory statistics rather than performing a memory operation. However, it does not explicitly state when to use it versus alternatives, nor does it provide any exclusion conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

PruneMemoryA

Hard-delete decayed and soft-deleted episodic memories.

Removes soft-deleted rows and any active episodic rows whose maximum possible decay score has fallen below score_floor (~115 days at default).

Args: score_floor: Rows with max possible decay score below this are removed. Default 0.05. Set lower (e.g. 0.01) to be more conservative.

ParametersJSON Schema
NameRequiredDescriptionDefault
score_floorNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states the operation is a hard delete, defines the exact selection rule (max possible decay score below score_floor), and even translates the default into a time estimate (~115 days). It does not mention side effects like return counts, but the output schema covers return structure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: the first sentence states the purpose, and the following lines explain the selection rule and parameter without redundancy. Every sentence earns its place, and the Args block is clearly formatted for quick scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with an output schema and no annotations, the description covers purpose, destructive behavior, selection criteria, and parameter semantics well. The only notable gap is explicit guidance on when to invoke this tool relative to sibling tools like Forget, but the core operational context is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema only gives type and default for score_floor, with 0% schema description coverage. The description fully compensates with a dedicated Args section explaining what score_floor controls, the default value, and how to adjust it for a more conservative prune. This exceeds what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening phrase 'Hard-delete decayed and soft-deleted episodic memories' names a specific verb (hard-delete), a clear resource (episodic memories), and a precise scope (decayed and soft-deleted). This clearly distinguishes the operation from generic memory operations and from siblings like Recall or MemoryStats.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this is a maintenance/cleanup operation for removing decayed or already-soft-deleted rows, but it never explicitly states when to use PruneMemory versus alternatives such as Forget. There are no exclusions or routing hints to sibling tools, only parameter-tuning guidance ('Set lower to be more conservative').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

RecallA

Search memory by semantic similarity.

Args: query: What to search for. Can be a question, topic, or keyword. memory_type: One of 'all', 'semantic', 'episodic', or 'lessons'. limit: Max results to return. Default 10. score_threshold: Minimum similarity score (0.0–1.0) to include a result. Applied to semantic cosine scores and episodic decay scores. Default 0.35. Set to 0.0 to disable filtering. category: Filter lessons by category (e.g. 'preference', 'tool', 'knowledge'). Only applied when memory_type includes lessons. Empty string returns all.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
categoryNo
memory_typeNoall
score_thresholdNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description carries the burden of disclosing behavior, and it does so well by explaining how score_threshold applies to semantic cosine and episodic decay scores, and how category only affects lessons. It stops short of explicitly stating side-effect-free behavior, but 'Search' and the parameter semantics strongly imply a read-only operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized: a one-sentence summary followed by a tight, informative arg list. Every line adds value, and defaults are included inline, making it easy to scan without unnecessary prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the technical complexity of the tool and the complete lack of schema-level descriptions or annotations, the description covers all essential aspects: query semantics, filtering modes, threshold behavior, and conditional category logic. Since an output schema exists, omitting return-value details is acceptable and does not detract from completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides no descriptions, so the description fully compensates by explaining every parameter, including valid memory_type values, defaults, threshold semantics, and conditional category filtering. This is exemplary semantic enrichment beyond the raw input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Search memory by semantic similarity,' a specific verb + resource that clearly defines the tool's function. This distinguishes Recall from sibling write/delate tools like Remember, Forget, and PruneMemory, and from MemoryStats.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies when to use Recall—when retrieving semantically related memory content—but it does not explicitly compare it to alternatives or state when not to use it. The sibling tool names provide context, but the description itself offers no direct routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

RememberA

Store something in memory.

Args: text: The content to remember. memory_type: One of 'episodic' (conversation fragment), 'semantic' (structured fact), or 'lesson' (correction/rule). key: Required for semantic type. Format: 'pref.theme', 'project.name', 'user.role', etc. importance: 0.0-1.0, how important this memory is. Higher = slower decay. Default 0.5. tags: Comma-separated tags for episodic memories.

ParametersJSON Schema
NameRequiredDescriptionDefault
keyNo
tagsNo
textYes
importanceNo
memory_typeNoepisodic

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the behavioral burden, and it adds useful detail: importance affects decay speed, key is required for semantic memories, and memory_type values map to concrete meanings. It does not discuss overwrite behavior or side effects, but the core persistence behavior is clearly disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact, front-loaded with the one-line purpose, and uses an Args block where every line adds useful semantic information. No filler or repetition of schema defaults beyond what is helpful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The five parameters are all explained, and the output schema relieves the description from explaining return values. The only notable gap is the lack of explicit guidance about when Remember should be chosen over the sibling Learn tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully document parameters, and it does: text, memory_type values, key format ('pref.theme' etc.), importance range/default, and tag format. It adds meaningful context beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line, 'Store something in memory,' names a specific verb ('store') and a clear resource ('memory'), and the memory_type options further scope the action. It distinguishes this tool from sibling operations such as Recall, Forget, and PruneMemory, which imply retrieval or deletion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool by saying 'Store something in memory' and by explaining memory_type alternatives, but it never explicitly contrasts this with siblings like Learn or states when not to use it. An agent must infer that Recall is for retrieval and Learn may be for lessons.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv0.1.0
    • First observedForget
    • First observedLearn
    • First observedMemoryStats
    • First observedPruneMemory
    • First observedRecall
    • First observedRemember

TDQS

A3.9/5.0

Scored across 6 tools

Disambiguation3/5

Remember and Learn overlap because Remember accepts memory_type='lesson', which is essentially Learn's entire purpose. The other tools are clearly distinct, and the detailed descriptions help clarify priority and scope, but the lesson overlap creates real ambiguity.

Naming Consistency4/5

Most tools use simple single-word verbs like Remember, Recall, Learn, and Forget, which is internally consistent. MemoryStats and PruneMemory break the pattern by using compound names, but the overall naming is still predictable and readable.

Tool Count5/5

Six tools is well-scoped for a memory system. Each tool handles a distinct part of the lifecycle: storing, learning, recalling, forgetting, pruning, and inspecting statistics, with no unnecessary redundancy.

Completeness4/5

The core memory lifecycle is well covered: create, recall, delete, prune, and stats. The main gap is the lack of an update/edit operation for existing memories and no exact-key lookup, though agents can work around it by forgetting and re-remembering.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    A local, fully-offline MCP memory server that enables persistent storage and retrieval of information using SQLite with both keyword and semantic vector search capabilities.
    10
    22 npm
    13
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.
    1 npm
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    A fully local, self-hosted memory server for MCP clients (Claude Code, Cursor, etc.) that provides persistent memory storage with semantic search, using local embeddings and a local Qdrant vector store.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides semantic memory with search, related-content traversal, and write-back capabilities, all powered by local embeddings of your notes, documents, and chat histories.
    3
    MIT