
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 账户,让助手能够登记活动与项目笔记。