
Cairn
io.github.luckyjackluo由 GitHub 帳號 luckyjackluo 發布v0.2.0更新於 Oct 24, 2026
Local-first file-organization tools for your AI agent: tag, query, and digest a folder. No cloud.
發布方自己的服務:Cairn.ink Memory
概覽
Cairn 為 AI 助理提供本機工具,用來列出、讀取、搜尋、加上標籤、編輯、移動並語意檢索指定資料夾中的檔案。
- 可以做什麼
- Cairn 是一套透過 MCP 提供的本機優先檔案整理工具。它提供唯讀工具,例如 list、read、search、grep 和 retrieve,以及 move、delete、edit 等破壞性工具,後者由用戶端先確認。它也能把 docx、pdf、pptx、xlsx、md 等文件匯入為可編輯的 .uni 文件,標籤存放在檔案內部。所有操作都基於一般目錄,不需要外部資料庫。
- 適用情境
- 當你希望助理整理、標記並搜尋本機上的筆記或文件資料夾時使用。它適合 Claude Code、Codex、Cursor 或任何 MCP 用戶端,並帶有操作確認提示。它不用於雲端同步或團隊共享儲存。
- 執行需求
- 透過 PyPI 套件 cairn-mcp-server 以 stdio 在本機執行,通常用 uvx 啟動,因此需要安裝 uv。設定 CAIRN_WORKSPACE 或傳入 --workspace 指定要操作的資料夾;未設定時預設為目前工作目錄。預設的詞法檢索不需要帳號或 API 金鑰;選用的向量檢索需要 OpenAI 相容端點的金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Cairn,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Cairn
A local-first, open-source harness for organizing your files with an AI agent.
Point Claude Code, Codex, Cursor — any MCP client — at a folder, and your agent gains a full file-organization toolset: list, read, search, grep, edit, move, tag, import documents, and semantically retrieve. No account, no cloud, no UI required. Your files never leave your machine.
Then ask your agent to "organize this folder and tag everything" — it will, using tools that run locally over your own files.
A cairn is a stack of stones that marks a trail. This one keeps your files in order and shows the way through them.
Quickstart (2 minutes)
If you use Claude Code, setup is one command — the only prerequisite is
uv, which provides uvx:
Reopen Claude Code and ask:
"Organize this folder and tag everything."
Cairn's tools run locally over your files — reads happen freely, and any move/rename/edit asks for confirmation first. The first run auto-downloads the package (~5s); no clone, no build, no account.
[!TIP] Point
--workspaceat a copy of some notes for your first run — Cairn can move, rename, and edit files.
Using Codex? Same one-command flow (then run /mcp in a session to confirm):
Using Cursor or another MCP client? Same package, JSON config:
~ is expanded by Cairn, so ~/Documents/notes works in the CLI and in config files alike.
Just want to poke at it, no agent?
Why a harness
The agent-harness ecosystem converged on a clear pattern: the model and the agent loop are commodities supplied by the client (Claude Code, Codex, OpenCode). The durable value is the tools and the local data. So Cairn ships tools, not an agent — the client provides the loop, the approval prompts (driven by our tool annotations), and the chat. Cairn is just the local file-organization toolset that snaps into whatever harness you already use.
Architecture
Everything is a thin adapter over one standard-library core, so the faces can never drift.
Use it
In Claude Code / Codex / Cursor (primary):
The server exposes read-only tools (list, read, search, grep, retrieve) that the client runs freely, and destructive tools (move, delete, edit) that it confirms first — driven by MCP tool annotations, so you get approval prompts with no UI of ours.
As a CLI:
With the optional web UI:
The .uni format
A .uni file is a small JSON document — { uuid, content: "<html>", metadata, tags } — with tags stored in the file. A workspace is just a directory: fully
portable, no external database. Source documents (docx/pdf/pptx/…) import into
editable .uni docs; the originals are kept by default.
Local-first & bring-your-own-key
- No account, no login, no cloud sync. The filesystem is the source of truth.
- The default retriever is lexical and needs nothing. Embeddings are opt-in and
bring-your-own-key (any OpenAI-compatible endpoint, including local servers
like Ollama or LM Studio); vectors live in a local SQLite index under
<workspace>/.cairn/and never leave your machine.
Roadmap
Cairn is young. Rough direction, and where help is most welcome:
- More document faces — richer frontmatter support (nested metadata, dates), and round-tripping edits back into imported source formats.
- Smarter digests — summaries that use an embedding model when one is
configured, and saved views (
.cairn/views/*.md). - More retrieval backends — pluggable rerankers; first-class local-model presets (Ollama, LM Studio) beyond the generic OpenAI-compatible path.
- Editor/agent integrations — thin recipes for wiring Cairn into common MCP clients and note-taking setups.
- Packaging — signed releases and a Homebrew formula.
Have a use case that doesn't fit? Open an issue or start a discussion.
Contributing
Contributions of every size are welcome — see CONTRIBUTING.md
for the project layout, dev setup, and how to add a tool. Good first issues are
labeled good first issue.
Develop
License
MIT — see LICENSE.
來源:README.md,提交 c43c16c
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Cairn 整合

Cairn.ink Memory
ink.cairn官方發布者
Cairn.ink Memory 是託管的 MCP 端點,讓助理儲存、回想、檢視、更正與遺忘跨工作階段的記憶,每筆記憶都附有來源憑證。

Cairn Commons (read-only)
由 GitHub 帳號 cairncommons 發布
唯讀的遠端 MCP 伺服器,讓程式設計助理依錯誤文字、套件名稱與版本查詢經核實、鎖定版本的相依性缺陷紀錄。

Cairn Remembers
由 GitHub 帳號 CairnRemembers 發布
為 AI 代理設計的本地優先情境記憶:把決策、筆記與更正存進單一 SQLite 記憶庫,任何支援 MCP 的助理都能檢索與寫入。

Cairn
由 GitHub 帳號 jasondostal 發布
自架的持久記憶伺服器,讓助理跨工作階段、跨專案儲存、搜尋與回想決策、事實與模式。

Cairn
由 GitHub 帳號 cybort360 發布
把 Claude Code 的工作工作階段、檔案編輯與任務記錄到 Cairn 帳號,讓助理能登記活動與專案筆記。