Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

crossmem mcp serve

Start the MCP (Model Context Protocol) server on stdio.

Usage

crossmem mcp serve

What it does

Starts an MCP server that communicates over stdin/stdout, providing two tools to any MCP client:

The server loads wiki entries from ~/crossmem/wiki/ and serves them to the connected client.

Exit codes

CodeMeaning
0Clean shutdown
1Server error

Environment variables

VariableDefaultDescription
RUST_LOGwarnLog level (logs go to stderr, not stdout — stdout is the MCP transport)

Adding to Claude Code

claude mcp add crossmem -- crossmem mcp serve

This registers crossmem as an MCP server that Claude Code will start automatically.

Adding to Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "crossmem": {
      "command": "crossmem",
      "args": ["mcp", "serve"]
    }
  }
}