/ 目录 / 演练场 / Wax
● 社区 christopherkarani ⚡ 即开即用

Wax

作者 christopherkarani · christopherkarani/Wax

Apple Silicon 原生向量记忆——Metal 加速、亚毫秒级检索,打包成本地运行的 Swift 二进制。

Wax 是专为 Apple Silicon 调优的记忆层:Metal 内核驱动 HNSW、进程内 Swift API、MCP 前端。适合需要快速私有 RAG 而不想另起向量数据库的 Mac 本地 agent。

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wax-mcp": {
      "command": "wax",
      "args": [
        "mcp"
      ]
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "wax-mcp": {
      "command": "wax",
      "args": [
        "mcp"
      ]
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "wax-mcp": {
      "command": "wax",
      "args": [
        "mcp"
      ]
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "wax-mcp": {
      "command": "wax",
      "args": [
        "mcp"
      ]
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "wax-mcp",
      "command": "wax",
      "args": [
        "mcp"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "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 卸载。

使用场景

实战用法: Wax

对本地笔记做私有 RAG

👤 开发者 ⏱ ~15 min intermediate

何时使用: 你希望对 Markdown 笔记做快速、私密的语义检索。

步骤
  1. 索引
    wax index ~/notes✓ 已复制
    → 向量构建完成
  2. 接入 MCP
    Add wax as MCP server.✓ 已复制
    → tool 可见
  3. 查询
    Ask Claude — retrieval is sub-ms.✓ 已复制
    → 附带引用的结果

结果: 私有、快速的 RAG,无需云端向量数据库。

组合

与其他 MCP 搭配,撬动十倍杠杆

wax-mcp + filesystem

对项目目录树建立索引

Combine wax-mcp with filesystem: Index your project tree✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
index (见文档) 对目录建立索引 1 次调用
query (见文档) 在索引上做 k-NN 查询 1 次调用

成本与限制

运行它的成本

API 配额
本地资源
每次调用 Token 数
片段极小
费用
免费开源
提示
大规模变更后重建索引;支持增量更新

安全

权限、密钥、影响范围

凭据存储: 磁盘上的索引文件
数据出站:

故障排查

常见错误与修复

找不到 Metal 设备

Wax 需要 Apple Silicon;Intel 上回退到 CPU 但速度更慢

替代方案

Wax 对比其他方案

替代方案何时用它替代权衡
memsearch跨平台场景无 Metal 加速

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills