Strata Memory MCP Server
Strata Memory MCP Server is a layered memory system for AI agents with SQLite as source of truth, rebuildable vector index, and Markdown projection. You can:
Initialize/configure: set personal or company mode, embedding model/provider, CBT safety, and apply config with hot reload.
Store and promote memories: commit validated facts, preferences, procedures, episodes with metadata; promote session scratchpad to durable storage.
Recall and search: progressive context recall, hybrid vector+FTS5 semantic search with filters, and expand memory details by ID.
Manage and maintain: run health checks, rebuild vector index, view L0-L3 stats/watermarks, export Markdown, and run digest/hygiene for expired, duplicate, or secret data.
Optimize hardware/config: profile system hardware, get embedding recommendations, and apply memory configuration without restart.
Enforce safety and isolation: Quality Kernel blocks passwords, API keys, vague timestamps, and unverified claims; scoped by tenant, user, and session; company mode includes audit logging.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Strata Memory MCP Servermemorize key points from today's meeting about Q3 roadmap"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strata Memory 2.0(分层记忆 · 工业级 AI 记忆基座)
大模型只做决策,确定性代码接管一切。
Strata Memory 2.0 是面向 Multi-Agent 的 MCP 记忆中枢:以 SQLite 为唯一真相源(SoT),向量库可一键重建,Markdown 仅为只读投影。写入经过 Quality Kernel / CBT 中间件;召回采用渐进式漏斗,避免上下文爆炸。
核心设计
层 | 角色 | 可摧毁? |
SQLite Truth Store | 权威数据(记忆 / 审计 / 轨迹) | 否(备份) |
Chroma + BGE-M3 | 语义索引伴生层 | 是 — |
Markdown projection | 人类可读视图 | 是 — |
L0–L3 分层 + 类型化 TTL(事实/偏好/规程/情节)
三维隔离:
tenant_id+user_id+session_idScratch → Durable:会话暂存,确认后
promote_session防御性 MCP 契约:工具描述强制「作用 / 触发 / 禁忌」
Related MCP server: locus
快速开始
# 推荐:环境变量注入密钥(禁止写入对话与 config 明文)
export STRATA_API_KEY=sk-...
# 可选:自定义 Palace 路径
export STRATA_PALACE=~/.strata/palace
uvx strata-memory-mcp
# 或
git clone https://github.com/vincy/strata-memory.git
cd strata-memory && uv sync && uv run strata-memory-mcpClaude Desktop
{
"mcpServers": {
"strata-memory": {
"command": "uv",
"args": ["run", "--directory", "/path/to/strata-memory", "strata-memory-mcp"],
"env": {
"STRATA_API_KEY": "sk-...",
"STRATA_PALACE": "/path/to/palace"
}
}
}
}Hermes
# 推荐:完整 key 写入 Hermes env(禁止 sk-xxx...yyy 脱敏占位)
echo 'STRATA_API_KEY=sk-你的完整key' >> ~/.hermes/.env
cp examples/strata-wrapper.sh ~/.hermes/scripts/strata-wrapper.sh
chmod +x ~/.hermes/scripts/strata-wrapper.sh
# config.yaml → mcp_servers.strata-memory.command = wrapper 路径更多客户端示例见 examples/ · examples/hermes-config.yaml。
MCP 工具(10 个,意图聚合)
Tool | 意图 |
| 初始化 SoT + 配置 |
| 经 Quality Kernel 写入事实 |
| Scratch → Durable |
| 渐进召回(id + 摘要 + 分数) |
| 按 id 二次展开全文 |
| SoT ↔ 索引一致性巡检 |
| 从 SQLite 全量重建向量( |
| L0–L3 Token 水位线 |
| 导出只读 Markdown 投影 |
| 后台降级 / 归档(TTL + 分数) |
| 过期/重复/secret 卫生扫描与可选修复 |
写入示例
{
"user_id": "user_001",
"memory_type": "user_preference",
"fact_claim": "User prefers dark mode in VS Code with Monokai Pro theme.",
"confidence_score": 0.92,
"session_id": "sess_2026-08-04"
}召回示例
{
"user_id": "user_001",
"query": "IDE theme preferences",
"context_depth": "deep",
"limit": 8
}返回仅为卡片列表;需要细节时:
{ "user_id": "user_001", "memory_id": "<id from hits>" }禁忌(Quality Kernel 硬拦截)
密码 / API Key / Token
纯情绪发泄、无事实
模糊时间(刚才 / 昨天 / today)— 改用 ISO 日期
将「也许 / 可能 / probably」写成
factual_truth
架构一览
LLM ─commit_memory─► Quality Kernel ─► CBT Middleware ─► SQLite (SoT)
└─► Chroma (rebuildable)
LLM ─recall_context─► Hybrid RRF (vector + FTS5) ─► {id, summary, score}
LLM ─expand_memory_detail(id)─► detail (scope-checked)完整说明:docs/architecture.md · 工具契约:docs/tools.md
从 0.2.x 迁移
0.2.x | 2.0 |
|
|
|
|
|
|
Markdown 直写 | SQLite SoT;Markdown 仅投影 |
批量灌入旧 drawer(不删源文件):
# 预览
uv run python -m strata_memory.cli migrate --palace ~/.strata/palace
# 写入 SQLite
uv run python -m strata_memory.cli migrate --palace ~/.strata/palace --apply
# 写入 + 重建向量索引
export STRATA_API_KEY=sk-...
uv run strata-memory-migrate --palace ~/.strata/palace --apply --rebuild-vectors完整说明:docs/migration-v02.md · CHANGELOG.md
安全
默认本地存储;密钥走
STRATA_API_KEY,不落盘明文写操作无裸 CRUD;破坏性重建必须
confirm=true跨
user_id/tenant_id的 expand 硬失败
见 SECURITY.md。
开发
uv sync --extra dev
uv run pytest -v
uv run strata-memory-mcpLicense
MIT — 见 LICENSE
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
- Alicense-qualityCmaintenanceProvides persistent long-term memory for AI agents with semantic search and activation-based decay. Enables AI systems to remember across sessions through layered memory architecture and automatic context-aware retrieval.26MIT
- AlicenseAqualityDmaintenanceHierarchical markdown-based memory system for AI agents. Enables efficient context management by loading only relevant rooms (directories) instead of full memory.5MIT
- Alicense-qualityAmaintenanceEnables persistent, portable memory for AI agents across sessions, devices, and providers with token-efficient 5-level lazy loading and automatic session capture.41MIT
- Flicense-qualityBmaintenancePersistent memory for AI agents enabling saving, searching, and managing knowledge across sessions with local markdown files.2
Related MCP Connectors
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
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/SherryLi-vc/strata-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server