memaxdocs
CLI Reference

memax mcp

Start and manage the Memax MCP server. Gives tool-calling agents direct access to recall, push, and search.

Start a local MCP (Model Context Protocol) server that gives tool-calling agents direct access to your Memax hub.

Usage

memax mcp serve

This starts a stdio-based MCP server that exposes Memax tools to any MCP-compatible client.

Configuration

Most agents configure MCP via a JSON config file:

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

For agent-specific setup, see the Integrations guide.

Exposed tools

The MCP server exposes 7 tools:

memax_recall

Semantic search for relevant memories.

ParameterTypeRequiredDescription
querystringYesSearch query
hintstringNoAdditional context for ranking
project_contextobjectNoRepo, branch, project info
limitnumberNoMax results (default: 5)

memax_push

Store new knowledge.

ParameterTypeRequiredDescription
contentstringYesContent to store
titlestringNoTitle (auto-generated if omitted)
categorystringNoCategory override
tagsstring[]NoTags
boundarystringNoprivate, team, public
hub_reasonstringNoReason for pushing to team hub

Browse memories by metadata.

ParameterTypeRequiredDescription
categorystringNoFilter by category
tagsstring[]NoFilter by tags
limitnumberNoMax results

memax_get

Retrieve a specific memory by ID.

ParameterTypeRequiredDescription
idstringYesMemory ID

memax_forget

Delete a memory.

ParameterTypeRequiredDescription
idstringYesMemory ID to delete

memax_capture

Capture and store content from a URL.

ParameterTypeRequiredDescription
urlstringYesURL to capture
snapshotbooleanNoCapture full content

memax_topics

List knowledge topics.

ParameterTypeRequiredDescription
hub_idstringNoScope to a specific hub

The CLI MCP server and the remote MCP server (api.memaxlabs.com/mcp) expose identical tools. Use whichever fits your setup.