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.

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

僅限 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。
安裝前請注意
助理可以讀取 Lupa 已索引資料夾中任何文件的內容,因此應謹慎選擇這些資料夾。預設情況下每次工具呼叫都會寫入本機稽核日誌,記錄呼叫的用戶端、工具、查詢或路徑以及回傳的路徑,但不記錄片段和文件文字;可用 LUPA_MCP_AUDIT=off 關閉。該日誌可偵測竄改,但並非無法竄改。免費索引最多涵蓋 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,提交 6e3d8db

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:軟體包安裝失敗。

版本歷史

1
  1. v0.3.1最新Oct 25, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分