<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 정의영</title>
    <description>The latest articles on DEV Community by 정의영 (@_ed46ab02f1e9378858f01).</description>
    <link>https://dev.to/_ed46ab02f1e9378858f01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4077847%2Fe9344592-7c8b-4f3b-8802-8cf02c79b5f7.jpg</url>
      <title>DEV Community: 정의영</title>
      <link>https://dev.to/_ed46ab02f1e9378858f01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_ed46ab02f1e9378858f01"/>
    <language>en</language>
    <item>
      <title>I built a local-first tab manager and gave it an MCP server so Claude can organize my tabs</title>
      <dc:creator>정의영</dc:creator>
      <pubDate>Fri, 14 Aug 2026 23:57:41 +0000</pubDate>
      <link>https://dev.to/_ed46ab02f1e9378858f01/i-built-a-local-first-tab-manager-and-gave-it-an-mcp-server-so-claude-can-organize-my-tabs-264f</link>
      <guid>https://dev.to/_ed46ab02f1e9378858f01/i-built-a-local-first-tab-manager-and-gave-it-an-mcp-server-so-claude-can-organize-my-tabs-264f</guid>
      <description>&lt;h2&gt;
  
  
  My browser is a war crime
&lt;/h2&gt;

&lt;p&gt;I'm a designer and developer, and a hopeless tab hoarder. On a normal day I've got 70+ tabs open across a couple of windows, every favicon crushed into an unreadable sliver, and my "system" for finding anything is to just… open another tab. Bookmarks? A write-only graveyard I never revisit.&lt;/p&gt;

&lt;p&gt;I bounced between tab managers for a while. Toby was the one that stuck — until it capped the free plan at 60 saved tabs and started asking for an account. For a tab hoarder, a 60-tab cap is like a notes app that locks after 60 words. That was the nudge.&lt;/p&gt;

