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 分