PD

pinkpixel-dev/mem0-mcp

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

97 stars 14 forks 品質 86 トレンド 14MIT

pinkpixel-dev/mem0-mcpは、https://github.com/pinkpixel-dev/mem0-mcp.からインポートされたMCPサーバー候補です。

概要

pinkpixel-dev/mem0-mcpは、https://github.com/pinkpixel-dev/mem0-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)サーバーで、Mem0.ai と統合され、LLMに永続的なメモリ機能を提供します。AIエージェントがセッション間で情報を保存・取得できるようにします。

このサーバーはコア機能としてmem0ai Node.js SDKを使用しています。

特徴 🧠

モダナイズド&アドバンスドツール(v0.8.0)

  • add_memory:テキスト内容や構造化メッセージ配列からのメモリを保存します。
  • 入力: content(文字列)またはmessages(ロール/コンテンツオブジェクトの配列)、userId(文字列)、runId / sessionId(文字列)、agentId(文字列)、appId(文字列)、metadata(オブジェクト)、infer(ブール数)、customInstructions(文字列)、waitForCompletion(ブール数、デフォルト:true)、timeoutMs(番号、デフォルト:15000)
  • Behavior: Cloud V3の追加は非同期です。デフォルトでは、このツールは完了するまでバックグラウンドキューをポーリングします。waitForCompletion: falseをパスするとeventIdがすぐに取得されます。
  • search_memories:意味論とBM25ハイブリッドフィルターを用いて記憶を検索します。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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) or messages (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: false to get the eventId immediately.
  • 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 filters block to prevent API validation errors.
  • search_memory: Backward-compatible alias for search_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)
  • get_memory: Retrieves a single memory record by its ID.
    • Inputs: memoryId (string)
  • update_memory: Modifies the text or metadata of an existing memory.
GitHub で README 全文を見る

インストール

npx -y @pinkpixel/mem0-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "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" } } } }