Simple Memory Extension MCP Server
简单内存扩展 MCP 服务器
MCP 服务器用于扩展代理的上下文窗口/内存。在编写大型功能或氛围代码,需要存储/调用进度、关键时刻、更改或任何值得记住的内容时非常有用。只需让代理存储记忆并在需要时调用,或者让代理以合适的方式完全管理其内存(例如通过游标规则)。
用法
启动服务器
npm install
npm start可用工具
上下文项目管理
store_context_item- 在命名空间中存储带有键的值retrieve_context_item_by_key- 按键获取值delete_context_item- 删除键值对
命名空间管理
create_namespace创建新的命名空间delete_namespace- 删除命名空间和所有内容list_namespaces- 列出所有命名空间list_context_item_keys- 列出命名空间中的键
语义搜索
retrieve_context_items_by_semantic_search- 按含义查找项目
语义搜索实现
使用 E5 模型将查询转换为向量
文本自动拆分成块以便更好地匹配
计算查询和存储块之间的余弦相似度
按阈值过滤结果并按相似度排序
返回具有完整项目值的最佳匹配项
Related MCP server: mem0-agent-memory
发展
# Dev server
npm run dev
# Format code
npm run format.env
# Path to SQLite database file
DB_PATH=./data/context.db
PORT=3000
# Use HTTP SSE or Stdio
USE_HTTP_SSE=true
# Logging Configuration: debug, info, warn, error
LOG_LEVEL=info语义搜索
该项目包含使用 Hugging Face 的 E5 嵌入模型的语义搜索功能。这使您能够根据上下文项的含义(而非仅仅根据精确的关键字匹配)来查找上下文项。
设置
语义搜索功能需要 Python 依赖项,但运行以下命令时会自动安装这些依赖项: npm run start
嵌入模型
我们使用intfloat/multilingual-e5-large-instruct
笔记
大部分都是在写 Vibe 代码的时候开发的,所以别期待太多 :D。不过它确实能用,而且我觉得它很有用。欢迎大家贡献代码或提出改进建议。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP memory server. One memory your agents share — across models, devices and apps.
Cross-tool persistent memory and context for AI assistants over MCP.
Persistent memory for AI agents — log and recall conversation context over MCP.
Cloud-hosted MCP server for durable AI memory
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides persistent long-term memory for AI agents via local SQLite storage with low token overhead, enabling memory storage, retrieval, and management across sessions.1MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides persistent memory capabilities for AI agents using Mem0, enabling storage, search, and management of contextual information across conversations with support for multiple backends and LLM providers.1818 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides AI agents with a contextual memory system, storing query-error-solution chains as a typed graph with local embedding search.1 npm-
- AlicenseNot gradedqualityBmaintenanceA shared memory MCP server for AI agents that provides persistent, semantic memory across sessions and tools, enabling long-term recall and context sharing.3 npm12MIT
Appeared in Searches
- An open-source MCP service leveraging large models for innovative problem-solving
- Finding the Best Memory Compression Policies (MCPs) for Optimizing Limited Context Window in Claude Code
- A search for information related to 'augment'
- Transcribing Voice Conversations into Structured Meeting Notes
- A system or tool for reading, writing, and interacting with local storage