Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itYour personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
One address for any MCP client. You sign in at app.keepfor.me once, after adding it.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
| Access to | Read | Change |
|---|---|---|
| Read | ||
| Write |
From the sign-in at app.keepfor.me, as the endpoint publishes it. You approve it there.
Odel could not list its tools without signing in.
A thin, fast read-it-later and personal library application running entirely on Cloudflare Python Workers, D1 SQLite with FTS5, Vectorize, R2, and the Model Context Protocol (MCP).
Visual assets and walkthrough guide: see docs/images/README.md.
bge-base-en-v1.5). FTS and embedding calls run concurrently, and the vector path is time-bounded so a slow AI binding degrades to keyword-only instead of hanging.trafilatura with OpenGraph metadata fallback so bookmarks are never lost. Browser-identical request headers plus an optional reader-proxy fallback (configurable via READER_PROXY_BASE, off by default) recover many bot-walled (HTTP 403) origins.Extracting…, content, or a failed reason (e.g. HTTP 403) rather than silently stalling. Bulk imports fan out through the queue, never blocking the request.raw.html) and sanitized reader HTML (clean.html)./api/mcp (stateless, Bearer PAT auth) for opencode, Claude Desktop, and Cursor — no local install needed..enex files, and zips of Markdown/text files (Obsidian vaults, Apple Notes via Exporter, Simplenote): tags and original dates are kept, links inside notes become regular saves, attachments are listed but not stored, and re-imports never duplicate (50 MB cap for zips and .enex, 10 MB for HTML/CSV; inside a zip: 2 MB per file, 200 MB total and 20,000 files, so decompression bombs are refused). Every notes upload keeps a status record with its progress and final counts (notes imported, duplicates skipped, links queued, attachments not imported, parse errors, plan-limit skips) and a capped list of error messages, so the result survives a refresh.flowchart LR
Browser["Web UI / PWA / Share Sheet"] -->|FastAPI| Worker["Cloudflare Python Worker"]
Claude["Claude Desktop / MCP Agents"] -->|Streamable HTTP + Bearer PAT| Worker
Worker -->|Queries & FTS5| D1[("D1 Database")]
Worker -->|Enqueue job| Queue["Cloudflare Queue"]
Queue -->|Process batch| Worker
Worker -->|Raw & Clean HTML| R2[("R2 Storage")]
Worker -->|Embeddings| WAI["Workers AI"]
Worker -->|Upsert vectors| Vec[("Vectorize")]
Saving a URL inserts the row with status='queued' and enqueues a job; the queue
consumer fetches, extracts, stores snapshots, and flips it to ok or failed with
a reason. Failures are always visible in the UI and reader.
Two deliberate design choices:
save_item extracts synchronously rather than leaving items stuck
in queued forever.If messages are ever lost, Settings → Re-queue stuck items re-sends jobs for rows
stuck in queued (skips fresh rows so live messages aren't duplicated).
Deleting never destroys. MCP delete_item and DELETE /api/items/{id} set
items.deleted_at and stop there: the row, the R2 snapshots and the vector
embeddings stay, so an agent cannot destroy library data. Trashed items are
invisible everywhere (library, search, MCP reads, counts, exports) until they
are restored.
The Trash view (/trash) lists them with two actions: Restore brings
an item back into the library, Delete forever is the only permanent
delete. Hosts can also run the scheduled cleanup themselves:
from keepfor.models.items import purge_trash
# Hard-deletes trashed items older than 30 days (row, snapshots, vectors).
await purge_trash(db, env, user_id=None, older_than_days=30)
# A multi-tenant host passes the tenant scope: it carries the R2 prefix
# and the Vectorize namespace of the tenant. An unscoped call is refused.
await purge_trash(db, env, user_id=None, older_than_days=30, scope=scope)
Nothing is deleted behind the user's back: without a scheduler the Trash just grows.
READER_PROXY_BASE)By default, Keepfor.me does not route failed fetches to any third-party service. When an origin rejects a direct fetch (HTTP 403, 429, 530), the item is recorded as failed.
To opt in to reader proxy fallback (e.g. using Jina Reader or a self-hosted readability proxy):
READER_PROXY_BASE in wrangler.jsonc (vars.READER_PROXY_BASE = "https://r.jina.ai/") or in .dev.vars.127.0.0.1, 10.0.0.0/8, 192.168.0.0/16) and local domains are strictly blocked by SSRF egress policy and are never forwarded to any reader proxy.For full guidance on private / offline deployments and egress policies, see docs/self-hosting.md.
keepfor.me (or standard *.workers.dev subdomain)Run the following commands once to create your D1 database, R2 bucket, Vectorize index, and Queue:
# 1. Create D1 Database
npx wrangler d1 create keepfor-me-db
# Copy the returned database_id into wrangler.jsonc
# 2. Create R2 Bucket
npx wrangler r2 bucket create keepfor-me-bucket
# 3. Create Vectorize Index (768 dimensions for bge-base-en-v1.5)
npx wrangler vectorize create keepfor-me-index --dimensions=768 --metric=cosine
# 4. Create Queue
npx wrangler queues create keepfor-me-queue
Apply the initial schema (tables, FTS5 virtual table, indexes):
npx wrangler d1 migrations apply keepfor-me-db --remote
For local testing:
npx wrangler d1 migrations apply keepfor-me-db --local
Deploys are manual: self-hosters deploy to their own Cloudflare account via pywrangler deploy or GitHub Actions workflow_dispatch (with input confirm: "deploy"). Pushing to main does not auto-deploy.
Warning
wrangler.jsonc has "remote": true on D1, R2, and Vectorize bindings. Never run local dev against wrangler.jsonc as it interacts directly with remote resources. For local simulation, copy wrangler.local.example.jsonc to wrangler.local.jsonc and run uvx --from workers-py pywrangler dev --config wrangler.local.jsonc.
PyWrangler bundles the Python dependencies declared in pyproject.toml.
# Always dry-run first and check the "Total (N modules)" row: the deploy
# hard-fails if the bundle exceeds 64 MiB.
uvx --from workers-py pywrangler deploy --dry-run
uvx --from workers-py pywrangler deploy
A healthy bundle is roughly 52,000 KiB / ~4,500 modules. If .venv-workers/
paths appear in the module table, the build venv is being bundled and the deploy is
one dependency bump away from failing.
Once deployed, visit your domain (e.g., https://app.keepfor.me or
https://keepfor-me.<your-subdomain>.workers.dev). The first user to register
automatically becomes the admin and locks public registration.
wrangler.jsonc declares a route for app.keepfor.me. Create the DNS record once
(Cloudflare dashboard → DNS → Add record):
| Type | Name | Content | Proxy |
|---|---|---|---|
A | app | 192.0.2.1 | Proxied (orange cloud) |
The Worker route matches before the IP is ever contacted, so the placeholder
address is fine. workers_dev is left enabled so the *.workers.dev URL keeps
working.
Keepfor.me hosts a remote Streamable HTTP MCP server at https://app.keepfor.me/api/mcp,
exposing 46 tools for capturing, finding, reading and tagging your library:
save_url: Save any webpage to your library.save_urls: Save many webpages to your library in one call, with a status for each URL.save_note: Save a note, snippet or prompt template.search_library: Hybrid search across text and meaning.search_passages: Passage-level search with permanent snapshot URLs.find_item: Look up an item id by title or url (no search, no embeddings).get_item: Read metadata and excerpt by id, url or exact title.read_item: Paginated full-text reading.list_items: Compact paginated browse with sorting and filters.reading_history: What you saved and opened, with date filters.related_items: Items similar to a given item or text.list_tags / create_tag / describe_tag / update_tag / rename_tag / merge_tags / delete_tag: Full tag management.tag_item / tag_items / set_item_tags / retag_by_query: Tagging, in bulk and safely (dry-run by default).bulk_update: Update status, pin and tags on every item matching a filter (dry-run by default).suggest_tags / search_tags / tag_stats / related_tags / tag_cleanup: Tag vocabulary tools.find_cleanup: Read-only cleanup report (duplicate urls, dead links, never-opened old items, untagged items, near-duplicate tags).delete_item / list_trash / restore_item / pin_item / update_item: Trash, restore, pin and in-place item updates.library_digest: A compact recap — saves, opens, top tags, unread highlights.create_highlight / list_highlights / update_highlight / delete_highlight: Quote a passage of an item, anchored by character offsets, and edit notes or colors.create_collection / list_collections / add_to_collection / remove_from_collection / rename_collection / delete_collection: Named buckets of library items.get_account: Your plan, the end of the trial and the quota left — free, so it still answers when the quota is exhausted.The server is stateless (no sessions, plain JSON responses, no SSE stream) and authenticates with the same Personal Access Tokens as the REST API.
kfm_live_...).
Pick Read-only in the scope picker if the agent should only be able
to browse and search the library.opencode (opencode.json):
{
"mcp": {
"keepfor-me": {
"type": "remote",
"url": "https://app.keepfor.me/api/mcp",
"headers": { "Authorization": "Bearer {env:KEEPFOR_ME_TOKEN}" }
}
}
}
Then export KEEPFOR_ME_TOKEN=kfm_live_... before launching opencode, and
restart opencode after changing the config.
Cursor / Claude Desktop: add a custom remote MCP server with URL
https://app.keepfor.me/api/mcp and header
Authorization: Bearer kfm_live_YOUR_TOKEN_HERE.
Handshake check without any client:
curl https://app.keepfor.me/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer kfm_live_YOUR_TOKEN_HERE" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
The MCP server exposes 46 tools. The tools that change many items at once take a dry_run flag: it is only accepted as a JSON boolean (omitted means true, a preview), and anything else is rejected rather than applied.
save_url — Save any webpage to your library. Accepts optional agent_summary, why_saved, source_context, saved_by for agent research provenance.save_urls — Save up to 50 webpages to your library in one call, with a status per URL (queued, exists, invalid, over_limit) and the totals. Needs the write scope. The URLs are deduped by canonical URL, every new URL goes through the same save check as save_url (the ones the save limit refuses come back as over_limit), and the extraction is queued, so the call does not wait for the pages.save_note — Save a personal note, code snippet, or prompt template. Accepts the same optional provenance fields.search_library — Hybrid search across text and meaning (item-level results with snippets).search_passages — Passage-level hybrid search over semantic chunks with max_chars budget. Returns chunk_id, char offsets, and permanent snapshot_url (R2 archive) that survives link rot.read_item — Token-efficient paginated reading of full content. Returns text, next_cursor, total_chunks, outline.get_item — Retrieve metadata and excerpt, addressed by item_id, url or exact title. By default caps content_text to excerpt and reports truncated and content_length; use include_content=true for full text.find_item — Find item ids by exact/prefix title or exact/normalized url. No search, no embeddings: the cheap path from a title you know to an item_id you can read.list_items — Compact paginated browse (id, title, url, saved_at, tags — no body). Sorts by saved, opened or title; filters by since/until, domain, pinned, type and tags.reading_history — Reading history with date filtering (since/until), event types (saved/opened), and optional query/tag filters.related_items — Nearest neighbors by vector similarity from an item_id or raw text, with one-line reasons.tag_item — Add or remove tags on a single item.list_tags — Every tag with its item count and last-used date. Sorts by count, name or recent; filters by prefix and min_count.create_tag — Create a tag with optional description, color and parent (hierarchy, e.g. work/research).describe_tag — A tag's metadata, parent, children and item count.update_tag — Edit a tag's description, color or parent.rename_tag — Rename a tag; every item carrying it is updated.merge_tags — Fold several tags into one target tag (at most 20 source tags per call).delete_tag — Remove a tag from items. Items are never deleted. dry_run=true by default: returns the affected count and a sample; dry_run=false applies.tag_items — Add/remove tags across many items. dry_run=true by default. At most 100 items per call; the result reports total_matched and truncated.retag_by_query — Tag items matching a title/url query (plus tag filters). dry_run=true by default. At most 100 items per call; the result reports total_matched and truncated.bulk_update — Update the status, the pin state and the tags of every item matching a filter (status group, saved date range, domain, pinned, type, tags). dry_run=true by default: it reports total_matched, affected and truncated without writing anything. At most 200 items are updated per call, and an empty filter or an empty change is rejected. The whole update is applied in one transaction, and tag names follow the create_tag rules (2-64 characters of a-z, 0-9, space, _ or -).set_item_tags — Replace the whole tag set of one item.suggest_tags — Suggest tags for an item or for free text, drawn from your existing vocabulary first.search_tags — Fuzzy search over tag names and descriptions (machinelearning finds machine-learning).tag_stats — Tag usage statistics for the library.related_tags — Tags that co-occur with a tag on the same items.tag_cleanup — Near-duplicate tags, unused tags and untagged items worth a look.find_cleanup — Read-only cleanup report: duplicate items (same normalized url), dead links (recorded extraction failures — no network requests), never-opened old items, untagged items and near-duplicate tags. Takes categories, older_than_days and a per-category limit (max 100); each category reports the candidates, a count and a truncated flag. The item categories list one id with a reason; the group categories list one entry per group — duplicates gives the group's ids (capped at 10), its size and whether the id list was truncated, near_duplicate_tags gives the group's tag names — so limit caps groups and one url saved 300 times stays a small response.create_highlight — Quote a passage of an item and anchor it with the character offsets it covers inside content_text. start_offset defaults to 0, end_offset to start_offset + len(text); an end offset past the end of the item's content is refused.list_highlights — The highlights of one item, ordered by their position in the text, with the quoted text, offsets, optional note and color.delete_highlight — Remove one highlight. The item it belongs to is never deleted.update_highlight — Edit a highlight: its note and/or its color. The quoted text and offsets are never changed, preserving excerpt integrity. An empty note or color removes it.create_collection — Create a named bucket of library items, with an optional description. Creating one with an existing name returns it unchanged.list_collections — Your collections with their item count and item ids (at most 20 per collection, with items_truncated when there are more).add_to_collection — Put items in a collection, addressed by name or id. At most 100 items per call; the result reports added, skipped and truncated.remove_from_collection — Take items out of a collection. The items themselves are never deleted.rename_collection — Rename a collection. Renaming onto a name that is already taken is refused, never merged.delete_collection — Delete a collection and its links. The items it held are never deleted; use remove_from_collection to empty it.delete_item — Move an item to the Trash. The item leaves the library but is not destroyed: it stays restorable for 30 days, and only the user can delete it for good from the Trash view.list_trash — List items in the Trash: items that were deleted but are still restorable for 30 days. Read-only: changes nothing.restore_item — Restore items from the Trash back into the library (at most 50 per call), restoring original metadata, highlights and collection links.pin_item — Pin or unpin an item to/from the top shelf of the library.update_item — Edit a saved item in place: fix its title, write notes, mark it read or archived, pin or unpin it.library_digest — Read-only recap of the library for a period: saves, opens, top tags and unread highlights. Takes optional since, until and tag; every list in the response is capped.get_account — Read-only report of your account: the plan, trial_ends_at and the quota of every metered action (limit, used, remaining, resets_at). The call is free — it costs no quota unit, so it still answers when the quota is exhausted.All tools declare MCP annotations (readOnlyHint, destructiveHint, idempotentHint). They are advisory hints for the client, and the server uses them to enforce the scopes of a token (see below). A token is never rejected for missing scope information: no scope information means full access. Each description says when to use a tool versus its siblings. List-type responses include limit, offset/cursor, and a fields projection; the default list_items page stays under 4 KB.
Tag filters (tags_all, tags_any, tags_none, untagged) work on list_items, search_library, search_passages, find_item, reading_history and bulk_update, and count child tags: filtering on work also matches work/research.
The server also speaks the resources and prompts parts of the MCP spec, with the same auth and tenant scoping as the tools.
Resources — read-only views of your own library:
| URI | Contents |
|---|---|
keepfor://item/{item_id} | One saved article or note: metadata, tags and the stored text (capped at 20,000 characters, truncated says when it was cut). |
keepfor://tag/{name} | One of your tags, with the items carrying it (at most 50; items_truncated says when there are more). |
resources/list returns your most recent items and most used tags, resources/templates/list returns the two URI templates, and resources/read returns the payload as JSON.
Prompts — reusable templates that read your own data:
| Prompt | Arguments | What it does |
|---|---|---|
research_brief | topic (required), max_items | Briefs the assistant on what you already saved about a topic, so a research session starts from your library. |
weekly_review | days, tag | Reviews what you saved over the last days and asks for a summary and what to read next. |
A Personal Access Token can be limited to read-only. Create it on Settings & API with the Scope picker next to the token name (Full access is the default):
* (all) — the default. Every tool works, exactly as before.read — over MCP the token only sees the read tools in tools/list,
and any write or destructive tool (save_url, save_note, tag_item,
create_tag, update_tag, rename_tag, merge_tags, delete_tag,
tag_items, retag_by_query, bulk_update, set_item_tags,
delete_item, pin_item, create_highlight, delete_highlight,
create_collection, add_to_collection, remove_from_collection,
rename_collection, delete_collection) is refused with a JSON-RPC error
(error.data.type = insufficient_scope) before it runs — nothing is
written.Tokens created before scopes existed keep their full access: their stored
scope is NULL and means "all". Scopes are enforced everywhere a token works:
over MCP each tool needs the scope its annotations declare, and over REST a
read-only token gets 403 on every write route. The exception is the
read-only POST routes /api/search and /search: a search is a read, so a
read-only token may use them. /api/mcp enforces scopes per tool. PATs are
refused on /settings/* entirely, so a token can never mint a broader one.
Self-hosters: the scope column comes from migration 0012_pat_scopes.sql, so
apply the migrations (step 3 above) before deploying.
iOS WebKit sandboxes PWAs from the system share sheet. Keepfor.me provides two zero-friction capture methods for iOS:
Go to Settings and drag the Keepfor.me button to your browser's bookmarks bar. Click it on any page to open a quick-save dialog.
Bookmarklets always show a generic globe icon. To get the app icon: bookmark any page on your domain, edit that bookmark, paste the copied code (Settings → Copy code) as its URL, and name it
Keepfor.me.
chrome://extensions/.keepfor.me/browser-extension folder.⚙️), then save any tab with Alt+S.Install the project and its test dependencies, then run the pytest suite:
python3 -m pip install -e . pytest pytest-asyncio pytest-cov httpx
python3 -m pytest tests/ -q
Run pytest from the repo root — keepfor resolves as a namespace package only
when the root is on sys.path.
Lint and format exactly as CI does (bare ruff check . uses different rules and
will pass on things CI rejects):
ruff check keepfor/ tests/ --select=E,W,F,I,N
ruff format --check keepfor/ tests/
To run the local Worker preview with its Python dependencies:
uvx --from workers-py pywrangler dev
Local dev has no queue consumer, so saved links extract inline and show content immediately.
Cold starts dominate perceived latency on Python Workers: page loads sit around 250ms warm but can spike past 1.5s when an isolate boots.
trafilatura, bs4, lxml)
are imported lazily inside the extraction code. A regression test asserts
they stay out of the request import path.asyncio.gather), bounded by a 5s timeout.(user_id, created_at DESC) and
(user_id, status, created_at DESC)) eliminate SQLite in-memory temporary B-tree
filesorts (USE TEMP B-TREE FOR ORDER BY). Status counts, feed items, and tag
aggregations are parallelized via asyncio.gather, and multi-statement tag/deletion
mutations are batched via execute_batch to minimize RPC roundtrips.If you find Keepfor useful, you can support its development:
Support Keepfor with a donation on Stripe (preset $5, or choose your amount).
Contributions are welcome! Please read CONTRIBUTING.md for details on our development workflow, testing, and pull request process.
All contributors must sign our Contributor License Agreement (CLA). You retain copyright ownership of your work; the agreement grants us the license necessary to operate the hosted service and offer commercial licenses.
Keepfor.me is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only).