New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

lupa-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lupa-mcp

MCP server for Lupa — search your Mac's files by name and document content (PDF, DOCX, XLSX, PPTX, HWP, scanned PDFs via OCR). Korean-aware, ~30ms, fully local.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
129
Maintainers
1
Weekly downloads
 
Created
Source

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.

  • 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 mcp add lupa -- npx -y lupa-mcp

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

{
  "mcpServers": {
    "lupa": { "command": "npx", "args": ["-y", "lupa-mcp"] }
  }
}

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

Tools

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 first
n: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 / wildcard
kind:document    document · pdf · hwp · image · video · audio · code · archive · app
size:>10mb       size:<1mb
date: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.

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

Keywords

mcp

FAQs

Package last updated on 21 Sep 2026

Related posts