使用说明
@aigentkarl/代理内存mcp服务器
AI代理的持久内存。使用跨会话存储、检索和搜索知识 模型上下文协议.
特性
- 永久存储 --键值对存储为JSON文件
~/.agent-memory/ - 命名空间 --将内存组织到单独的命名空间中(例如。
project_x,user_prefs) - 元数据 --将任意元数据附加到每个内存条目
- 搜索 --在键、值和元数据之间进行子字符串搜索
- 访问跟踪 --自动访问计数和时间戳
工具
| 工具 | 说明 |
|---|---|
store |
存储带有可选元数据的键值对 |
retrieve |
按键检索存储值 |
search |
使用子字符串匹配在内存中搜索 |
list_keys |
列出命名空间中的所有键 |
delete |
删除已存储的条目 |
list_namespaces |
列出所有可用命名空间 |
安装
npm install -g @aiagentkarl/agent-memory-mcp-server
使用Claude Desktop
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"agent-memory": {
"command": "npx",
"args": ["-y", "@aiagentkarl/agent-memory-mcp-server"]
}
}
}
使用Claude代码
claude mcp add agent-memory -- npx -y @aiagentkarl/agent-memory-mcp-server
存储
数据以JSON文件的形式存储在 ~/.agent-memory/每个命名空间都有自己的文件:
~/.agent-memory/
default.json
project_x.json
user_prefs.json
集 MEMORY_STORAGE_DIR 环境变量以更改存储位置。
AiAgentKarl提供的更多MCP服务器
| 类别 | 服务器 |
|---|---|
| 🔗 区块链 | 索拉纳 |
| 🌍 数据 | 天气 · 德国 · 农业 · 太空 · 航空 · 欧盟公司 |
| 🔒 安全 | 网络安全 · 策略网关 · 审计跟踪 |
| 🤖 代理基础设施 | 记忆 · 目录 · 中心 · 声誉 |
| 🔬 研究 | 学术的 · LLM基准 · 法律 |
许可证
麻省理工学院
