About Second Brain Cloudflare
Second Brain Cloudflare is an MCP server published by rahilp in the RAG category: one memory layer, every AI tool. Store anything once — recall it in Claude, ChatGPT, Cursor, or any MCP client. Self-hosted on Cloudflare's free tier. Conduid read 20 tools from its source: append, brief, connections, digest, forget, get and 14 more. No package is published for it, so it installs from a source checkout.
The repository has 884 stars and 132 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is installer-v4.0.3 (10 Nov 2026): Download for your computer: Mac — the .dmg (works on Apple Silicon and Intel) Windows — the .exe The other files (latest.json, .app.tar.gz, and the .sig files) are how t… It follows installer-v4.0.2 (10 Nov 2026), and the 5 most recent releases go back to installer-v3.7.0 (26 Sep 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include cloudflare, cloudflare-vectorize, latticework, obsidian-alternative, personal-knowledge-management and second-brain.
Install
git clone https://github.com/rahilp/second-brain-cloudflareTools (20)
appendAdd a timestamped update to an existing memory| Parameter | Type | Description |
|---|---|---|
| addition * | string | The new information to add to the existing entry — what actually changed, not a restatement of what is already there |
| id * | string | Entry ID to append to — from recall or list_recent |
briefShow due items, open commitments, stale memories, and pending insights| Parameter | Type | Description |
|---|---|---|
| team | string | Team id when reading one shared workspace |
| workspace | string | Restrict to one layer |
connectionsList the memories connected to a memory| Parameter | Type | Description |
|---|---|---|
| id * | string | Entry ID from recall or list_recent |
| type | string | Filter to a single relationship type |
digestRead the latest existing automatic summary for a project or tag| Parameter | Type | Description |
|---|---|---|
| tag | string | Topic tag; use exactly one of project or tag |
| team | string | Team id when reading one shared workspace |
| workspace | string | Restrict to one layer |
forgetMove a memory to the trash (undo brings it back)| Parameter | Type | Description |
|---|---|---|
| id * | string | Entry ID from recall or list_recent |
getRead one memory by ID| Parameter | Type | Description |
|---|---|---|
| id * | string | Entry ID from recall or list_recent |
| version | number | Read the text before this change, from history — omit for the current text |
get_prompt_capsuleRead a deterministic core or project context projection for a gateway-controlled prompt prefix| Parameter | Type | Description |
|---|---|---|
| kind * | string | Capsule kind |
| project_id | string | Required for project; omitted for core |
| team | string | Company workspace id from list_teams; required when company membership is ambiguous |
| workspace | string | Read exactly one private or shared workspace layer |
historyRead a memory's recorded changes, with the text before each one| Parameter | Type | Description |
|---|---|---|
| id * | string | Exact memory id |
linkAdd an explicit relationship between two memories| Parameter | Type | Description |
|---|---|---|
| source_id * | string | Source entry ID |
| target_id * | string | Target entry ID |
| type | string | How the memories relate, read as: SOURCE <type> TARGET. Direction is not cosmetic — source_id is the end the arrow points FROM. relates_to: they belong together, no direction implied (the default; use it when unsure). caused_by: the source happened BECAUSE of the target. decided: the source is a decision the target carries out or reflects; both memories must be episodic. follows: the source came AFTER the target in the same line of thought; both memories must be episodic. supersedes: the source replaces the target, and the target is treated as deprecated — use only when the older memory is genuinely wrong now. drawn_from: the source was derived from the target, as an insight is from its sources. |
list_projectsList projects in scope, with display names, descriptions, and memory counts| Parameter | Type | Description |
|---|---|---|
| include_archived | boolean | Also list archived projects, marked [archived]. Off by default |
| team | string | When workspace is company, restrict to one team — id from list_teams |
| workspace | string | Restrict to one layer: personal or the shared company layer. Omit to list both |
list_recentBrowse recently saved memories| Parameter | Type | Description |
|---|---|---|
| actor | string | Only entries written by one person: their display name as it appears in the header, their user id, or "me" for your own |
| after | number | Only return entries after this Unix ms timestamp |
| before | number | Only return entries before this Unix ms timestamp |
| in_trash | boolean | List memories in the trash instead of live ones. Works with n and workspace only. |
| n | number | |
| tag | string | |
| team | string | When workspace is company, restrict to one team — id from list_teams |
| workspace | string | Restrict the listing to one layer: personal or the shared company layer. Omit to list both |
list_teamsList shared teams you belong to (names and ids). In v3.0.0 this is one team; used by MCP clients for future multi-team supportrecallFind memories by meaning rather than exact wording; optionally what was true as of a past date| Parameter | Type | Description |
|---|---|---|
| after | number | Only return entries after this Unix ms timestamp. Useful for narrowing a recovery search to a period the conversation identified |
| as_of | string | Answer what was actually true on this past date, not what is true now: a date like 2026-06-15, a month, or a year. Never a future date. |
| before | number | Only return entries before this Unix ms timestamp. Useful for narrowing a recovery search to a period the conversation identified |
| explain | boolean | Add one line per result saying why it came back (meaning rank, matched keywords, boosts, rerank, link). Off by default because it costs output tokens |
| hops | number | Graph expansion depth: 0 = direct matches only (default); 1–2 also surfaces related memories linked in the graph. Raise it for why/how, chronology, causes, outcomes, or what came before or after; leave it at 0 when direct matches already answer the question |
| kind | string | Filter to episodic (events) or semantic (facts/knowledge). Useful as a recovery filter when a mixed result set buried the kind you needed |
| query * | string | Natural language search query. Say what the topic is and what you are trying to do with it, and name the subject explicitly — resolve references like "it", "that project", or "the last one" from the conversation before querying |
| tag | string | Filter by a specific tag. Use a tag the user named or one you saw on a returned memory — a guessed tag that does not exist in this brain returns nothing |
| team | string | When workspace is company, restrict to one team — id from list_teams |
| topK | number | Number of results. 5 (the default) gives enough candidates to compare before choosing; raise it to survey a topic, lower it only when a single exact hit is all you need |
| workspace | string | Restrict the search to one layer: personal or the shared company layer. Omit to search both — the default, and right for most questions |
rememberStore ideas, decisions, preferences, and project context; optionally when a fact became or stopped being true| Parameter | Type | Description |
|---|---|---|
| confidence | number | 0 to 1 (e.g. 0.7 for 70%). Pass only with decision: true, and only if the user stated it or clearly implied it — never ask for it. |
| confidence_source | string | "stated" if the user gave a number or a clear phrase like "pretty sure"; "inferred" otherwise (the default). Requires decision: true. |
| content * | string | The idea, task, or note to store — one distinct item, written so it still makes sense on its own months from now |
| decision | boolean | Set true when the user commits to a meaningful choice, so it can be reviewed later and its calibration tracked. |
| owed_by | string | Someone promised the user something: their name. Use when for the promised date. |
| owed_to | string | The user promised someone something: their name. Use when for the promised date. |
| review_by | string | When to bring this decision up again; defaults to 90 days out. Requires decision: true; use when instead for anything else. |
| source | string | Origin: phone, browser, voice, claude |
| standing | boolean | Set true when the user asks to be reminded of something whenever a topic comes up. Write content as "When <situation>, <what to do or remember>." |
| tags | array | Optional tags for filtering and later retrieval |
| team | string | When workspace is company, which team workspace — id from list_teams. Omit for your primary team. |
| valid_from | string | When this became true, if the user said so ('I moved to Austin in June' = 2026-06). A date, month or year. Omit it when the fact is new today. Never a future date: use when for plans and deadlines. |
| valid_until | string | When this stopped being true, for a fact that is already over ('I lived in Boston until 2020' = 2020). Omit it for anything still true. |
| workspace | string | Where to store it: your private workspace (default) or the shared company layer |
resolveSettle one tracked task, date, insight, or stale fact| Parameter | Type | Description |
|---|---|---|
| action * | string | How to resolve this one item |
| id * | string | Exact memory id |
| note | string | Optional detail for outcome, appended to the decision |
| result | string | Required with action: outcome — how the decision turned out |
| until | string | Future date for snooze |
set_statusMark a memory `canonical`, `draft`, or `deprecated`| Parameter | Type | Description |
|---|---|---|
| id * | string | Entry ID — from recall or list_recent |
| status * | string | canonical | draft | deprecated |
shareMove a memory between the Personal and Shared layers| Parameter | Type | Description |
|---|---|---|
| id * | string | Entry ID — from recall or list_recent |
| team | string | When workspace is company, which team workspace — id from list_teams. Omit for your primary team. |
| workspace | string | Target layer, company by default |
undoReverse the most recent change to a memory, or restore one from the trash| Parameter | Type | Description |
|---|---|---|
| group | string | A group key copied verbatim from the brief tool's "What AI tools changed" block, to undo or release every memory in that group. Never build one yourself — only pass one exactly as brief gave it. |
| id | string | Entry ID from recall, list_recent or history |
| to_version | number | Roll all the way back to this version number instead of just undoing the latest change. Get version numbers from history. Only reaches versions still within the kept history — the oldest eventually age out, and a permanently deleted memory has none left to reach. |
unlinkRemove a relationship between two memories| Parameter | Type | Description |
|---|---|---|
| source_id * | string | Source entry ID |
| target_id * | string | Target entry ID |
| type | string | Only remove this relationship type; omit to remove all links between the pair |
updateReplace an existing memory; optionally set when it stopped being true| Parameter | Type | Description |
|---|---|---|
| content | string | The new content to replace the existing entry with. Optional only when valid_from or valid_until is given. |
| id * | string | Entry ID to update — from recall or list_recent |
| tags | array | Replacement topic tags. Supplying any capsule: or capsule-slot: tag replaces both capsule namespaces; include the complete new definition. Omit to preserve tags. Use set_status to unpublish. |
| valid_from | string | Corrects when this memory's current content became true. Cannot be combined with new content. |
| valid_until | string | When the memory stopped being true ('that ended in May' = 2026-05). Pass null if the user says it is true again. It stays in history and is left out of current answers. valid_until only for a date that has already passed; for future dates use when. |
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and 2 more.
- ✓No dynamic code executionScanned 281 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- Streamable HTTPsrc/mcp/handler.ts:30
- Starts other programs
- 4 callsinstaller/src-tauri/src/cli_config.rs:74, installer/src-tauri/src/cli_config.rs:79, integrations/agent-hooks-core/core.js:158
- Outbound network calls
- 133 callsinstaller/src-tauri/src/cf/api.rs:9, installer/src-tauri/src/cf/api.rs:17, installer/src-tauri/src/cf/api.rs:30
- Writes or deletes files
- 49 callsinstaller/src-tauri/src/cli_config.rs:60, installer/src-tauri/src/cli_config.rs:62, installer/src-tauri/src/cli_config.rs:131
- Lockfile
- package-lock.json and 2 more
Pattern matches on the source text of 281 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.0K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README