mem0 MCP Server
mem0 MCP 服务器
用于 mem0 的模型上下文协议 (MCP) 服务器的 TypeScript 实现,通过 Mem0 集成提供内存流功能。
特征
使用 Mem0 集成创建内存流
将内容附加到内存流
使用 Mem0 的语义搜索来搜索记忆
从内存流读取
基于资源的内存流访问
删除内存流
Related MCP server: MCP-Mem0
先决条件
Node.js 和 npm 已安装
Mem0 API 密钥(从mem0.ai获取)
安装
npm install配置
将您的 Mem0 API 密钥设置为环境变量:
export MEM0_API_KEY=your-api-key-here建筑
npm run build运行服务器
npm start测试
运行测试客户端来验证服务器功能:
npm testAPI
工具
create-memory-stream参数:
name:字符串initialContent:字符串(可选)userId:字符串(可选)- Mem0 用户 IDagentId:字符串(可选)- Mem0 代理 ID
返回:流 ID 和元数据
append-to-stream参数:
streamId:字符串content:字符串role:“用户”|“助理”(可选)
返回:成功确认
search-memories参数:
query:字符串userId:字符串agentId:字符串(可选)threshold:数字(可选)
返回:来自 Mem0 的搜索结果
read-stream参数:
streamId:字符串startIndex:数字(可选)endIndex:数字(可选)
返回:流内容
delete-stream参数:
streamId:字符串
返回:删除确认
资源
memory://{streamId}- 直接访问内存流内容memory://- 列出所有内存流
发展
该服务器使用 MCP TypeScript SDK 实现,并与 Mem0 集成,用于持久内存存储和语义搜索。扩展实现方式如下:
添加更多 Mem0 功能(例如,内存标记、元数据)
实施适当的错误处理
添加身份验证和授权
添加额外的内存操作
执照
麻省理工学院
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
An MCP memory server. One memory your agents share — across models, devices and apps.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA TypeScript implementation of a Model Context Protocol server that provides a frictionless framework for developers to build and deploy AI tools and prompts, focusing on developer experience with zero boilerplate and automatic tool registration.1,632 npm14MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.684MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that integrates AI assistants with Mem0.ai's persistent memory system, allowing models to store, retrieve, search, and manage different types of memories.16MIT
- -licenseNot gradedqualityNot gradedmaintenanceA TypeScript implementation of a Model Context Protocol server that enables real-time communication with LLM clients using Server-Sent Events (SSE) for transport and Bearer Token authentication for security.-