Server data from the Official MCP Registry
Agent-agnostic persistent memory MCP server. Local-first: memories travel with your project.
Agent-agnostic persistent memory MCP server. Local-first: memories travel with your project.
AI Memory MCP Server is a well-designed persistent memory system with solid architecture and appropriate security controls. Authentication is properly delegated to environment variables for external embedding APIs, and no hardcoded credentials or sensitive data exfiltration patterns were detected. Minor code quality observations around error handling and input validation exist, but do not impact core security. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.
8 files analyzed · 11 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-xiangzi1126-ai-agent-memory-mcp": {
"args": [
"ai-agent-memory-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
Agent-agnostic persistent memory as an MCP Server — local-first: memories travel with your project in
.ai-memory/, shared across Claude Code / Qoder / Cursor.
独立于具体 Agent 的持久化记忆层,以 MCP Server 形式提供。可被 Claude Code / Qoder / Cursor 等任何 MCP 客户端复用。
.ai-memory/chroma/)doubao-embedding-vision;见下文配置.ai-memory/memories/<category>/<id>.md,人工可读可编辑三层用 id 关联。记忆存于各项目的 .ai-memory/ 目录,跟项目走;不同 Agent 连同一项目时共享同一记忆库,source_agent 戳区分写入者。
| category | 用途 |
|---|---|
user | 用户偏好(技术背景/开发习惯/回答偏好) |
project | 项目知识(架构/选型/目录/设计决策) |
process | 工作过程(已解决/Bug/排查/经验) |
agent | Agent 协作(谁做过什么/接手须知) |
cd <clone 目录>\ai_memory_mcp
python -m pip install -r requirements.txt
也可直接从 PyPI 安装(无需 clone):
pip install ai-agent-memory-mcp。
ai-memory 的 embedding 层是通用 OpenAI 兼容客户端,火山方舟 / 硅基流动 / OpenAI / 任何兼容服务都能用。首次运行会在 .ai-memory/config.yml 生成默认配置,按需修改即可。
.ai-memory/config.yml 的 embedding 段)| 字段 | 说明 |
|---|---|
provider | 标识(仅记录用,不影响逻辑) |
model | embedding 模型名 |
base_url | OpenAI 兼容端点 |
api_key_env | 读哪个环境变量拿 key |
dim | 向量维度(须与模型一致) |
在项目根 .env 配对应 key,再改 config.yml 的 embedding 段。
火山方舟 doubao-embedding-vision(默认;Agent/Coding Plan 须走 Plan 端点 /api/plan/v3,标准 /api/v3 会 401)
embedding:
provider: volcengine
model: doubao-embedding-vision
base_url: https://ark.cn-beijing.volces.com/api/plan/v3
api_key_env: VOLCENGINE_API_KEY
dim: 2048
.env:VOLCENGINE_API_KEY=...
硅基流动 bge-large-zh(中文文本专精)
embedding:
provider: siliconflow
model: BAAI/bge-large-zh-v1.5
base_url: https://api.siliconflow.cn/v1
api_key_env: SILICONFLOW_API_KEY
dim: 1024
.env:SILICONFLOW_API_KEY=...
OpenAI
embedding:
provider: openai
model: text-embedding-3-small
base_url: https://api.openai.com/v1
api_key_env: OPENAI_API_KEY
dim: 1536
.env:OPENAI_API_KEY=...
任何其他 OpenAI 兼容服务:填对应 base_url / model / api_key_env / dim 即可。
切换 embedding 模型后,旧向量维度可能不匹配;清空
.ai-memory/chroma/重新remember,或跑python tests/rebuild_vectors.py。
recall 用三路融合检索,提升命中率:
title + tags + content 拼接,标题/标签信息进入向量候选扩大到 top_k*3,三路融合后取 top_k。
claude mcp add ai-memory -s user -e PYTHONPATH=<clone 目录>\ai_memory_mcp -- python -m ai_memory --agent claude-code --project-from-cwd
<clone 目录> 换成你 clone 的实际路径。Qoder / Cursor 同理,改 --agent 即可。
从 PyPI 装的(
pip install ai-agent-memory-mcp)省去PYTHONPATH:claude mcp add ai-memory -s user -- python -m ai_memory --agent claude-code --project-from-cwd
remember(title, content, category, tags?, scope?) - 存记忆(三处同步,自动 embed)recall(query, category?, top_k=5) - 混合检索(向量 + 关键词 + 标题匹配)get_memory(id) - 取单条search_memories(category?, tag?, agent?) - 结构化过滤update_memory(id, ...) - 更新(重算 embed + 刷新 md)forget(id) - 删除(三处同步)list_memories(category?) - 列出who_am_i() - 当前 agent + 项目上下文python -m ai_memory.cli init|export|sync|check
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.