What Is `search_memory` in Hemory MCP?

Download Hemory
On this page

When an AI agent needs background from an earlier conversation, you do not have to retell the whole story if that discussion was captured in Hemory and is accessible through the connection. The agent can use Hemory’s MCP-exposed search_memory tool to retrieve relevant Memory. Hemory supplies the context; the connected agent does the reasoning and writing.

TL;DR

  • search_memory lets a connected client look up relevant Memory from conversations captured in Hemory.
  • The basic flow is: give the agent a task, let it search for relevant context, then have it use the returned material in its own analysis or draft.
  • Search only works with conversations that were captured and are accessible to that connection. It does not guarantee a complete result.
  • You still provide the current goal and review the agent’s work. The agent—not Hemory—decides how to use retrieved context.

What is search_memory?

search_memory is a Hemory Memory-retrieval tool that an AI client can use through the Model Context Protocol (MCP). MCP gives a connected client a way to call tools offered by another service. In this case, Hemory makes Memory retrieval available to supported connected agents; Hemory’s Features page demonstrates the tool name search_memory.

Think of it as a request for relevant background, not a command for Hemory to complete your whole task. The agent has a goal, searches Hemory for useful conversation context, and then decides how that context applies. For example, if you ask an agent to draft a project update, it might look for captured discussions about the project’s decisions or open questions before drafting. The agent is responsible for interpreting what it finds and producing the update.

The exact arguments and returned data format are not described here. The useful concept is the division of work: Hemory retrieves accessible Memory; the connected agent reasons with the result.

How does the search flow work?

A typical task follows three steps:

  1. Give the agent the current task. Say what you need and include useful clues, such as a project name or the kind of earlier discussion that matters. Add new information that was not part of those conversations.
  2. Let the connected agent retrieve relevant Memory. The agent can call Hemory’s search tool for background from captured conversations available through the connection. You do not need to manually assemble a complete history first.
  3. Review the agent’s use of that context. The agent may analyze the results or use them in a draft. Check consequential details—such as whether a proposal became an agreement, whether a condition still applies, or whether information is current—before relying on the output.

For instance, you might ask an agent to prepare a short project brief and mention the project plus the decision you are trying to revisit. The agent can search relevant captured discussions, then draft a brief using what it retrieves. You still need to supply the current purpose and review whether the draft reflects the right scope and status.

Agent session searching a past sync and drafting a follow-up checklist.

Retrieve past commitments and draft follow-up tasks.

What does Hemory do, and what does the agent do?

Part of the workResponsibility
Capture and organize conversationsHemory preserves recorded conversations as searchable, reviewable Memory. An exchange that was never captured cannot be retrieved from Hemory.
Find relevant backgroundThe connected agent calls the retrieval tool to look for Memory available through its Hemory connection. What it can access depends on the supported connection and its scope.
Interpret and use resultsThe external agent analyzes retrieved context and may use it in its response or draft. Retrieval itself does not make the agent’s interpretation correct.
Supply current information and judge the resultYou state what you need, provide important new details, and review the output before using it.

This separation matters because a search result is not the same as a conclusion. A mention of an idea does not necessarily mean it was approved, and an earlier decision may have changed. Ask the agent to distinguish what the retrieved material supports from what remains unclear, then check important points against the relevant context or a current record.

What are the limits of search_memory?

The search can only retrieve conversations that Hemory captured and that are accessible through the connected client. It cannot recover an unrecorded exchange. Nor does an empty or incomplete result prove that no relevant discussion exists: the conversation may not have been captured, may not be accessible, or may not have been surfaced by the search.

Do not assume that every MCP client has identical tools, permissions, or behavior. Hemory’s Changelog documents Speaker labeling and management through MCP, but that does not establish general permission to edit Memory or take actions in other services. The agent’s ability to perform an external action depends on that client and its own permissions; an MCP connection to Hemory alone does not imply it can update a project system or send messages.

For consequential work, treat retrieved context as input to your judgment. Confirm the status, conditions, and current details that could change the next action. If an important detail is missing, consult another available record or ask someone who can clarify it.

When is this useful?

search_memory is useful when a task depends on past conversation background that would otherwise take time to recall, search for, or retell. You can give a connected agent the goal and the clues you have, rather than preparing a full manual chronology in advance. This is especially helpful when the missing context is an explanation or detail you did not think to include in the initial request.

It is not necessary for every task. If you already have the relevant information in the current chat or a document, provide it directly. If the conversation was not captured in Hemory, use another source or ask a focused question instead.

FAQ

Is search_memory the AI agent itself?

No. It is a Hemory retrieval tool available through MCP. The connected agent calls the tool, receives relevant accessible Memory, and performs its own analysis or drafting.

Does search_memory find every relevant conversation?

There is no guarantee that it will. Only captured, accessible conversations can be retrieved, and a search result should not be treated as proof that all relevant context was found.

Do I need to summarize every earlier discussion first?

No. You can give the connected agent your current task and useful clues, then let it retrieve relevant captured context. You may still need to provide new information or clarify details the search did not surface.

Can an MCP connection update my other tools?

Not by itself. Hemory’s documented MCP capabilities do not establish that a connected agent can write to arbitrary external systems. Any such action depends on the agent and its separate connections and permissions.

The practical takeaway

Use search_memory when a connected agent needs background from conversations already captured in Hemory. Give it the task and relevant clues, let it retrieve what it can access, and review the result before relying on it. Hemory reduces the need to reconstruct and retell that history; the agent still reasons, and you remain responsible for the final judgment.

Start building your memory palace

Download Hemory — from today on, every real conversation becomes material you can generate from tomorrow.

Get Hemory for iOS Get Hemory for Android Download APK

macOS, Windows, Linux, Web, and Self-host coming soon