
Bookmarks Lifecycle
io.github.Fisher521由 GitHub 账号 Fisher521 发布v0.2.0更新于 Oct 24, 2026
Bookmarks on a decision clock: 24 hours to decide, 30 days to watch, or keep. Never deletes.
概览
让助手把已保存的浏览器书签放到决策时钟上,分为保留、观察或放手,且从不删除任何内容。
- 可以做什么
- 这是一个本地 MCP 服务器,会汇总浏览器书签并让它们在五种状态间流转:inbox、pending(24 小时内决定)、watching(30 天)、kept 和 lapsed。工具包括 intake、today、decide、list_layer、restore、undo 和 stats,另有两个提示词用于首次设置和每日整理。条目按每日限额滴入待处理队列,每次状态变更都可通过历史事件撤销。任何内容都不会被删除,已失效条目仍可恢复。
- 适用场景
- 适合保存书签的速度快于整理速度、希望助手带你处理每日小队列而不是面对不断堆积的清单的人。也适合偏好按需使用、没有提醒和后台进程的工具,而非养成习惯类应用的用户。
- 运行要求
- 通过 npx(Node.js)以 stdio MCP 服务器形式在本地运行;无需账号、API 密钥或网络访问。在 macOS 上读取 Safari 书签需要为主机应用授予完全磁盘访问权限。自定义 Chromium 配置文件需要设置 CHROMIUM_BOOKMARKS_PATH 环境变量。可选设置包括 BOOKMARKS_LIFECYCLE_PENDING_HOURS、BOOKMARKS_LIFECYCLE_WATCHING_DAYS、BOOKMARKS_LIFECYCLE_DRIP_PER_DAY、BOOKMARKS_LIFECYCLE_AUTO_DECIDE 和 BOOKMARKS_LIFECYCLE_STATE_DIR。
安装
在 SourceWeft 中
- 打开 控制台中的 Bookmarks Lifecycle,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
bookmarks-lifecycle
Give your saved bookmarks a lifecycle.
Saving is easy. Almost nothing you save ever gets decided about — it just accumulates. This is a local MCP server that puts every bookmark on a clock: 24 hours to decide, or 30 days to keep watching, or keep it for good. Nothing is ever deleted — a bookmark that times out without a decision just leaves your attention, not your disk, and every change (including ones an AI made) can be undone.
The model
Five states:
From pending you can go to any of the three outcomes. From watching, a
decision can only be keep — that matches the model above; to back out of a
watch or a drop, use undo rather than re-deciding an item that's
already moved on.
Bookmarks don't all land in pending the moment you aggregate them — a
one-time import of 3,000 old bookmarks would otherwise all time out on the
same day and the mechanism would mean nothing. They drip in at a daily
rate instead (default 15/day, oldest first — by real save date when the
source provides one). This is computed lazily whenever you call a tool, not
by a background timer, and it does not accumulate across a long absence:
however many days you've been away, one call promotes at most one day's
quota. A 3,000-bookmark backlog at 15/day realistically takes months of
daily visits to clear — that's an honest tradeoff of "no reminders, nothing
runs unless you ask", not a claim that this replaces a habit-forming app.
Install
No account, no API key, no configuration — it works the moment it's installed.
Claude Code:
Claude Desktop / Cursor / any MCP client (mcpServers JSON):
To run from source instead (for development), clone parse-bookmarks,
bookmarks-mcp, and this repo as sibling directories, run npm install in
bookmarks-mcp and then in bookmarks-lifecycle, and point your client at
node /absolute/path/to/bookmarks-lifecycle/src/index.js.
Use -s user. Without it the scope defaults to local, which registers the
server only for the directory you ran the command in — you'd have to be inside
that folder for your assistant to see it. Your bookmarks have nothing to do with
which code project you happen to be sitting in, so register it once for your
whole account.
Config file locations (for the JSON form above):
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) - Cursor:
~/.cursor/mcp.json(or per-project.cursor/mcp.json)
Verifying it's connected: ask your assistant to call the stats tool, or
check your client's MCP/server log — a successful initialize handshake and
a tools/list containing intake, today, decide, list_layer, restore, undo, stats means it's up.
After changing any environment variable below, fully restart your MCP client's connection to this server (quit/reopen Claude Desktop, or restart the Cursor MCP process) — it reads them once at startup.
First run
If you're on macOS and want Safari bookmarks included, the app hosting this
server (Claude Desktop, your terminal, Cursor) needs Full Disk Access
(System Settings → Privacy & Security → Full Disk Access) — ~/Library/Safari
is protected. Without it, intake's response will show "sourceStatus": "permission_denied" and a warnings entry explaining exactly that; it will
NOT silently look like an empty result. Chromium browsers and Firefox need
nothing extra.
Call intake first — nothing shows up in today until you do. Then today
gives you the day's actual queue. If both intake and today come back
completely empty and sourceStatus says "ok", that's an honest "you have
no bookmarks in the sources this scanned" — check sourceStatus before
assuming something's broken:
no_sources even though you can see bookmarks in your browser? This detects
Chromium browsers (Chrome, Edge, Brave, Arc, Vivaldi, Chromium) only in their
standard per-OS install locations. If your browser uses a custom profile or
data directory (a separate work profile, a portable install, a renamed user
data folder, …), it won't be found automatically:
- Open
chrome://versionin that browser (edge://version,brave://version, etc. — the same page exists in every Chromium browser) and copy the value next to Profile Path. - In your MCP client's config for this server, add an environment variable
CHROMIUM_BOOKMARKS_PATHset to that path with/Bookmarksappended, e.g."/Users/you/Library/Application Support/BraveSoftware/Brave-Browser/Custom/Bookmarks". Comma-separate multiple paths if you have more than one profile to include. - Fully restart the MCP client's connection to this server (see Configuration below).
This doesn't apply to Safari — see the Full Disk Access note above instead.
Talking to it
You never call these tools yourself — your assistant does. You just talk. If
you'd rather be walked through it, run the clean_up_my_bookmarks prompt
once (in Claude Code: /mcp; in Claude Desktop: the prompts menu) and it will
set you up and do one round with you.
Otherwise, plain sentences are enough:
Two things worth knowing on day one:
- Nothing reminds you. There is no background process and no notification. The queue only moves when you ask — which also means it can never surprise you.
- An empty result explains itself. Every response carries a
nextSteptelling your assistant what to suggest, so "0 items" never has to be guessed at: it will say whether you simply haven't scanned yet, whether today's batch is done, or whether a source failed to read.
Tools
Every read tool (today/list_layer/stats) may still write to disk on
the call you make: expiry and drip are computed lazily, so even "just
looking" can move items between layers as a side effect. It only writes
when something actually changed — a call that finds nothing due and nothing
to drip touches nothing.
Plus two prompts:
Both intake and today also return a nextStep object (code + why) so
your assistant knows what to suggest next instead of inferring it from an
empty list. It is operational guidance only — never promotion.
Honesty about authorization
This server cannot verify that a tool call attributed to "user" actually
came from you confirming something. Every parameter it receives — including
actorClaim: "user" — comes from the AI, over the same channel as everything
else. There is no separate, trusted channel this code can check. An earlier
version of this README claimed "AI can't act without your say-so" as a
server-enforced guarantee; that was tested and shown to be false — an AI
that simply omits the field, or claims "user", goes through unchallenged.
We're not going to repeat that claim.
What's actually true:
- Whether an AI needs your click-through before it can call a mutating tool depends on your MCP client's own tool-approval settings — Claude Desktop and Cursor both have per-tool or per-session approval prompts. That's the real gate, and it lives in your client, not in this server.
actorClaim: "ai"is rejected unless you've explicitly setBOOKMARKS_LIFECYCLE_AUTO_DECIDE=true— but a caller can just omit the field (recorded as"mcp-client") or claim"user"instead, so don't treat this as a security boundary either.- What this server actually guarantees is reversibility. Every mutation
— including ones made under
autoDecide, including expiry, including drip — is undoable.restorereverseslapsed → pending.undoreverses any state change, includingkeptandwatching, by history event, with apreviewmode to check first. If an AI does something you didn't want, the fix isundo, not a promise that it couldn't have happened. historyrecordsby: "user" | "ai" | "mcp-client" | "drip" | "expiry" | "system"on every change. The first two are claims, not verified identity — treat them as a hint for your own review, not evidence.
Configuration
All via environment variables in your MCP client config — none require touching this package's code. Restart your MCP client's connection after changing any of these.
What gets stored
One file: ~/.bookmarks-lifecycle/state.json. Plain JSON, human-readable.
Writes are atomic (temp file → fsync → rename, never a partial write left
behind mid-crash) and the previous generation is kept as state.json.bak
before each overwrite.
Per bookmark: id, url, title, the browser source(s) it's known from (a URL
saved in two browsers keeps both), when it was actually added according to
the browser (addedAt, used for oldest-first ordering — null if the
source didn't provide one, never fabricated), current lifecycle state, when
it entered that state, a full history of every transition (each with a
stable eventId, when, who/what did it, and an optional note), and a
sourceGone flag for bookmarks no longer found in any source that was
successfully re-scanned (their record stays — nothing here is ever
auto-deleted; a source that merely failed to read never counts as
evidence something's gone).
Only identifiers and your own judgments are stored — never the page content
itself. The file has an internal version; if a future version of this tool
writes a shape this version doesn't understand, this version refuses to
touch the file rather than guess.
Concurrent access: if two MCP clients (say, Claude Desktop and Cursor)
run this server against the same state file at once, a lock file
(state.json.lock) serializes them — the second one waits briefly rather
than silently overwriting the first one's changes.
Time zone
stats's "today" (for decidedToday) uses the local calendar day on the
machine running this server. Because this server only ever runs on your own
machine (it reads local browser files directly — there's no remote/hosted
deployment of it), that's the same clock you're living by, so this is
intentional, not a bug to fix. The 24h/30d layer durations are strict
elapsed-time windows, not calendar-day counts — a daylight-saving transition
shifts wall-clock time without changing how long 24 hours actually is.
Guarantees
- Never touches a browser bookmark file. Reading is entirely delegated
to
bookmarks-mcp, which is itself read-only. The only files this package ever writes are its ownstate.json,state.json.bak, and a transient lock file. - No lifecycle record is ever deleted, and every state change is reversible — see Honesty about authorization for exactly what that does and doesn't protect against.
- No network calls, no telemetry, no accounts.
Design boundaries
- No background process, no cron, no push notifications. Everything here is computed lazily, the instant you call a tool — that's what makes "no daemon" possible. The honest tradeoff: if you don't come ask, the queue just quietly lapses. Nobody reminds you.
- No UI. This stays an MCP tool, not an app.
- Bring your own AI. This server does no inference and charges nothing — the AI judging your bookmarks is whatever you've already connected it to. What this project provides is the state machine and the prompt, not a model.
Who makes this
Built by the team behind Burn 451 — the 24h / 30-day mechanic here is modeled on Burn's. The difference: this tool only runs when you ask it to, right where you're already working. If you want the same idea running automatically, reminding you daily, and reachable from your phone, that's what Burn is — this project stays useful on its own either way.
License
MIT
来源:README.md,提交 d443c8d
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分