CLI Reference
memories serve
Start the MCP server.
memories serveStart the Model Context Protocol (MCP) server using stdio transport. This allows MCP-compatible AI tools to read and write memories directly, without generating intermediate files.
Usage
memories serveThe server starts on stdio (standard input/output), which is the transport used by most MCP client integrations. Diagnostic messages are logged to stderr to avoid interfering with the protocol.
What It Provides
The MCP server exposes 7 tools and 3 resources. See the MCP Server documentation for the complete reference.
Tools
get_context— Get rules and relevant memories (primary tool for AI agents)add_memory— Store a new memorysearch_memories— Full-text searchget_rules— Get all active ruleslist_memories— List recent memoriesedit_memory— Update a memoryforget_memory— Soft-delete a memory
Resources
memories://rules— All active rulesmemories://recent— 20 most recent memoriesmemories://project/{projectId}— All memories for a specific project
Integration
To connect the MCP server to your AI tool, add it to the tool's MCP configuration. See the Integrations guide for tool-specific setup instructions.