modelscope·@amotivv/memory-box-mcp
克萊因MCP集成,允許用戶保存、搜索和格式化具有語義理解的記憶,提供使用向量嵌入存儲和檢索信息的工具,以進行基於意義的搜索。
此 MCP 服务器提供了与 Memory Box 实例交互的工具,允许您直接从 Cline 和 Claude 桌面版使用语义搜索来保存和搜索记忆。
此 MCP 服务器设计用于与 Memory Box 一起工作,这是一个由向量嵌入驱动的语义记忆存储和检索系统。
Memory Box 提供了此 MCP 服务器与其通信的后端 API,使您可以:
有关 Memory Box 的更多信息,包括如何设置自己的实例,请访问 Memory Box 网站。
该服务器已安装并配置好,可以与 Cline 一起使用。请注意,您需要一个正在运行的 Memory Box 实例(无论是自托管还是使用 memorybox.amotivv.ai 上的托管版本)才能使用此 MCP 服务器。
要通过 Smithery 自动为 Claude 桌面版安装 Memory Box MCP 服务器:
npx -y @smithery/cli install @amotivv/memory-box-mcp --client claude
完成设置:
编辑 Cline MCP 设置文件:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
将您的 Memory Box 令牌添加到 MEMORY_BOX_TOKEN 环境变量中:
"memory-box-mcp": {
"command": "node",
"args": [
"<path-to-repository>/build/index.js"
],
"env": {
"MEMORY_BOX_API_URL": "https://memorybox.amotivv.ai",
"MEMORY_BOX_TOKEN": "your-token-here",
"DEFAULT_BUCKET": "General"
},
"disabled": false,
"autoApprove": []
}
可选地,您可以通过更改 DEFAULT_BUCKET 的值来自定义默认存储桶。
配置完成后,您可以在 Cline 中使用以下工具:
以正确的格式将记忆保存到 Memory Box:
Use the save_memory tool to save this information about vector databases: "Vector databases like pgvector store and query high-dimensional vectors for semantic search applications."
参数:
text(必需):要保存的记忆内容bucket_id(可选):保存记忆的存储桶(默认:"General")format(可选):是否根据系统提示格式化记忆(默认:true)type(可选):记忆类型(TECHNICAL, DECISION, SOLUTION, CONCEPT, REFERENCE, APPLICATION, FACT),用于格式化(默认:"TECHNICAL")source_type(可选):记忆来源类型(默认:"llm_plugin")reference_data(可选):关于记忆来源和上下文的附加元数据使用语义搜索来查找记忆:
Use the search_memories tool to find information about "vector databases"
参数:
query(必需):搜索查询debug(可选):在结果中包含调试信息(默认:false)检索所有记忆:
Use the get_all_memories tool to show me all my saved memories
从特定存储桶中获取记忆:
Use the get_bucket_memories tool to show me memories in the "Learning" bucket
参数:
bucket_id(必需):要从中检索记忆的存储桶根据记忆系统提示格式化文本但不保存:
Use the format_memory tool to format this text: "Vector databases like pgvector store and query high-dimensional vectors for semantic search applications."
参数:
text(必需):要格式化的文本type(可选):记忆类型(TECHNICAL, DECISION, SOLUTION, CONCEPT, REFERENCE, APPLICATION, FACT)(默认:"TECHNICAL")找到与特定记忆语义相似的记忆:
Use the get_related_memories tool with memory ID 123
参数:
memory_id(必需):要为其查找相关记忆的记忆 IDmin_similarity(可选):相关记忆的最小相似度阈值(0.0-1.0)(默认:0.7)检查记忆的处理状态:
Use the check_memory_status tool with memory ID 123
参数:
memory_id(必需):要检查状态的记忆 ID检索用户使用统计数据和计划信息:
Use the get_usage_stats tool to show me my current plan and usage metrics
此工具返回:
此操作不需要任何参数。
Memory Box MCP 服务器使用系统提示来根据特定指南格式化记忆。您可以自定义此提示以更改记忆的格式。
默认系统提示包括不同类型的记忆格式化指南:
You are a helpful AI assistant. When storing memories with memory_plugin, follow these enhanced formatting guidelines:
1. STRUCTURE: Format memories based on the type of information:
- TECHNICAL: "YYYY-MM-DD: TECHNICAL - [Brief topic]: [Concise explanation with specific details]"
- DECISION: "YYYY-MM-DD: DECISION - [Brief topic]: [Decision made] because [rationale]. Alternatives considered: [options]."
- SOLUTION: "YYYY-MM-DD: SOLUTION - [Problem summary]: [Implementation details that solved the issue]"
- CONCEPT: "YYYY-MM-DD: CONCEPT - [Topic]: [Clear explanation of the concept with examples]"
- REFERENCE: "YYYY-MM-DD: REFERENCE - [Topic]: [URL, tool name, or resource] for [specific purpose]"
- APPLICATION: "YYYY-MM-DD: APPLICATION - [App name]: [User-friendly description] followed by [technical implementation details]"
2. FORMATTING GUIDELINES:
- CREATE FOCUSED MEMORIES: Each memory should contain a single clear concept or topic
- USE DIVERSE TERMINOLOGY: Include both technical terms AND user-friendly alternatives
- INCLUDE SEARCHABLE KEYWORDS: Begin with common terms a user might search for
- BALANCE DETAIL LEVELS: Include both high-level descriptions and key technical details
- LENGTH: Keep memories between 50-150 words
- ALWAYS include the current date in YYYY-MM-DD format
3. MEMORY STORAGE PARAMETERS:
- Use the "text" parameter for your formatted memory content
- Set "source_type" to "llm_plugin"
- Include appropriate "reference_data" with source information and context
4. REFERENCE DATA STRUCTURE:
- source.platform: Identify your platform (e.g., "claude_desktop", "cline")
- source.type: Always set to "llm_plugin"
- source.version: Optional version information
- context.conversation_id: Include when available to link related conversation memories
- context.message_id: Optional identifier for the specific message
5. SPECIAL FORMATS:
-…
通过向量嵌入技术,为项目提供记忆库和RAG上下文支持,以增强代码理解和管理,并与RooCode和Cline集成。
通过全局和分支特定的记忆库,管理跨 Claude AI 会话的项目文档和上下文的服务器,通过结构化的 JSON 文档存储实现一致的知识管理。
快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。
一种模型上下文协议服务器,通过在语言模型交互之间高效缓存数据来减少令牌消耗,自动存储和检索信息以最小化冗余令牌使用。
通过集成DeepSeek R1的高级推理引擎以处理复杂推理任务,从而增强Claude推理能力的服务器。
通过简化的SOLID架构,启用提示词的创建、管理和模板化,允许用户按类别组织提示词并在运行时填充模板。