Skip to content
Agent Memory
DocsCLI and MCP stdio

Docs

CLI and MCP stdio

The agent-memory command and the 13 tools of its MCP stdio server, for agents on the same computer.

Agents on the same computer talk to Agent Memory through the agent-memory command or its MCP stdio server. Neither opens a network port.

Common commands

CommandWhat it does
agent-memory health --jsonCheck that the local database opens.
agent-memory search --q "<query>" --limit 5Search.
agent-memory sessions detail --id "<session-id>"Show a session and its messages.
agent-memory hooks statusShow each hook and whether it is on.
agent-memory hooks enable <hook>Turn a hook on. Use disable to turn it off.
agent-memory model prepareDownload the local embedding model.
agent-memory ingest progressShow capture progress and errors.
agent-memory ingest deferredList files set aside after repeated failures.
agent-memory cloud loginSign in to the cloud.
agent-memory cloud healthCheck sign-in and API access.
agent-memory cloud sourcesList raw sessions you can restore with cloud restore.

On the Mac, if the command isn't on your PATH, use the copy inside the app:

"/Applications/Agent Memory.app/Contents/MacOS/agent-memory" health --json

MCP stdio server

On the Mac the server is the agent-memory-mcp executable from the command-line tools. On Windows, run agent-memory mcp. Both expose the same 13 tools.

Client configuration (macOS)
{
  "mcpServers": {
    "agent-memory": { "command": "agent-memory-mcp" }
  }
}

The 13 tools

ToolWhat it does
memory_searchSearch captured session messages, optionally by workspace.
memory_syncFetch incremental changes for an agent.
memory_get_contextFetch the startup context for an agent.
memory_get_inboxFetch pending inbox messages for an agent.
memory_update_stateSet an agent's current status, workspace and task.
memory_send_messageSend a message to another agent's inbox.
memory_log_eventRecord an event, such as a checkpoint.
memory_create_feedback_eventRecord how you reacted to an agent's output.
memory_list_feedback_eventsList feedback events.
memory_create_decision_reviewRecord a later review and detect a reversed verdict.
memory_list_decision_reviewsList decision reviews.
memory_create_preference_pairRecord an accepted and a rejected output.
memory_list_preference_pairsList preference pairs.