{"slug": "show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp", "title": "Show HN: Second Brain – One Memory Shared by Claude, ChatGPT and Cursor via MCP", "summary": "A developer released Second Brain, an AGPL-3.0 open-source service that gives Claude, ChatGPT, Cursor, Codex, Gemini CLI and other MCP clients a single shared memory through one remote MCP endpoint at https://mcp.getsecondbrain.io/mcp. The service stores linked markdown notes with [[wikilinks]], tags, frontmatter, backlinks, revisions, trash and full-text search, exposes 12 MCP tools including search, save_note, append_to_note, link_notes, list_skills and use_skill, and attributes and versions every AI write so apps can trash a note but only the user can delete it permanently. It runs as one Cloudflare Worker serving the landing site, web app, OAuth server and MCP endpoint, with a SQLite Durable Object per workspace and workspace ids taken only from verified sessions or OAuth tokens.", "body_md": "**One memory for every AI app you use.**\n\n[Website](https://www.getsecondbrain.io) · [Open the app](https://app.getsecondbrain.io) ·\n[Security](https://github.com/bhushan/getsecondbrain.io/blob/main/SECURITY.md) · [License: AGPL-3.0](https://github.com/bhushan/getsecondbrain.io/blob/main/LICENSE)\n\nLinked markdown notes that every AI app can read and write. Connect Claude, ChatGPT, Cursor, Codex,\nGemini CLI or any MCP client to one remote MCP address, `https://mcp.getsecondbrain.io/mcp`, save\nsomething in one app, and find it from another. Notes live in a workspace you can see as a network\nand edit in the browser.\n\nThis repository is the full source of the hosted service at\n[getsecondbrain.io](https://www.getsecondbrain.io).\n\n- **One memory for every AI app.** A remote MCP server with OAuth. You pick a workspace and read or\nread-and-write access when you connect an app, and you can disconnect it at any time.\n- **Linked notes.** Obsidian-style`[[wikilinks]]` , tags and frontmatter, with backlinks, renames\nthat rewrite links, revisions, a trash and full-text search.\n- **Network view.** Every note and link drawn as a live graph in the browser.\n- **Skills.** Notes under`Skills/` in the SKILL.md shape become reusable instructions your apps can\nlist and load (`list_skills` ,`use_skill` , and MCP prompts).\n- **Sources.** Granola meeting notes sync in hourly.\n- **Safe by default for AI writes.** Every write is attributed to the app and versioned. Apps can\nmove a note to the trash but never delete it for good; only you can, in the web app.\n\nMCP tools: `search`, `get_note`, `list_recent`, `get_linked`, `list_tags`, `save_note`,\n`update_note`, `append_to_note`, `link_notes`, `trash_note`, `list_skills`, `use_skill`.\n\nOne Cloudflare Worker serves four things by hostname: the landing site, the web app and its JSON API, the OAuth server, and the MCP endpoint.\n\n| Part | Where | \n|---|---|\n| Router, security headers | `src/worker/index.ts` | \n| Google sign-in, OAuth server, consent page | `src/worker/auth/` | \n| MCP server and tools | `src/worker/mcp/` | \n| Workspace store: one SQLite Durable Object per workspace (notes, revisions, links, tags, FTS5, audit) | `src/worker/workspace/` | \n| Accounts and memberships (D1) | `src/worker/control/` ,`migrations/` | \n| Sources (Granola sync) | `src/worker/sources/` | \n| Landing site | `src/worker/site/` | \n| Web app (React, sigma.js, CodeMirror 6) | `src/web/` | \n\nA workspace id only ever comes from a verified session or OAuth token, never from a request parameter, and every route and tool has a test that one workspace cannot reach another.\n\nRequires Node 24 and pnpm.\n\n```\npnpm install\npnpm test        # all tests, in the Workers runtime\npnpm dev         # builds the web app and starts the Worker on port 8787\n```\n\nLocally the app is at `http://localhost:8787`, the MCP endpoint at `http://127.0.0.1:8787/mcp` and\nthe landing site at `http://www.localhost:8787`.\n\nSign-in needs a Google OAuth web client with the redirect URI\n`http://localhost:8787/auth/google/callback`. Put the local secrets in `.dev.vars` (never commit it):\n\n```\nGOOGLE_CLIENT_ID=...\nGOOGLE_CLIENT_SECRET=...\nALLOWED_EMAILS=you@example.com\nSOURCES_KEY=...   # openssl rand -base64 32; only needed for Granola\n```\n\n`SIGNUP` in `wrangler.jsonc` controls who can join: `\"open\"` lets any verified Google account in;\nany other value allows only `ALLOWED_EMAILS`.\n\n1. Create a D1 database and a KV namespace, then put their ids, your `account_id` , your hostnames\nand your origins in the`production` section of`wrangler.jsonc` .\n2. Set the secrets: `wrangler secret put GOOGLE_CLIENT_ID --env production` , and the same for`GOOGLE_CLIENT_SECRET` ,`ALLOWED_EMAILS` and`SOURCES_KEY` .\n3. Run `pnpm check` (types, tests, build, deploy dry run), then`pnpm deploy:production` , which\nbuilds the web app, applies D1 migrations and deploys.\n\nFair-use limits per workspace (notes, storage, saves a day) are in\n`src/worker/workspace/limits.ts`.\n\nIssues and pull requests are welcome. See [CONTRIBUTING.md](https://github.com/bhushan/getsecondbrain.io/blob/main/CONTRIBUTING.md) and the\n[Code of Conduct](https://github.com/bhushan/getsecondbrain.io/blob/main/CODE_OF_CONDUCT.md).\n\nPlease report vulnerabilities privately; see [SECURITY.md](https://github.com/bhushan/getsecondbrain.io/blob/main/SECURITY.md).\n\n[GNU Affero General Public License v3.0](https://github.com/bhushan/getsecondbrain.io/blob/main/LICENSE). If you run a modified version as a service, you\nmust offer its source to your users.", "url": "https://wpnews.pro/news/show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp", "canonical_source": "https://github.com/bhushan/getsecondbrain.io", "published_at": "2026-11-23 17:07:55+00:00", "updated_at": "2026-11-23 17:16:31.156664+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["Second Brain", "Claude", "ChatGPT", "Cursor", "Codex", "Gemini CLI", "Cloudflare", "Granola"], "also_reported_by": [], "takeaway": "Second Brain exposes one remote MCP endpoint with OAuth-scoped read or read-and-write access and 12 tools (search, get_note, save_note, append_to_note, link_notes, trash_note, list_skills, use_skill and others) so multiple AI apps share one versioned markdown workspace.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp", "markdown": "https://wpnews.pro/news/show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp.md", "text": "https://wpnews.pro/news/show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp.txt", "jsonld": "https://wpnews.pro/news/show-hn-second-brain-one-memory-shared-by-claude-chatgpt-and-cursor-via-mcp.jsonld"}}