Lupa — local file search for your Mac

io.github.paeyoungpark-web由 GitHub 账号 paeyoungpark-web 发布v0.2.0更新于 Oct 24, 2026

Search your Mac's files by name and by text inside documents. Local index, Korean-aware.

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

让 AI 助手通过本地 Lupa 应用的索引,按文件名和文档内文搜索 Mac 上的文件。

可以做什么
  • 按文件名和正文搜索文件,返回排序后的路径与匹配片段
  • 读取文档已提取的文本,无需打开原文件
  • 按名称、内容、文件夹、扩展名、类型、大小和日期筛选查询,支持韩文与中文前缀
  • 可搜索 PDF、Word、Excel、PowerPoint、纯文本、韩文 HWP/HWPX 以及经 OCR 的扫描版 PDF
适用场景
适合需要在不授予文件系统访问权限的情况下,让助手查找或引用 Mac 上文档(合同、报告、表格等)的场景。最适合已在 Lupa 应用中建立索引的 macOS 用户。
运行要求
仅限 macOS,需从 Mac App Store 安装 Lupa 应用,添加文件夹并等待索引完成;读取文档正文需 Lupa 2.0 或更高版本。通过 npx(Node.js)在本地运行,无需账号、API 密钥或配置。图形界面客户端可能需要登录 shell(如 /bin/zsh -lc)才能找到 npx;若 Lupa 安装位置特殊,可用 LUPA_SEARCH_PATH 指定 lupa-search 可执行文件。
安装前请注意
助手可读取 Lupa 已索引文件夹中任何文档的内容,请只索引你愿意暴露的文件夹。每次工具调用默认写入本地审计日志(可用 LUPA_MCP_AUDIT=off 关闭)。每份文档只索引开头部分,长文件会被截断。免费版 Lupa 索引最多覆盖 50,000 个文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lupa — local file search for your Mac,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

lupa-mcp

Let your AI agent search the documents on your Mac — by what's written inside them.

An MCP server for Lupa, a macOS file search app with its own index. Your agent asks Lupa; Lupa answers from a local index in ~30 ms. Nothing touches the network.

"find the contract that mentions the penalty clause"        ↓   lupa_search  →  ranked paths + matching snippets   lupa_read    →  the document's text, without opening the file

Searches file names and document contents: PDF, Word, Excel, PowerPoint, plain text, Hangul HWP/HWPX, and scanned PDFs read with OCR.

Why this instead of find/grep

find / grep / mdfindlupa-mcp
Searches inside PDF, DOCX, HWPnoyes
Scanned documents (OCR)noyes
Korean partial words and particlespoorlyyes — 보호정책 finds 정보보호정책서.hwp
Speed on a large diskseconds~30 ms (indexed)
Agent needs file system accessyesno — Lupa reads the files, not your agent

That last row is the point. Your agent gets document contents without you granting it access to your disk.

Requirements

The Lupa app must be installed — this server reads the index that Lupa builds; it does not index anything itself.

  1. Install Lupa (free) from the Mac App Store: https://lupa.kr
  2. Open it, add the folders you want searchable, and let indexing finish.

macOS only.

Install

Claude Code

bash
claude mcp add lupa -- npx -y lupa-mcp

Claude Desktop / Cursor / any MCP client — add to the client's MCP config:

json
{  "mcpServers": {    "lupa": { "command": "/bin/zsh", "args": ["-lc", "npx -y lupa-mcp"] }  }}

That's it. No API key, no account, no configuration.

Why /bin/zsh -lc? GUI apps don't inherit your shell's PATH, so a bare "command": "npx" fails to start with env: npx: No such file or directory (measured on Claude Desktop and Aside). A login shell finds npx wherever it lives — Homebrew, nvm, or a system install. In a terminal-based client (Claude Code, Codex) plain npx -y lupa-mcp is fine.

Agents: don't run lupa-search through your shell. Sandboxed agent shells (Aside, Codex) kill the App Store-signed CLI at launch — exit code 133 or 134. Register this MCP server instead; it starts outside that sandbox. Full guide: https://lupa.kr/agents.html

Tools

lupa_search

argumentdefaultmeaning
query—see syntax below
limit10results to return (max 50)
names_onlyfalsefile names only, ignore contents (faster)
snippet_chars160truncate each snippet (0 = none)

lupa_read

Returns the text Lupa already extracted from a file — cheaper than reading the original, and it works for formats your agent cannot parse. Requires Lupa 2.0 or later.

argumentdefaultmeaning
path—absolute path, as returned by lupa_search
max_chars8000cap the returned text (0 = no limit)

Query syntax

word1 word2      files matching ALL words rank firstn:word           file name only          (name:, 이름:, 文件名:)c:word           document content only   (content:, 내용:, 内容:)f:word           folder path contains    (폴더:, 文件夹:)-word            exclude"exact phrase"   literal match.pdf  *.mp3  report*      extension / wildcardkind:document    document · pdf · hwp · image · video · audio · code · archive · appsize:>10mb       size:<1mbdate:today       date:week · date:month · date:7d · date:2026-06

Korean and Chinese prefixes work too (종류: 크기: 날짜: / 种类: 大小: 日期:).

Korean is handled properly — partial words inside compounds and attached particles both match, which is what Spotlight gets wrong.

Audit log

Every tool call is recorded on your Mac so you can see what an agent searched for and which files it was shown:

~/Library/Logs/Lupa/mcp-audit.jsonl

Each line has the time, the calling client (e.g. Claude Code, Cursor), the tool, the query or path, the paths returned, and whether it succeeded. Snippets and document text are not logged. The file is readable only by you (0600) and never leaves the Mac.

Lines are hash-chained: each entry includes the hash of the previous one, so editing or removing a line is detected. This makes the log tamper-evident, not tamper-proof — deleting the whole file and starting over is still possible.

bash
npx lupa-mcp audit            # last 20 callsnpx lupa-mcp audit -n 100npx lupa-mcp audit --verify   # exit 0 if the chain is intact, 1 if a line was changed or removed

Turn it off with LUPA_MCP_AUDIT=off, or move it with LUPA_MCP_AUDIT_PATH=/path/to/file.jsonl.

Privacy

Everything runs on your Mac. Lupa has no network code at all, and this server only launches Lupa's bundled command-line tool and passes the results to your agent. Nothing is uploaded, and there is no telemetry.

Notes

  • Lupa's free index covers up to 50,000 files. This server inherits whatever the app indexed — there is no separate limit or paywall here.
  • Only the beginning of each document is indexed, so lupa_read truncates long files.
  • If Lupa is installed somewhere unusual, set LUPA_SEARCH_PATH to the lupa-search binary inside the app bundle.

Troubleshooting

messagefix
"Lupa를 찾을 수 없습니다" / not foundInstall Lupa from the Mac App Store
"검색 인덱스가 없습니다"Open Lupa, add folders, wait for indexing
"본문 읽기를 지원하지 않습니다"Update Lupa to 2.0 or later
No results for a file you know existsIts folder may not be registered in Lupa

License

MIT

来源:README.md,提交 be21b24

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 21, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分