memaxdocs
Getting Started

Agent Setup

Connect your first AI agent to Memax using MCP, hooks, or CLI piping.

Choose your integration method

Memax supports three integration tiers, ordered by recommendation:

MethodSetupBest for
MCP Server5 lines in configAlways-on recall + push (recommended)
HooksOne CLI commandAmbient context injection
CLI PipingShell scriptingOne-off queries, scripts

The MCP (Model Context Protocol) server gives your agent direct tool access to Memax. The agent decides when to recall or push — no manual intervention needed.

Run the interactive setup:

memax setup claude-code

Or manually add to ~/.claude.json:

{
  "mcpServers": {
    "memax": {
      "command": "npx",
      "args": ["-y", "memax-cli", "mcp", "serve"]
    }
  }
}

Your Claude Code agent now has access to memax_recall, memax_push, memax_search, and other tools.

Add to your Cursor MCP configuration (.cursor/mcp.json):

{
  "mcpServers": {
    "memax": {
      "command": "npx",
      "args": ["-y", "memax-cli", "mcp", "serve"]
    }
  }
}

Any MCP-compatible client can connect to the Memax MCP server:

npx memax-cli mcp serve

This starts a stdio-based MCP server that exposes the standard Memax tools.

Available MCP tools

ToolDescription
memax_recallSemantic search for relevant memories
memax_pushStore new knowledge
memax_searchBrowse memories by category, tags, or filters
memax_getRetrieve a specific memory by ID
memax_forgetDelete a memory
memax_captureCapture and store content from URLs
memax_topicsList knowledge topics

Hooks

Hooks inject context before every agent prompt. This is useful for always-on context like project briefs and team conventions.

memax hook install claude-code

This creates a Claude Code hook that runs memax recall with the user's prompt, injecting relevant context under <memax-context> tags.

MCP + hooks work well together. MCP handles on-demand recall and push. Hooks provide ambient context injection on every prompt.

CLI Piping

The universal fallback. Works with any agent or workflow:

# Pipe context into an agent
memax recall "how does deployment work?" | pbcopy

# Use in scripts
CONTEXT=$(memax recall "auth system design")
echo "Given this context: $CONTEXT, explain the auth flow"

For detailed integration guides per agent, see the Integrations section.