mcpField
S
search

search

github.com/mem0aiAgent workflows68.1k45 installsUpdated 3d ago
Repository

About search

A skill that searches stored memories in response to a user's question. It passes search filters as tool arguments and returns the search tool's result directly.

Key features

  1. 01Search memories from a question
  2. 02Filter by category or scope
  3. 03Limit results with top-k
  4. 04Retrieve memories by run ID

Use cases

  1. 01Find shared repository memories
  2. 02Search memories for a monorepo directory
  3. 03Look up personal preferences
  4. 04Retrieve memories from a known agent session

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mem0ai/mem0 --skill search

After installing, type/searchin Claude Code to confirm it loaded.

Details

From the project README

Search memories

Call search_memories with the user's question. Treat --top-k, --category, --scope, and --run-id as tool arguments instead of including them in the query.

Omit top_k to use Mem0's configured default. Omit category to search every category. Omit scope to use the configured default, normally repo: this repository's shared memory, which everyone who works in it contributes to, plus your own preferences.

Pass scope when the question needs something else: dir to narrow the shared memory to the directory you are working in (a package inside a monorepo), mine for your own preferences alone.

Pass run_id with any scope to retrieve memories saved in a specific coding-agent session. Omit run_id to search across sessions. It filters the memories returned; it does not identify the session making the search request. Use a known session ID, never invent one. Return the tool's result directly.

Comments

Markdown supported