
Lupa — local file search for your Mac
io.github.under71由 GitHub 帳號 under71 發布v0.3.1更新於 Oct 25, 2026
Search your Mac's files by name and by text inside documents. Local index, Korean-aware.
概覽
僅限 macOS 的 MCP 伺服器,讓助理依檔名和文件內文字搜尋 Lupa 應用程式已建立索引的檔案,並讀取已擷取的文件文字。
- 可以做什麼
- 依檔名、文件內容、資料夾路徑、副檔名、類型、大小或日期搜尋已索引的 Mac 檔案,回傳排序後的路径和符合片段,並可限制結果數量或只回傳檔名以加快速度。讀取 Lupa 已從檔案擷取的文字,不必開啟原始檔案,也支援助理本身無法解析的格式。查詢支援僅檔名、僅內容、資料夾、排除、精確片語、萬用字元、類型、大小和日期等前綴,並提供韓文與中文前綴寫法。
- 適用情境
- 適合助理需要依文件內文字在 Mac 上尋找檔案的情況,例如 PDF、Word、Excel、PowerPoint、韓文 HWP/HWPX 或經 OCR 辨識的掃描 PDF,同時不必授予助理直接存取磁碟的權限。也適合處理 Spotlight 表現不佳的韓文部分詞和助詞比對。
- 執行需求
- 僅支援 macOS。必須安裝 Mac App Store 中的 Lupa 應用程式,加入資料夾並等待索引完成;伺服器只讀取 Lupa 的索引,本身不建立索引。透過 npx(Node.js)在本機執行。不需要 API 金鑰或帳號。讀取文件文字需要 Lupa 2.0 或更新版本。可選環境變數 LUPA_SEARCH_PATH、LUPA_MCP_AUDIT 和 LUPA_MCP_AUDIT_PATH。
安裝
在 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,提交 6e3d8db
工具
0版本歷史
1- v0.3.1最新Oct 25, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分