Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
pinkpixel-dev/mem0-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/pinkpixel-dev/mem0-mcp.
Обзор
pinkpixel-dev/mem0-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/pinkpixel-dev/mem0-mcp.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), интегрирующий с Mem0.ai для обеспечения возможностей постоянной памяти для LLM. Он позволяет агентам ИИ хранить и получать информацию по сессиям.
Этот сервер использует SDK mem0ai Node.js для своей основной функциональности.
Особенности 🧠
Модернизированные и продвинутые инструменты (v0.8.0)
add_memory: Сохраняет память из текстового содержимого или структурированных массив сообщений.- Входы:
content(строка) илиmessages(массив объектов роли/содержимого),userId(строка),runId/sessionId(строка),agentId(строка),appId(строка),metadata(объект),infer(булевая),customInstructions(строка),waitForCompletion(булевая, по умолчанию: true),timeoutMs(число, по умолчанию: 15000) - Поведение: Добавления в облако V3 асинхронны. По умолчанию этот инструмент опрашивает фоновую очередь до её завершения. Пропустите
waitForCompletion: false, чтобы получитьeventIdнемедленно. search_memories: Ищет воспоминания с помощью семантических и гибридных фильтров BM25.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
@pinkpixel/mem0-mcp MCP Server ✨
A Model Context Protocol (MCP) server that integrates with Mem0.ai to provide persistent memory capabilities for LLMs. It allows AI agents to store and retrieve information across sessions.
This server uses the mem0ai Node.js SDK for its core functionality.
Features 🧠
Modernized & Advanced Tools (v0.8.0)
add_memory: Stores a memory from text content or structured message arrays.- Inputs:
content(string) ormessages(array of role/content objects),userId(string),runId/sessionId(string),agentId(string),appId(string),metadata(object),infer(boolean),customInstructions(string),waitForCompletion(boolean, default: true),timeoutMs(number, default: 15000) - Behavior: Cloud V3 additions are asynchronous. By default, this tool polls the background queue until completed. Pass
waitForCompletion: falseto get theeventIdimmediately.
- Inputs:
search_memories: Searches memories using semantic and BM25 hybrid filters.- Inputs:
query(string),userId(string),runId/sessionId(string),agentId(string),appId(string),filters(object),threshold(number),topK(number),rerank(boolean),referenceDate(string) - Behavior: Automatically nests scope variables inside the V3
filtersblock to prevent API validation errors.
- Inputs:
search_memory: Backward-compatible alias forsearch_memories.list_memories: Paginated listing of memory records scoped by identifiers.- Inputs:
userId(string),runId/sessionId(string),agentId(string),appId(string),filters(object),page(number),pageSize(number)
- Inputs:
get_memory: Retrieves a single memory record by its ID.- Inputs:
memoryId(string)
- Inputs:
update_memory: Modifies the text or metadata of an existing memory.
Установка
npx -y @pinkpixel/mem0-mcpКонфигурация
{
"mcpServers": {
"mem0-mcp": {
"command": "mem0-mcp",
"args": [],
"env": {
"MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}