&lt;p&gt;So I did the reasonable thing and spent way too long building my own. It's called &lt;strong&gt;Mos Tab&lt;/strong&gt;. This is the build story — the parts I'm proud of, the part that nearly broke me (multiple windows, I'm looking at you), and the weirdly fun part at the end where I let Claude reorganize my tabs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually wanted
&lt;/h2&gt;

&lt;p&gt;Three non-negotiables:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Local-first.&lt;/strong&gt; No account required. Data lives in the browser, works offline. I was tired of "sign in to see your own bookmarks."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No limits on the free stuff.&lt;/strong&gt; Saving a tab locally costs me nothing to run — so there's no reason to cap it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A calm dashboard, not a list.&lt;/strong&gt; I stare at my new tab all day; it should feel like a desk, not a void.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The shape of it
&lt;/h2&gt;

&lt;p&gt;Mos Tab overrides &lt;code&gt;chrome://newtab&lt;/code&gt; (MV3). The data model is a boring normalized tree — &lt;strong&gt;Space → Collection → Section → Tab&lt;/strong&gt; — records plus ID arrays for ordering. It's a single Zustand store with a &lt;code&gt;persist&lt;/code&gt; middleware writing to &lt;code&gt;chrome.storage.local&lt;/code&gt;. Your currently-open tabs show in a live side panel (&lt;code&gt;chrome.tabs&lt;/code&gt;); one click saves them into a collection, drag to organize, and a &lt;code&gt;cmdk&lt;/code&gt; palette searches everything you've saved.&lt;/p&gt;

&lt;p&gt;Stack, for the curious: React 18 + TypeScript + Vite + &lt;code&gt;@crxjs/vite-plugin&lt;/code&gt;, Tailwind, dnd-kit, zod, i18next (5 languages).&lt;/p&gt;

&lt;p&gt;Since the new tab is prime real estate, I threw in the stuff I open a tab for anyway — calendar, pomodoro, to-dos, sticky notes. All free.&lt;/p&gt;

&lt;p&gt;So far, so normal. Then I wanted sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part: sync (or, how multiple windows tried to kill me)
&lt;/h2&gt;

&lt;p&gt;Local-first is lovely until you have two machines. I wanted &lt;strong&gt;optional&lt;/strong&gt; cloud sync (the paid tier — more on money later) without turning this into a database migration.&lt;/p&gt;

&lt;p&gt;The backend is deliberately dumb: a &lt;strong&gt;Cloudflare Worker + R2&lt;/strong&gt;, one JSON blob per user (&lt;code&gt;state.json&lt;/code&gt;). No per-row DB. To save, you &lt;code&gt;PUT&lt;/code&gt; the blob back with an &lt;strong&gt;ETag conditional request&lt;/strong&gt; (&lt;code&gt;If-Match&lt;/code&gt;). On a &lt;code&gt;412&lt;/code&gt; (someone wrote first), you pull, &lt;strong&gt;3-way merge&lt;/strong&gt; on the client, and push again.&lt;/p&gt;

&lt;p&gt;The 3-way merge (base + local + remote) handles the real cases: both sides added a tab → keep both; something in &lt;code&gt;base&lt;/code&gt; vanished on one side → it was deleted, respect it; field conflicts → local wins. Sticky-note text conflicts resolve to a &lt;em&gt;symmetric&lt;/em&gt; content-addressed copy, so two machines converge instead of endlessly duplicating.&lt;/p&gt;

&lt;p&gt;The part that actually broke me wasn't cross-device — it was &lt;strong&gt;multiple windows on the same machine.&lt;/strong&gt; Every window wanted to push, each invalidating the others' ETag → 412 → merge → push → 412 → forever. A beautiful infinite loop.&lt;/p&gt;

&lt;p&gt;The fix: &lt;strong&gt;only the focused window pushes.&lt;/strong&gt; Every window can pull (reads are idempotent), but writes are gated to the focused one, with a flush-on-blur so the last edit isn't lost when you switch away. Add adaptive polling backoff (15s active → 2min idle) and an "away mode" that stops polling after 20 min of no activity, and it stops hammering the Worker.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fun part: teaching Claude to use my tabs (MCP)
&lt;/h2&gt;

&lt;p&gt;Here's the part I'm actually excited about. I gave Mos Tab a remote &lt;strong&gt;MCP server&lt;/strong&gt; so you can connect Claude or ChatGPT to it. Once connected, the assistant can search and summarize everything you've saved (tabs, notes, to-dos) and — the fun bit — &lt;strong&gt;save new things it finds into a brand-new space&lt;/strong&gt;, add notes, or make a public share link. All from the chat.&lt;/p&gt;

&lt;p&gt;Concrete example. I told Claude:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Find the top-rated budget strollers on Amazon, save them to my tabs, and make a share link."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A few seconds later there was a new "Stroller shortlist" space on my dashboard, organized into categories, and a public link I sent straight to my wife — she opened it in her browser, nothing to install.&lt;/p&gt;

&lt;p&gt;Two design decisions I'm happy with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's add-only.&lt;/strong&gt; The assistant can &lt;em&gt;create&lt;/em&gt; spaces, notes, and shares — but it &lt;strong&gt;can't touch or reorganize your existing spaces.&lt;/strong&gt; No "the AI nuked my setup" risk. That made me trust it way more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The implementation is boring on purpose.&lt;/strong&gt; Streamable HTTP JSON-RPC on the same plain-&lt;code&gt;fetch&lt;/code&gt; Worker — no Durable Objects, no McpAgent. Auth is a long-lived scoped token you mint in settings (JWTs expire, which is bad for a persistent connection). Reads filter the same per-user blob in memory; writes are read-modify-write with &lt;code&gt;If-Match&lt;/code&gt; / 412 retry — so an AI-created space merges through the &lt;strong&gt;exact same 3-way sync&lt;/strong&gt; as a manual edit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last bit is the thing I like most: AI writes go through the same door as everything else. No special path, no separate store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Money, honestly
&lt;/h2&gt;

&lt;p&gt;Because someone always asks: the whole local app is free — unlimited tabs, spaces, all the widgets, import/export. &lt;strong&gt;Local storage costs me nothing to run, so there's no reason to cap it.&lt;/strong&gt; The paid tier is only the stuff that actually hits a server: multi-device sync, public sharing, and the AI/MCP integration. I can't give the server stuff away free — kind of wish I could. That's the whole pricing philosophy, and it keeps me honest.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;"Local-first" is a great default &lt;em&gt;and&lt;/em&gt; a real constraint.&lt;/strong&gt; Deciding exactly what syncs vs. what stays on-device (your data and notes sync; theme and zoom are per-device) took more thought than the merge algorithm.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The boring backend was the right call.&lt;/strong&gt; One blob + conditional PUT scales further than I expected — the 5MB blob cap only bites around 15–30k saved tabs, and by then I'd happily move to per-entity storage (D1).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP is more fun than it has any right to be.&lt;/strong&gt; Giving an assistant a small, safe, add-only surface into your own data feels like the actual point of these protocols.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Live on the Chrome Web Store (Chrome + Chromium — Edge, Brave, Arc, etc.):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome Web Store: &lt;a href="https://chromewebstore.google.com/detail/jmahojbjdibdhfniieiljgildbpcefoc" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/jmahojbjdibdhfniieiljgildbpcefoc&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Site: &lt;a href="https://mos-tab.com" rel="noopener noreferrer"&gt;https://mos-tab.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;A live shared space (the actual "stroller shortlist" Claude built): &lt;a href="https://mos-tab.com/s/10yyW9pbA_R69a2quKLM392V" rel="noopener noreferrer"&gt;https://mos-tab.com/s/10yyW9pbA_R69a2quKLM392V&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm a solo dev, so I read everything — feedback on the sync merge model or the MCP design especially welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>development</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
