# MemoryMCP

通用AI记忆服务 - 让任何AI拥有持久记忆能力

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add jhongjun1981/MemoryMCP

# Browse available tools
npx -y @smithery/cli@latest tool list jhongjun1981/MemoryMCP

# Get full schema for a tool
npx -y @smithery/cli@latest tool get jhongjun1981/MemoryMCP save_memory

# Call a tool
npx -y @smithery/cli@latest tool call jhongjun1981/MemoryMCP save_memory '{}'
```

## Direct MCP Connection

Endpoint: `https://memorymcp--jhongjun1981.run.tools`

**Required config:**
- `token` (query) — Bearer Token for authentication

## Tools (8)

- `save_memory` — 保存一条新记忆到持久存储。如果同名记忆已存在则自动更新。
- `get_memory` — 获取一条记忆的完整内容。
- `search_memories` — 搜索记忆（全文搜索，支持中英文）。
- `update_memory` — 更新一条已有记忆。
- `delete_memory` — 删除一条记忆（软删除，可恢复）。
- `list_memories` — 列出记忆（摘要模式，不含正文内容）。
- `recall` — [重要] 智能回忆 - 你必须在每次新对话的第一轮回复前调用此工具（不传 topic），获取用户信息和历史上下文。
- `smart_note` — [重要] 智能笔记 - 当用户说了值得记住的内容时，立即调用此工具自动保存。

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get jhongjun1981/MemoryMCP <tool-name>
```

## Prompts (1)

- `memory_guide` — 获取记忆管理指南 - AI 客户端应在系统提示中加载此指南以启用智能记忆管理
