经 AI Skill Hub 精选评估,智能记忆层 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
智能记忆层 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
智能记忆层 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/remete618/widemem-ai
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"-----": {
"command": "npx",
"args": ["-y", "widemem-ai"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 智能记忆层 执行以下任务... Claude: [自动调用 智能记忆层 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"_____": {
"command": "npx",
"args": ["-y", "widemem-ai"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
.__ .___ .__
__ _ _|__| __| _/____ _____ ____ _____ _____ |__|
\ \/ \/ / |/ __ |/ __ \ / \_/ __ \ / \ \__ \ | |
\ /| / /_/ \ ___/| Y Y \ ___/| Y Y \ / __ \| |
\/\_/ |__\____ |\___ >__|_| /\___ >__|_| / /\ (____ /__|
\/ \/ \/ \/ \/ \/ \/
<img src="docs/widemem-fish.png" width="48" align="middle" alt="widemem fish" /> Goldfish memory? ¬_¬ Fixed.
Background reading: - Whitepaper: How LLMs Handle Memory. Technical paper on memory architectures, security risks, and in-weights personalisation. - Why Context Windows Aren't Memory. The problem widemem solves. - Your AI Memory Can't Tell a River Bank from a Savings Account. How YMYL classification actually works. - Your AI Should Know When It Doesn't Know. Uncertainty-aware retrieval.
pip install widemem-ai[faiss]
The [faiss] extra installs the default local vector store. Plain pip install widemem-ai installs the core only; you'll need at least one vector backend ([faiss] or [qdrant]) before WideMemory() will work. Python 3.10+ required.
pip install widemem-ai[mcp,sentence-transformers]
Five lines to a working memory system. Six if you count the import.
```python from widemem import WideMemory, MemoryConfig
memory = WideMemory()
pip install widemem-ai[anthropic] # Claude LLM provider
pip install widemem-ai[ollama] # Local LLM via Ollama
pip install widemem-ai[sentence-transformers] # Local embeddings (no API key needed)
pip install widemem-ai[qdrant] # Qdrant vector store
pip install widemem-ai[mcp] # Model Context Protocol server
pip install widemem-ai[all] # Everything. You want it all? You got it.
---
Most defaults are sane, so a minimal config is usually enough:
from widemem import WideMemory, MemoryConfig
from widemem.core.types import LLMConfig, ScoringConfig, YMYLConfig
config = MemoryConfig(
llm=LLMConfig(provider="openai", model="gpt-4o-mini"),
scoring=ScoringConfig(decay_rate=0.01),
ymyl=YMYLConfig(enabled=True),
history_db_path="~/.widemem/history.db",
)
memory = WideMemory(config)
Full reference for every field, default, and tradeoff: docs/configuration.md.
---
mem = WideMemory(config=MemoryConfig(retrieval_mode="balanced"))
Full method signatures, parameters, and return types: docs/api.md.
The most-used surface area:
| Method | Description |
|---|---|
add(text, user_id, ...) | Extract and store memories. Returns AddResult. |
search(query, user_id, top_k, mode, ...) | Search memories. Returns SearchResult (list-compatible, with .confidence). |
pin(text, user_id, importance=9.0) | Store memory with elevated importance. |
get(memory_id) | Get a single memory by ID. |
delete(memory_id) | Delete a memory by ID. |
summarize(user_id, force) | Trigger hierarchical summarization. |
---
BaseChatMessageHistory adapter — drop-in conversation-history backend for LangChain chains and agentsBaseRetriever adapter — RAG-style retrieval from widemem in any LangChain chainBaseStore adapter — memory backend for stateful LangGraph agents高质量的AI记忆层工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:智能记忆层 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | widemem-ai |
| 原始描述 | 开源MCP工具:Next-gen AI memory layer with importance scoring, temporal decay, hierarchical m。⭐45 · Python |
| Topics | aimemorymcppython |
| GitHub | https://github.com/remete618/widemem-ai |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端