kiro-recall
kiro-recall
一个本地 MCP 记忆服务器,适用于 Kiro CLI,为你的 AI 助手提供跨会话的持久化、语义化记忆。
受 Kiro Crew 记忆架构启发——重新实现为轻量级、自包含系统,使用 SQLite + Ollama 嵌入,以 Obsidian 作为人类可读的同步目标。
功能
语义记忆 — 结构化键值事实(
pref.editor: Neovim、project.active: MyProject)情景记忆 — 随时间衰减的对话片段(约 23 天半衰期)
经验教训 — 覆盖所有其他记忆的修正和规则(最高优先级)
语义召回 — 通过 Qwen3-Embedding 进行向量相似度搜索(1024 维,本地运行)
Obsidian 同步 — 将记忆渲染为带
[[wikilinks]]的 Markdown,用于图谱导航
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) │
└───────────────┘系统要求
安装
git clone https://github.com/YOUR_USERNAME/kiro-recall.git
cd kiro-recall
bash install.sh安装脚本将:
安装 Ollama(如果不存在)并将其作为服务启动
拉取
qwen3-embedding:0.6b模型创建 Python 虚拟环境并安装依赖
将 MCP 服务器配置安装到
~/.kiro/settings/mcp.json将引导文件安装到
~/.kiro/steering/obsidian-memory.md可选:从现有 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 工具
工具 | 描述 |
| 存储事实、情景或经验教训 |
| 跨所有记忆进行语义搜索 |
| 存储高优先级修正/规则 |
| 按键或 ID 删除记忆 |
| 显示各记忆层级的数量 |
记忆层级
层级 | 优先级 | 衰减 | 使用场景 |
经验教训 | 最高 | 无 | "始终使用 wikilinks"、"绝不假设区域" |
语义 | 高 | 无(原地更新) | 关于用户/项目的结构化事实 |
情景 | 中 | exp(-0.03 × 天数) | 对话片段、决策 |
键格式
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceA local, fully-offline MCP memory server that enables persistent storage and retrieval of information using SQLite with both keyword and semantic vector search capabilities.107812MIT
- AlicenseNot gradedqualityCmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.51Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA 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
- AlicenseNot gradedqualityBmaintenanceMCP 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.14MIT
Related MCP Connectors
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fredluckham/kiro-recall'
If you have feedback or need assistance with the MCP directory API, please join our Discord server