對你的筆記進行本機 RAG
何時使用: 你需要對 Markdown 筆記進行快速、私密的檢索。
步驟
-
索引wax index ~/notes✓ 已複製→ 向量建立完成
-
連接 MCP將 wax 加入為 MCP 伺服器。✓ 已複製→ 工具可見
-
查詢詢問 Claude——檢索速度次毫秒級。✓ 已複製→ 引用回傳
結果: 無需雲端向量資料庫的私密、快速 RAG。
作者 christopherkarani · christopherkarani/Wax
Apple Silicon 原生向量記憶——Metal 加速、次毫秒級檢索,打包成本機執行的 Swift 二進位檔。
Wax 是專為 Apple Silicon 調優的記憶層:Metal 核心的 HNSW、in-process Swift API、MCP 前端。適合在 Mac 上需要快速 RAG 而不想架設獨立向量資料庫的本機 agent。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"wax-mcp": {
"command": "wax",
"args": [
"mcp"
]
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"wax-mcp": {
"command": "wax",
"args": [
"mcp"
]
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"wax-mcp": {
"command": "wax",
"args": [
"mcp"
]
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"wax-mcp": {
"command": "wax",
"args": [
"mcp"
]
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "wax-mcp",
"command": "wax",
"args": [
"mcp"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"context_servers": {
"wax-mcp": {
"command": {
"path": "wax",
"args": [
"mcp"
]
}
}
}
}
加入 context_servers。Zed 儲存後熱重載。
claude mcp add wax-mcp -- wax mcp
一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。
何時使用: 你需要對 Markdown 筆記進行快速、私密的檢索。
結果: 無需雲端向量資料庫的私密、快速 RAG。
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| index | (詳見文件) | 索引一個目錄 | 1 次呼叫 |
| query | (詳見文件) | 對索引進行 k-NN 查詢 | 1 次呼叫 |
無 Metal 裝置Wax 需要 Apple Silicon;在 Intel 上會回退至 CPU 但速度較慢
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| memsearch | 跨平台使用 | 無 Metal 加速 |