Connect AI agents to the memories.sh memory layer via MCP (Model Context Protocol).
The CLI is the primary interface for memories.sh — use memories generate to create native config files for each tool. The MCP server is a fallback for real-time access when static configs aren't enough. It's also the best choice for browser-based agents (v0, bolt.new, Lovable) where the CLI can't run.
Always start with getcontext — it returns active rules + relevant memories in one call:
Memories.sh를 위한 MCP 서버 통합 — AI 에이전트를 위한 영구 메모리 계층입니다. 사용 시기: (1) 모든 클라이언트(Claude Code, Cursor, Windsurf, VS Code, v0, Claude Desktop, OpenCode, Factory)에 대한memory.sh MCP 서버 구성, (2) MCP 도구를 사용하여 프로그래밍 방식으로 메모리 저장, 검색 또는 검색, (3) get_context 대 search_memories 대 list_memories 이해, (4) SSE 콘텐츠용 스트리밍 메모리 도구 작업, (5) MCP 연결 문제 해결, (6) 클라우드 MCP 중에서 선택 (HTTP) 및 로컬 MCP(stdio) 전송. 출처: webrenew/memories.