
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.
概覽
讓 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 執行檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Lupa — local file search for your Mac,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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.
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
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.
- Install Lupa (free) from the Mac App Store: https://lupa.kr
- Open it, add the folders you want searchable, and let indexing finish.
macOS only.
Install
Claude Code
Claude Desktop / Cursor / any MCP client — add to the client's MCP config:
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 withenv: npx: No such file or directory(measured on Claude Desktop and Aside). A login shell findsnpxwherever it lives — Homebrew, nvm, or a system install. In a terminal-based client (Claude Code, Codex) plainnpx -y lupa-mcpis fine.
Agents: don't run
lupa-searchthrough 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
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.
Query syntax
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:
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.
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_readtruncates long files. - If Lupa is installed somewhere unusual, set
LUPA_SEARCH_PATHto thelupa-searchbinary inside the app bundle.
Troubleshooting
License
MIT
來源:README.md,提交 be21b24
工具
0版本歷史
1- v0.2.0最新Sep 21, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分

