<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>MCP · Jared Lynskey</title>
    <link>https://jared.lynskey.co.nz/en/tags/mcp/</link>
    <description>Short stories of value on software engineering and engineering leadership — performance reviews, hiring and scaling teams, CI/CD, DevOps monitoring and agentic AI. Written from Seoul.</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>© 2026 Jared Lynskey</copyright>
    <lastBuildDate>Thu, 03 Dec 2026 00:00:00 +1300</lastBuildDate>
    <atom:link href="https://jared.lynskey.co.nz/en/tags/mcp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Playwright MCP vs Chrome DevTools MCP: Letting Claude Code Check Its Own Work</title>
      <link>https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/</guid>
      <pubDate>Thu, 03 Dec 2026 00:00:00 +1300</pubDate>
      <dc:creator>Jared Lynskey</dc:creator>
      <category>Claude Code</category>
      <category>MCP</category>
      <category>Playwright</category>
      <category>Chrome DevTools</category>
      <category>AI Agents</category>
      <category>Testing</category>
      <category>Debugging</category>
      <category>Web Performance</category>
      <category>Developer Tools</category>
      <description>Playwright MCP drives pages through the accessibility tree; Chrome DevTools MCP adds traces and Lighthouse. Setup in Claude Code, and what each caught.</description>
      <content:encoded><![CDATA[<p>Playwright MCP and Chrome DevTools MCP both give a coding agent a real browser to check its work in. Playwright MCP, from Microsoft, drives the page through its accessibility tree: it reads the page as a list of headings, links and buttons, each with a reference the agent can click. That makes it the better default for walking through a flow and confirming it works. Chrome DevTools MCP, from Google&rsquo;s Chrome team, also drives Chrome, but it brings what DevTools knows: performance traces, Lighthouse audits, and network and console detail. Reach for it when the question is &ldquo;why is this slow?&rdquo; or &ldquo;what does Lighthouse think?&rdquo;. There&rsquo;s also a third option, Claude in Chrome, for when the agent needs your own signed-in browser. Each one takes a single command to add to Claude Code.</p>
<p>I wanted to know how they differ in practice, not in their READMEs, so I ran both against a small checkout page with a bug in it and against one of my own posts. Below is what each one saw, what it cost in context, and which I&rsquo;d install.</p>
<p>This is also where the conversation about coding agents went in November. <a href="https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/"  target="_blank" rel="noreferrer">How the Claude Code team thinks about verification</a> (<a href="https://news.ycombinator.com/item?id=50529612"  target="_blank" rel="noreferrer">292 points on Hacker News</a>) says that if you invest in one kind of test, make it end-to-end, and give the agent &ldquo;hands and eyes on the real running system&rdquo;. On Zenn, <a href="https://zenn.dev/linkedge/articles/claude-code-instead-of-reading-code"  target="_blank" rel="noreferrer">a developer who has stopped reading most of Claude Code&rsquo;s pull requests</a> described what they check instead: acceptance criteria, and a sub-agent that clicks through the staging site without reading the code. And GeekNews picked up <a href="https://news.hada.io/topic?id=37440"  target="_blank" rel="noreferrer">Reticle</a>, a tool built around an agent pressing the buttons and reading the network log after it changes something. Browser access is how an agent proves a UI change works without you opening the page yourself.</p>

<h2 class="relative group">Install Playwright MCP and Chrome DevTools MCP in Claude Code
    <div id="install-playwright-mcp-and-chrome-devtools-mcp-in-claude-code" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#install-playwright-mcp-and-chrome-devtools-mcp-in-claude-code" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>Both are npm packages that Claude Code starts on demand over stdio. Add them to a project like this:</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">claude mcp add --scope project playwright -- npx @playwright/mcp@latest
</span></span><span class="line"><span class="cl">claude mcp add --scope project chrome-devtools -- npx chrome-devtools-mcp@latest</span></span></code></pre></div></div>
<p><code>--scope project</code> writes them to <code>.mcp.json</code> in the repository, so everyone who clones it gets the same browser tools. Claude Code asks each person to approve a project&rsquo;s servers the first time, which is why <code>claude mcp list</code> shows them as pending until you start <code>claude</code>. Use <code>--scope user</code> instead if you want them in every project on your machine. Chrome DevTools MCP&rsquo;s <a href="https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/client-configurations.md"  target="_blank" rel="noreferrer">own instructions</a> use that.</p>
<figure><video
    class="my-0 rounded-md"
    autoplay loop muted playsinline preload="metadata"
    poster="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/claude-mcp-add-browser-servers.jpg" style="background:url('data:image/webp;base64,UklGRmwAAABXRUJQVlA4IGAAAADQBACdASogABIAPw1cq0emIiIYDAYAYxDE9IBl0gnPVLWtLsxe038ICAeBpSG4AAD+0MP2Bl6jqlqeNiVHUEottsSp3WHE8i0OUJgTO1ZXqBloZaxRbkAzOVdVAWAAAAA=') center/cover no-repeat"
    width="1280"
    height="720"
    aria-label="Terminal: claude mcp add adds the playwright and chrome-devtools servers with project scope, cat shows both in .mcp.json, and claude mcp list reports both as pending approval">
    <source src="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/claude-mcp-add-browser-servers.mp4" type="video/mp4">
  </video><figcaption>Both servers in a throwaway project. They stay &ldquo;pending approval&rdquo; until someone starts Claude Code there and says yes.</figcaption>
</figure>

<p>A few flags worth knowing before you start:</p>
<ul>
<li><strong>Playwright MCP opens a visible browser window by default.</strong> Add <code>--headless</code> if you don&rsquo;t want to watch, and <code>--isolated</code> to keep the browser profile in memory rather than on disk.</li>
<li><strong>Chrome DevTools MCP sends usage statistics to Google by default.</strong> Turn that off with <code>--no-usage-statistics</code>. Its performance tools can also send the traced URL to Google&rsquo;s <a href="https://developer.chrome.com/docs/crux"  target="_blank" rel="noreferrer">CrUX API</a> to fetch real-user data; <code>--no-performance-crux</code> stops that. Both are in <a href="https://github.com/ChromeDevTools/chrome-devtools-mcp"  target="_blank" rel="noreferrer">its README</a>.</li>
<li><strong>Chrome DevTools MCP officially supports only Google Chrome and Chrome for Testing.</strong> I don&rsquo;t have Chrome on this Mac, just Edge, so I pointed both servers at the Chrome for Testing build Playwright had already downloaded: <code>--executable-path</code> for Playwright MCP, <code>--executablePath</code> for Chrome DevTools MCP.</li>
<li><strong>Chrome DevTools MCP also comes as a Claude Code plugin</strong>, with skills for LCP, accessibility and memory leaks. Install it with <code>/plugin marketplace add ChromeDevTools/chrome-devtools-mcp</code> and then <code>/plugin install chrome-devtools-mcp@chrome-devtools-plugins</code>.</li>
</ul>

<h2 class="relative group">How the two compare
    <div id="how-the-two-compare" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#how-the-two-compare" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>These are the versions I tested on 19 November: Playwright MCP 0.0.86 and Chrome DevTools MCP 1.13.0. I listed their tools by connecting to each one directly from a short Python script.</p>
<table>
	<thead>
			<tr>
					<th></th>
					<th>Playwright MCP</th>
					<th>Chrome DevTools MCP</th>
					<th>Claude in Chrome</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Made by</td>
					<td>Microsoft</td>
					<td>Google&rsquo;s Chrome DevTools team</td>
					<td>Anthropic</td>
			</tr>
			<tr>
					<td>Browser</td>
					<td>Chromium, Chrome, Edge, Firefox or WebKit</td>
					<td>Chrome (other Chromium browsers may work, unsupported)</td>
					<td>Your own Chrome, Edge or other Chromium browser, signed in</td>
			</tr>
			<tr>
					<td>Tools</td>
					<td>25</td>
					<td>33 (3 with <code>--slim</code>)</td>
					<td>Built into Claude Code with <code>--chrome</code></td>
			</tr>
			<tr>
					<td>How it sees the page</td>
					<td>Accessibility snapshot in YAML, with <code>ref</code> ids to click</td>
					<td>Accessibility snapshot as text, with <code>uid</code>s to click</td>
					<td>Reads the page in your browser</td>
			</tr>
			<tr>
					<td>Extras</td>
					<td>Shows the Playwright code behind every action; can attach to your running browser through an extension (<code>--extension</code>)</td>
					<td>Performance traces, Lighthouse, computed CSS, heap snapshots, screencasts</td>
					<td>Your logins and cookies, GIF recording</td>
			</tr>
			<tr>
					<td>Best for</td>
					<td>Clicking through a flow and checking the result</td>
					<td>Speed, Lighthouse, deep network and console work</td>
					<td>Anything behind a login</td>
			</tr>
	</tbody>
</table>

<h2 class="relative group">The test: a checkout button that does nothing
    <div id="the-test-a-checkout-button-that-does-nothing" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-test-a-checkout-button-that-does-nothing" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>The demo is one HTML page: a small &ldquo;Your order&rdquo; card with a <strong>Place order</strong> button. On load it fetches <code>/api/cart</code>, which returns 404 because, in the story, the endpoint was renamed. An empty <code>.catch()</code> swallows the failure, so clicking the button throws <code>TypeError: Cannot read properties of undefined (reading 'items')</code> and nothing appears. I also gave the promo line <code>white-space: nowrap</code>, so it runs out of the card. That second bug doesn&rsquo;t throw anything; it&rsquo;s purely visual.</p>
<p>I drove each server myself first: navigate, take a snapshot, click the button, read the console and the network log. Their snapshots of the card are close to identical. Playwright&rsquo;s:</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl">- <span class="nt">main [ref=e2]</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">heading &#34;Your order&#34; [level=1] [ref=e3]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">generic [ref=e10]</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="nt">generic [ref=e11]</span><span class="p">:</span><span class="w"> </span><span class="l">Total</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="nt">generic [ref=e12]</span><span class="p">:</span><span class="w"> </span><span class="l">$19.50</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">paragraph [ref=e13]</span><span class="p">:</span><span class="w"> </span><span class="l">Free shipping on every order over $50 this week only, use code FREESHIPPINGNOVEMBER at checkout</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">button &#34;Place order&#34; [ref=e14] [cursor=pointer]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">status [ref=e15]</span></span></span></code></pre></div></div>
<p>Chrome DevTools MCP&rsquo;s:</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">uid=1_0 RootWebArea &#34;myapp · Checkout&#34; url=&#34;http://127.0.0.1:8765/&#34;
</span></span><span class="line"><span class="cl">  uid=1_1 main
</span></span><span class="line"><span class="cl">    uid=1_2 heading &#34;Your order&#34; level=&#34;1&#34;
</span></span><span class="line"><span class="cl">    uid=1_7 &#34;Total&#34;
</span></span><span class="line"><span class="cl">    uid=1_8 &#34;$19.50&#34;
</span></span><span class="line"><span class="cl">    uid=1_9 &#34;Free shipping on every order over $50 this week only, use code FREESHIPPINGNOVEMBER at checkout&#34;
</span></span><span class="line"><span class="cl">    uid=1_10 button &#34;Place order&#34;
</span></span><span class="line"><span class="cl">    uid=1_11 status atomic live=&#34;polite&#34; relevant=&#34;additions text&#34;</span></span></code></pre></div></div>
<p>Both caught the real bug. After the click, Playwright MCP&rsquo;s console tool returned the <code>TypeError</code> with its stack position (<code>:34:31</code>) and both 404s, one for the cart and one for a missing favicon. Chrome DevTools MCP listed the same errors, folded the two 404s into one line marked &ldquo;[2 times]&rdquo;, and can add source-mapped stack traces when asked. Each network tool showed <code>GET /api/cart [404]</code>.</p>
<p>Neither snapshot can see the overflowing promo line. To the accessibility tree it&rsquo;s a paragraph with the right words in it. The screenshot is the only place it shows:</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="The same checkout card captured by both servers: Playwright MCP&rsquo;s browser_take_screenshot on the left, Chrome DevTools MCP&rsquo;s take_screenshot on the right. In both, the free-shipping line runs past the card&rsquo;s right edge."
    width="1604"
    height="488"
    src="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/demo-checkout-screenshots_hu_5acbf8446add051b.webp"
    srcset="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/demo-checkout-screenshots_hu_5acbf8446add051b.webp 800w, https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/demo-checkout-screenshots_hu_14455b25aaca69f4.webp 1280w"
    sizes="(min-width: 768px) 50vw, 65vw"
    data-zoom-src="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/demo-checkout-screenshots_hu_faf171abe6ac4444.webp"></span><figcaption>Both servers drive the same Chromium, so the pixels match. Only the screenshot shows the promo line spilling out of the card.</figcaption></figure>
</p>
<p>Then I let Claude Code do the job, once with each server, using a prompt that said only &ldquo;The Place order button does nothing. Use the browser tools to find out why, and check the page for anything else that looks broken. Don&rsquo;t edit any files.&rdquo; Both runs took about 23 seconds and 12 turns, and <code>claude -p</code> reported about US$0.21 each at API prices. Both found the 404, the swallowed error and the <code>TypeError</code>. Both took a screenshot without being asked and reported the overflowing promo line too. The Playwright run measured it (665 px of text in a 420 px card); the DevTools run named the CSS rule. On a page this small there was no winner. The difference shows up in what each one costs and in what else it can measure.</p>

<h2 class="relative group">What it costs in context
    <div id="what-it-costs-in-context" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-it-costs-in-context" aria-label="Anchor">#</a>
    </span>
    
</h2>
<figure class="diagram">
  <div role="img" aria-label="Bar chart. Tool definitions: Playwright MCP 22.3 KB (about 5.6k tokens), Chrome DevTools MCP 33.8 KB (about 8.4k tokens). Page snapshot of one long blog post: 50.5 KB and 50.4 KB, about 12.6k tokens each."><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 352" aria-hidden="true" focusable="false">
<text class="d-title" x="2" y="26" font-size="22">What each server hands the model</text>
<text class="d-sub" x="2" y="49" font-size="15">Measured on 19 November 2026 against the same blog post. Tokens are an estimate</text>
<text class="d-sub" x="2" y="72" font-size="15">(characters ÷ 4).</text>
<text class="d-label" x="2" y="120" font-size="16">Tool definitions (every tool the server offers)</text>
<text class="d-label" x="2" y="228" font-size="16">Page snapshot of one long blog post</text>
<path class="d-axis" d="M181.8,127 V187"></path>
<path class="d-axis" d="M181.8,235 V295"></path>
<text class="d-sub d-num" x="181.8" y="318" font-size="13" text-anchor="middle">0 KB</text>
<path class="d-grid" d="M237.6,127 V187"></path>
<path class="d-grid" d="M237.6,235 V295"></path>
<text class="d-sub d-num" x="237.6" y="318" font-size="13" text-anchor="middle">10 KB</text>
<path class="d-grid" d="M293.4,127 V187"></path>
<path class="d-grid" d="M293.4,235 V295"></path>
<text class="d-sub d-num" x="293.4" y="318" font-size="13" text-anchor="middle">20 KB</text>
<path class="d-grid" d="M349.2,127 V187"></path>
<path class="d-grid" d="M349.2,235 V295"></path>
<text class="d-sub d-num" x="349.2" y="318" font-size="13" text-anchor="middle">30 KB</text>
<path class="d-grid" d="M405,127 V187"></path>
<path class="d-grid" d="M405,235 V295"></path>
<text class="d-sub d-num" x="405" y="318" font-size="13" text-anchor="middle">40 KB</text>
<path class="d-grid" d="M460.8,127 V187"></path>
<path class="d-grid" d="M460.8,235 V295"></path>
<text class="d-sub d-num" x="460.8" y="318" font-size="13" text-anchor="middle">50 KB</text>
<path class="d-grid" d="M516.6,127 V187"></path>
<path class="d-grid" d="M516.6,235 V295"></path>
<text class="d-sub d-num" x="516.6" y="318" font-size="13" text-anchor="middle">60 KB</text>
<text class="d-sub" x="2" y="148" font-size="15">Playwright MCP</text>
<path class="d-bar" d="M181.8,132 H302 Q306,132 306,136 V150 Q306,154 302,154 H181.8 Z"></path>
<text class="d-label d-num" x="314" y="148" font-size="15">22.3 KB · ≈5.6k tokens</text>
<text class="d-sub" x="2" y="176" font-size="15">Chrome DevTools MCP</text>
<path class="d-bar-alt" d="M181.8,160 H366.3 Q370.3,160 370.3,164 V178 Q370.3,182 366.3,182 H181.8 Z"></path>
<text class="d-label d-num" x="378.3" y="176" font-size="15">33.8 KB · ≈8.4k tokens</text>
<text class="d-sub" x="2" y="256" font-size="15">Playwright MCP</text>
<path class="d-bar" d="M181.8,240 H459.8 Q463.8,240 463.8,244 V258 Q463.8,262 459.8,262 H181.8 Z"></path>
<text class="d-label d-num" x="471.8" y="256" font-size="15">50.5 KB · ≈12.6k tokens</text>
<text class="d-sub" x="2" y="284" font-size="15">Chrome DevTools MCP</text>
<path class="d-bar-alt" d="M181.8,268 H459.3 Q463.3,268 463.3,272 V286 Q463.3,290 459.3,290 H181.8 Z"></path>
<text class="d-label d-num" x="471.3" y="284" font-size="15">50.4 KB · ≈12.6k tokens</text>
<text class="d-sub" x="2" y="346" font-size="13">Playwright MCP 0.0.86 · Chrome DevTools MCP 1.13.0</text>
</svg>
</div><figcaption>Measured against the same post. Token counts are an estimate.</figcaption>
</figure>

<p>Two numbers matter here.</p>
<p><strong>The tool definitions</strong> are 22.3 KB for Playwright MCP&rsquo;s 25 tools and 33.8 KB for Chrome DevTools MCP&rsquo;s 33. In older setups that whole schema sat in the context window from the first message. Claude Code now <a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">defers MCP tool definitions by default</a>: only the names load at the start, and a definition arrives when the agent goes looking for that tool. So having both servers installed costs you little until you use them. If you want Chrome DevTools MCP small anyway, <code>--slim</code> cuts it to three tools (navigate, evaluate, screenshot) in 1.3 KB.</p>
<p><strong>The snapshots</strong> are the real cost. A snapshot of my AWS Emulator post, which is long, came to about 50 KB from either server: roughly 12,600 tokens every time the agent looks at the page. Playwright MCP 0.0.86 is clever about this. After a navigation or a click it writes the snapshot to a file and returns a 359-byte reply with a link to it, so the full tree only lands in the conversation when the agent asks for <code>browser_snapshot</code> or opens that file. Chrome DevTools MCP&rsquo;s click returns one line (&ldquo;Successfully clicked on the element&rdquo;) unless you ask for a snapshot with it. On a small page none of this matters. On a long one, an agent that snapshots after every click burns through context fast.</p>
<p>Both projects now say as much themselves. Playwright MCP&rsquo;s README suggests that coding agents might do better with <a href="https://github.com/microsoft/playwright-cli"  target="_blank" rel="noreferrer">Playwright CLI and its skills</a>, because CLI calls &ldquo;avoid loading large tool schemas and verbose accessibility trees&rdquo;. Chrome DevTools MCP ships a <code>chrome-devtools</code> CLI and skills alongside the server. MCP still makes sense when the agent needs to keep a browser open and work through a page step by step. For a quick look, a CLI call is cheaper.</p>

<h2 class="relative group">Where Chrome DevTools MCP earns its place
    <div id="where-chrome-devtools-mcp-earns-its-place" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#where-chrome-devtools-mcp-earns-its-place" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>Playwright MCP can&rsquo;t record a performance trace. Chrome DevTools MCP can, and its summary is written for the model to read. Here&rsquo;s part of what it returned for that same post, from a reload with no throttling, on my Mac in Seoul:</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">## insight set id: NAVIGATION_0
</span></span><span class="line"><span class="cl">URL: https://jared.lynskey.co.nz/en/posts/2026/aws-emulator-setup/
</span></span><span class="line"><span class="cl">Metrics (lab / observed):
</span></span><span class="line"><span class="cl">  - LCP: 498 ms, event: (eventKey: r-4580, ts: 2901865748771), nodeId: 28
</span></span><span class="line"><span class="cl">  - LCP breakdown:
</span></span><span class="line"><span class="cl">    - TTFB: 255 ms
</span></span><span class="line"><span class="cl">    - Load delay: 11 ms
</span></span><span class="line"><span class="cl">    - Load duration: 1 ms
</span></span><span class="line"><span class="cl">    - Render delay: 230 ms
</span></span><span class="line"><span class="cl">  - CLS: 0.00
</span></span><span class="line"><span class="cl">Metrics (field / real users): n/a – no data for this page in CrUX</span></span></code></pre></div></div>
<p>A follow-up call (<code>performance_analyze_insight</code> with <code>LCPBreakdown</code>) named the LCP element: the cover image, a WebP served from Cloudflare with a one-year immutable cache. Half the 498 ms was waiting for the HTML and the other half was rendering. That fits a site I&rsquo;d already tuned. A trace isn&rsquo;t something you&rsquo;d write a test for every week, but it&rsquo;s exactly what you want an agent to have to hand when someone says the page feels slow.</p>
<p>The tool I didn&rsquo;t expect to like was <code>lighthouse_audit</code>. I ran it on the same post, once as desktop and once as mobile, and it found things I hadn&rsquo;t noticed:</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Lighthouse report header for the AWS Emulator post on mobile: Accessibility 100, Best Practices 100, SEO 100, and Agentic Browsing 2/3"
    width="1640"
    height="345"
    src="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/lighthouse-agentic-browsing-mobile_hu_e4db025343c4f3e8.webp"
    srcset="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/lighthouse-agentic-browsing-mobile_hu_e4db025343c4f3e8.webp 800w, https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/lighthouse-agentic-browsing-mobile_hu_2236d1774c29c1c2.webp 1280w"
    sizes="(min-width: 768px) 50vw, 65vw"
    data-zoom-src="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/lighthouse-agentic-browsing-mobile_hu_94481a006f566f15.webp"></span><figcaption>Lighthouse 13.6, run through Chrome DevTools MCP. Agentic Browsing is a new category, and my blog is one check short.</figcaption></figure>
</p>
<ul>
<li><strong>On desktop, Accessibility scored 96.</strong> The table-of-contents links are <code>#747474</code> on <code>#2a2a2a</code>, a contrast ratio of 3.07:1 against the 4.5:1 that small text needs.</li>
<li><strong>On mobile, Agentic Browsing scored 2 out of 3.</strong> This is a new Lighthouse category, which Lighthouse marks as still under development, for how well AI agents can use a site. The failing check was a well-formed accessibility tree: my mobile menu toggle is a <code>&lt;label&gt;</code> given <code>role=&quot;button&quot;</code>. The <code>llms.txt</code> check passed.</li>
<li><strong>On mobile, it also flagged the post&rsquo;s two big tables</strong> for having data cells without header cells.</li>
</ul>
<p>Lighthouse&rsquo;s own report warned that clearing the browser cache timed out on the mobile run, so take its timings with salt. The accessibility findings don&rsquo;t depend on timing, though, and they&rsquo;re all fixes I can make. That&rsquo;s the case for Chrome DevTools MCP in one line: an agent can find the bug and then also tell you what else is wrong with the page.</p>

<h2 class="relative group">When you need Claude in Chrome instead
    <div id="when-you-need-claude-in-chrome-instead" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#when-you-need-claude-in-chrome-instead" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>Both servers start a fresh browser. That&rsquo;s what you want for testing, and useless for anything behind a login. <a href="https://code.claude.com/docs/en/chrome"  target="_blank" rel="noreferrer">Claude in Chrome</a> is an extension that lets Claude Code work in your own Chrome or Edge, with your sessions. Start it with <code>claude --chrome</code>, or check and manage it with <code>/chrome</code>. It reads console errors and the DOM, fills forms, uploads files and records GIFs. It needs a direct Anthropic plan rather than an API key, pauses at login pages and CAPTCHAs, and network inspection isn&rsquo;t on its list of capabilities.</p>
<p>I&rsquo;ve used it for the kind of job only it can do: work in a dashboard I&rsquo;m signed in to that has no API. Most recently that was asking a search engine to re-crawl a list of pages, one &ldquo;request&rdquo; button at a time. It worked, with quirks. Asking for more than one page per batch timed the extension out, and Escape didn&rsquo;t close the dialog, though its Dismiss button did. It&rsquo;s not something to point at a page where a wrong click costs money. If either MCP server could have done it, I&rsquo;d have used that instead, because a clean, throwaway browser is easier to trust.</p>

<h2 class="relative group">Which one I&rsquo;d install
    <div id="which-one-id-install" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#which-one-id-install" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>For a web project where the agent changes UI, I&rsquo;d add <strong>Playwright MCP</strong> at project scope. It&rsquo;s the one to use for &ldquo;click through the flow and tell me it works&rdquo;. Add <strong>Chrome DevTools MCP</strong> when the question is speed, Lighthouse or network detail. Keep <strong>Claude in Chrome</strong> for the signed-in jobs nobody can script.</p>
<p>Then, for anything you&rsquo;ll check more than twice, turn it into a real test. An MCP run costs tokens every time. A Playwright test, once written, runs for free in CI, which is the point the Claude Code team makes too. Plenty of my own browser checks are plain Playwright scripts with no MCP at all. One took the page screenshots for my AWS Emulator post, and another, earlier today, confirmed that some new analytics events fire in the right order. The agent writes the script once, and after that I just run it. When a test fails, <a href="https://jared.lynskey.co.nz/en/posts/2026/2026-10-22-playwright-timeout-30000ms/" >the error message is usually the place to start</a>.</p>

<h2 class="relative group">Further reading
    <div id="further-reading" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#further-reading" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p><strong>On this site:</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/2026-10-22-playwright-timeout-30000ms/" >Playwright &ldquo;Test timeout of 30000ms exceeded.&rdquo;: find the wait that never finished</a></li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/" >MCP vs CLI vs Skills: What Each Costs Your Coding Agent</a></li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/2026-10-22-claude-code-day-to-day/" >How I run Claude Code day to day</a>, on permission modes and tmux</li>
</ul>
<p><strong>Elsewhere:</strong></p>
<ul>
<li><a href="https://github.com/microsoft/playwright-mcp"  target="_blank" rel="noreferrer">microsoft/playwright-mcp</a> and <a href="https://github.com/microsoft/playwright-cli"  target="_blank" rel="noreferrer">Playwright CLI</a></li>
<li><a href="https://github.com/ChromeDevTools/chrome-devtools-mcp"  target="_blank" rel="noreferrer">ChromeDevTools/chrome-devtools-mcp</a>, with its <a href="https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md"  target="_blank" rel="noreferrer">tool reference</a></li>
<li><a href="https://code.claude.com/docs/en/chrome"  target="_blank" rel="noreferrer">Claude in Chrome</a> and <a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">MCP tool search</a> in the Claude Code docs</li>
<li><a href="https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/"  target="_blank" rel="noreferrer">How the Claude Code team thinks about verification</a></li>
</ul>
]]></content:encoded>
      <media:content url="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/featured.jpg" medium="image" type="image/jpeg" />
    </item>
    <item>
      <title>MCP vs CLI vs Skills: What Each Costs Your Coding Agent</title>
      <link>https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/</guid>
      <pubDate>Mon, 30 Nov 2026 00:00:00 +1300</pubDate>
      <dc:creator>Jared Lynskey</dc:creator>
      <category>MCP</category>
      <category>Claude Code</category>
      <category>AI Agents</category>
      <category>Developer Tools</category>
      <category>LLM</category>
      <category>GitHub</category>
      <category>Playwright</category>
      <category>CLI</category>
      <description>MCP vs CLI vs skills for a coding agent, measured: four MCP servers cost 2,497 tokens with tool search on and 58,008 with it off. When to use each one.</description>
      <content:encoded><![CDATA[<p>Give a coding agent a CLI when a good one exists and the model already knows it: <code>gh</code>, <code>aws</code>, <code>gcloud</code>, <code>kubectl</code>. It costs nothing until it&rsquo;s used, and the agent can ask for exactly the fields it wants. Reach for an MCP server when there&rsquo;s no decent CLI, when the login lives with a hosted service, or when the tool has to keep something open between calls, like a browser. Write a skill when the agent needs a procedure, or a CLI it hasn&rsquo;t seen before; only a short description sits in the context until the skill is used. And the complaint that MCP servers eat your context window is half out of date. In Claude Code, four popular servers cost me 2,497 tokens with tool search on, which is the default, and 58,008 with it off.</p>
<p>That gap is why the argument never settles. Half the posts this autumn were written as if every tool definition goes into every request, and half as if none of them do. Both are true, depending on your setup, so I measured mine.</p>

<h2 class="relative group">What MCP, a CLI and a skill actually are
    <div id="what-mcp-a-cli-and-a-skill-actually-are" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-mcp-a-cli-and-a-skill-actually-are" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p><a href="https://modelcontextprotocol.io/"  target="_blank" rel="noreferrer">MCP</a>, the Model Context Protocol, is an open protocol Anthropic published in November 2024 for plugging tools into AI apps. An MCP server describes each of its tools with a name, a description and a JSON schema for its inputs. The agent reads those, calls a tool, and the server does the work, often with its own login to some service. The definitions are the part the model has to read, and they&rsquo;re what this whole debate is about.</p>
<p>A CLI is just a command the agent runs in a shell. It learns the command from its training data, which for <code>gh</code> or <code>aws</code> is enormous, or from <code>--help</code> when it isn&rsquo;t sure. The output is text, so the agent can pipe it through <code>jq</code> or <code>head</code> before it reads any of it.</p>
<p>A skill, in Claude Code&rsquo;s sense, is a folder with a <code>SKILL.md</code> in it. The name and description (up to 1,536 characters) are always in context, so the agent knows the skill exists. The body only loads when the skill is used. A skill can be a checklist, a house style, or a reference for a CLI the model doesn&rsquo;t know, in which case the agent still does the work through the shell.</p>

<h2 class="relative group">The argument this autumn
    <div id="the-argument-this-autumn" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-argument-this-autumn" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>In September, Maharshi Patel&rsquo;s <a href="https://maharship.com/blog/why-mcp-was-always-a-bad-idea/"  target="_blank" rel="noreferrer">MCP was always a bad idea?</a> (<a href="https://news.ycombinator.com/item?id=49779329"  target="_blank" rel="noreferrer">335 points on Hacker News</a>) called MCP &ldquo;a protocol of a bygone era&rdquo;: models now read <code>--help</code>, write scripts and call APIs well enough that most servers wrapping an API aren&rsquo;t needed. A couple of weeks later the team behind the Pi coding agent went the other way. <a href="https://earendil.com/posts/you-said-no-mcp/"  target="_blank" rel="noreferrer">You said no MCP</a> (<a href="https://news.ycombinator.com/item?id=49906637"  target="_blank" rel="noreferrer">687 points</a>) explains why MCP is now part of Pi&rsquo;s core after they&rsquo;d said it never would be, with deferred loading so tools don&rsquo;t sit in the context until they&rsquo;re wanted. They still concede the CLI&rsquo;s best trick: agents chain commands together.</p>
<p>This month on dev.to, <a href="https://dev.to/necoz/your-mcp-servers-are-silently-draining-your-context-window-the-hidden-cost-of-tool-heavy-ai-agents-fkl"  target="_blank" rel="noreferrer">Your MCP Servers Are Silently Draining Your Context Window</a> put the cost at about 25,000 tokens &ldquo;of rigid JSON schemas injected at the top of your prompt&rdquo; before you&rsquo;ve asked anything. And <a href="https://dev.to/sylwia-lask/mcp-is-dead-simple-and-thats-exactly-the-problem-5811"  target="_blank" rel="noreferrer">MCP Is Dead Simple. And That&rsquo;s Exactly the Problem</a> made the point that building a server is the easy part; deciding what the agent should be allowed to do with it is the hard part.</p>
<p>The context-window numbers in that thread assume every definition is sent with every request. Claude Code stopped doing that by default with <a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">tool search</a>: the model sees each server&rsquo;s tool names and instructions, plus a search tool, and loads a tool&rsquo;s full definition only when it goes looking for it. So I wanted to know what four servers cost with it, and without it.</p>

<h2 class="relative group">What I measured
    <div id="what-i-measured" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-i-measured" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>I set up an empty folder with four public servers in an <code>mcp-servers.json</code>: GitHub&rsquo;s official server (in Docker, default toolsets), Chrome DevTools MCP, Playwright MCP and Context7. Every run used <code>--strict-mcp-config</code>, so none of my own servers loaded, and the same settings otherwise. The prompt was &ldquo;Reply with OK&rdquo;. I ran it through <code>claude -p --output-format json</code> and added up the input tokens it reports (fresh, cache writes and cache reads). This was Claude Code 2.1.328 with Opus 5.5.</p>
<figure><video
    class="my-0 rounded-md"
    autoplay loop muted playsinline preload="metadata"
    poster="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/mcp-token-measurement.jpg" style="background:url('data:image/webp;base64,UklGRk4AAABXRUJQVlA4IEIAAACQBACdASogABIAPw1ysEwmIyIhKAqoxiGJ6QDN/PgAte791x7pLNNtz4YwE4AA/tk3xC0eAE20PTgxwOpqA2BAAAA=') center/cover no-repeat"
    width="1280"
    height="720"
    aria-label="Terminal: jq lists four MCP servers (chrome-devtools, context7, github, playwright), then a script runs the same prompt three ways and prints input tokens: 18,078 with no MCP servers, 20,575 with four servers and tool search on, 76,086 with tool search off">
    <source src="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/mcp-token-measurement.mp4" type="video/mp4">
  </video><figcaption>The real run, with the waits for the servers to start cut out.</figcaption>
</figure>

<p>With no servers, the one-line prompt cost 18,078 input tokens. That&rsquo;s Claude Code&rsquo;s own system prompt and tools, and it&rsquo;s the same for everyone. Adding the four servers with tool search on took it to 20,575: 2,497 tokens for having 106 tools on hand. With <code>ENABLE_TOOL_SEARCH=false</code> the same prompt cost 76,086, four times the baseline.</p>
<p>Not all of that extra 58,008 is MCP. <a href="https://code.claude.com/docs/en/mcp#configure-tool-search"  target="_blank" rel="noreferrer"><code>/context</code></a>, which works in print mode too, shows how it splits. Besides the MCP tools, there are 14,500 tokens of Claude Code&rsquo;s own tools that are normally deferred, and the totals only add up if those load as well when tool search is off:</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="Terminal output of claude -p /context in the test folder: System prompt 2.7k, System tools 8.7k, MCP server instructions 843, MCP tools (deferred) 39.9k, System tools (deferred) 14.5k, Skills 2.3k, Free space 952.5k"
    width="1280"
    height="490"
    src="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/claude-context-deferred-mcp-tools_hu_a355b2b50030c704.webp"
    srcset="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/claude-context-deferred-mcp-tools_hu_a355b2b50030c704.webp 800w, https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/claude-context-deferred-mcp-tools_hu_cbbcc54a85333d92.webp 1280w"
    sizes="(min-width: 768px) 50vw, 65vw"
    data-zoom-src="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/claude-context-deferred-mcp-tools_hu_cbbcc54a85333d92.webp"></span><figcaption>/context in the test folder: 39.9k tokens of MCP tools, all deferred.</figcaption></figure>
</p>
<p>So the four servers&rsquo; tool definitions come to about 40,000 tokens, and Claude Code&rsquo;s deferred tools to another 14,500. Here&rsquo;s how the MCP part splits by server, along with the three runs:</p>
<figure class="diagram">
  <div role="img" aria-label="Two bar charts. Top: input tokens for the same prompt, 18,078 with no MCP servers, 20,575 with four servers and tool search on, 76,086 with tool search off. Bottom: tool definition tokens per server, GitHub official 18,959 for 46 tools, Chrome DevTools 11,805 for 33 tools, Playwright 7,210 for 25 tools, Context7 1,884 for 2 tools"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 630" aria-hidden="true" focusable="false">
<text class="d-title" x="2" y="26" font-size="22">The same one-line prompt, three ways</text>
<text class="d-sub" x="2" y="49" font-size="15">Input tokens for “Reply with OK”, from claude -p's JSON usage</text>
<path class="d-axis" d="M252,63 V219"></path>
<text class="d-sub d-num" x="252" y="239" font-size="13" text-anchor="middle">0</text>
<path class="d-grid" d="M345,63 V219"></path>
<text class="d-sub d-num" x="345" y="239" font-size="13" text-anchor="middle">20k</text>
<path class="d-grid" d="M438,63 V219"></path>
<text class="d-sub d-num" x="438" y="239" font-size="13" text-anchor="middle">40k</text>
<path class="d-grid" d="M531,63 V219"></path>
<text class="d-sub d-num" x="531" y="239" font-size="13" text-anchor="middle">60k</text>
<path class="d-grid" d="M624,63 V219"></path>
<text class="d-sub d-num" x="624" y="239" font-size="13" text-anchor="middle">80k</text>
<text class="d-label" x="2" y="88" font-size="17">No MCP servers</text>
<path class="d-bar" d="M252,71 H332.1 Q336.1,71 336.1,75 V89 Q336.1,93 332.1,93 H252 Z"></path>
<text class="d-label d-num" x="344.1" y="87.5" font-size="16">18,078</text>
<text class="d-label" x="2" y="128" font-size="17">4 servers, tool search on</text>
<text class="d-sub" x="2" y="148" font-size="14">the default</text>
<path class="d-bar" d="M252,120.5 H343.7 Q347.7,120.5 347.7,124.5 V138.5 Q347.7,142.5 343.7,142.5 H252 Z"></path>
<text class="d-label d-num" x="355.7" y="137" font-size="16">20,575</text>
<text class="d-label" x="2" y="187" font-size="17">4 servers, tool search off</text>
<text class="d-sub" x="2" y="207" font-size="14">ENABLE_TOOL_SEARCH=false</text>
<path class="d-bar" d="M252,179.5 H601.8 Q605.8,179.5 605.8,183.5 V197.5 Q605.8,201.5 601.8,201.5 H252 Z"></path>
<text class="d-label d-num" x="613.8" y="196" font-size="16">76,086</text>
<text class="d-title" x="2" y="283" font-size="22">What each server's tool definitions weigh</text>
<text class="d-sub" x="2" y="306" font-size="15">Tokens per server, as /context counts them (deferred until searched for)</text>
<path class="d-axis" d="M252,320 V554"></path>
<text class="d-sub d-num" x="252" y="574" font-size="13" text-anchor="middle">0</text>
<path class="d-grid" d="M345,320 V554"></path>
<text class="d-sub d-num" x="345" y="574" font-size="13" text-anchor="middle">5k</text>
<path class="d-grid" d="M438,320 V554"></path>
<text class="d-sub d-num" x="438" y="574" font-size="13" text-anchor="middle">10k</text>
<path class="d-grid" d="M531,320 V554"></path>
<text class="d-sub d-num" x="531" y="574" font-size="13" text-anchor="middle">15k</text>
<path class="d-grid" d="M624,320 V554"></path>
<text class="d-sub d-num" x="624" y="574" font-size="13" text-anchor="middle">20k</text>
<text class="d-label" x="2" y="345" font-size="17">GitHub (official)</text>
<text class="d-sub" x="2" y="365" font-size="14">46 tools, default toolsets</text>
<path class="d-bar" d="M252,337.5 H600.6 Q604.6,337.5 604.6,341.5 V355.5 Q604.6,359.5 600.6,359.5 H252 Z"></path>
<text class="d-label d-num" x="612.6" y="354" font-size="16">18,959</text>
<text class="d-label" x="2" y="404" font-size="17">Chrome DevTools</text>
<text class="d-sub" x="2" y="424" font-size="14">33 tools</text>
<path class="d-bar" d="M252,396.5 H467.6 Q471.6,396.5 471.6,400.5 V414.5 Q471.6,418.5 467.6,418.5 H252 Z"></path>
<text class="d-label d-num" x="479.6" y="413" font-size="16">11,805</text>
<text class="d-label" x="2" y="463" font-size="17">Playwright</text>
<text class="d-sub" x="2" y="483" font-size="14">25 tools</text>
<path class="d-bar" d="M252,455.5 H382.1 Q386.1,455.5 386.1,459.5 V473.5 Q386.1,477.5 382.1,477.5 H252 Z"></path>
<text class="d-label d-num" x="394.1" y="472" font-size="16">7,210</text>
<text class="d-label" x="2" y="522" font-size="17">Context7</text>
<text class="d-sub" x="2" y="542" font-size="14">2 tools</text>
<path class="d-bar" d="M252,514.5 H283 Q287,514.5 287,518.5 V532.5 Q287,536.5 283,536.5 H252 Z"></path>
<text class="d-label d-num" x="295" y="531" font-size="16">1,884</text>
<text class="d-sub" x="2" y="604" font-size="13">Claude Code 2.1.328 with Opus 5.5, 19 Nov 2026.</text>
<text class="d-sub" x="2" y="624" font-size="13">github-mcp-server 2.2.0, chrome-devtools-mcp 1.13.0, @playwright/mcp 0.0.86, Context7 4.7.3</text>
</svg>
</div><figcaption>The three runs, and what each server&#39;s tool definitions weigh.</figcaption>
</figure>

<p>GitHub&rsquo;s server is the heavy one: 46 tools and almost 19,000 tokens, and that&rsquo;s only its <a href="https://github.com/github/github-mcp-server#default-toolset"  target="_blank" rel="noreferrer">default toolsets</a> (context, repos, issues, pull requests, users). With <code>GITHUB_TOOLSETS=all</code> it offers 91 tools. Context7 does its whole job with two.</p>
<p>One more thing I learned along the way. Before running any of this, I estimated the definitions&rsquo; size the usual way, counting characters and dividing by four, and got about 25,600 tokens. <code>/context</code> says 39,900. JSON schemas are full of braces, quotes and short field names, and they tokenise worse than prose. If you budget by file size, budget high.</p>
<p>When does the 40,000 come back? When tool search is off: if you set <code>ENABLE_TOOL_SEARCH=false</code>, give a server <code>&quot;alwaysLoad&quot;: true</code>, use a model older than the Opus, Sonnet and Haiku 4.5 generation, or use another client that loads everything up front. On Opus 5.5&rsquo;s million-token window that&rsquo;s 4%. On a 200,000-token window it&rsquo;s a fifth of the context gone before you&rsquo;ve typed a word, on every request.</p>

<h2 class="relative group">The cost moves to the answers
    <div id="the-cost-moves-to-the-answers" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-cost-moves-to-the-answers" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>With tool search on, what you pay for is the answers. I asked for the same thing both ways: the five most recent open pull requests on the public <code>cli/cli</code> repository.</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># the CLI: ask for the fields you want</span>
</span></span><span class="line"><span class="cl">gh pr list -R cli/cli --limit <span class="m">5</span> --json number,title,author,headRefName,updatedAt
</span></span><span class="line"><span class="cl"><span class="c1"># 1,280 bytes. Without --json, the plain table is 603 bytes.</span></span></span></code></pre></div></div>
<p>The GitHub MCP server&rsquo;s <code>list_pull_requests</code> tool, called with <code>perPage: 5</code>, returned 34,749 bytes: full objects with bodies, user records, and the head and base branches. That&rsquo;s 27 times the JSON from <code>gh</code>, for the same five pull requests. The CLI lets the agent choose its fields and pipe the result through <code>head</code> or <code>jq</code> before reading it. This tool hands back everything, and the agent has to read all of it.</p>
<p>Claude Code puts a ceiling on that. By default an MCP result can be <a href="https://code.claude.com/docs/en/mcp#mcp-output-limits-and-warnings"  target="_blank" rel="noreferrer">up to 25,000 tokens</a> (<code>MAX_MCP_OUTPUT_TOKENS</code>), with a warning above 10,000. A ceiling isn&rsquo;t a diet, though. Ten calls like that one and you&rsquo;ve spent more than the definitions ever cost.</p>
<p>Learning the CLI is cheap too. <code>gh pr list --help</code> is 3,183 bytes, and the agent rarely reads it, because it has seen <code>gh</code> thousands of times. That&rsquo;s the real case for a CLI: the model already knows it, and nobody had to describe it in a schema. Today, for example, my agent pulled Search Console numbers with <code>gcloud</code> and <code>curl</code> and watched a deploy with <code>gh run watch</code>. I don&rsquo;t have an MCP server for either, and I didn&rsquo;t miss one.</p>

<h2 class="relative group">Skills are the cheap middle
    <div id="skills-are-the-cheap-middle" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#skills-are-the-cheap-middle" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>I have seven personal skills. Their descriptions add up to 2,286 characters, about the size of one mid-sized MCP tool definition. Their bodies add up to 53 KB, and each one only loads when that skill is used. Two of them show where skills fit:</p>
<ul>
<li><strong>The Tigris skill</strong> is a CLI reference: the commands and conventions for an object store&rsquo;s CLI. There&rsquo;s no server. The agent reads the skill and runs the commands.</li>
<li><strong>The Jira skill</strong> sits on top of the Atlassian MCP server, both on my machine. The server handles the login and the API, about 40 tools of it. The skill holds what the server can&rsquo;t know: which site and which board, and the handful of things I actually do there.</li>
</ul>
<p>For a hosted service, that pairing is the one I&rsquo;d recommend: MCP for the login, a skill for &ldquo;how we do it here&rdquo;. Context7 has reached the same conclusion from the other side. Its <a href="https://github.com/upstash/context7"  target="_blank" rel="noreferrer">setup command</a> (<code>npx ctx7 setup</code>) asks whether you want &ldquo;CLI + Skills&rdquo;, which needs no MCP at all, or the MCP server. The vendor treats them as two routes to the same thing.</p>
<p>Hosted servers come with one cost a CLI doesn&rsquo;t have: you go when the vendor goes. The Atlassian server tells me at the start of every session that its current endpoint will be removed on 1 March 2027. A CLI, I can pin.</p>

<h2 class="relative group">Which one I reach for
    <div id="which-one-i-reach-for" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#which-one-i-reach-for" aria-label="Anchor">#</a>
    </span>
    
</h2>
<table>
	<thead>
			<tr>
					<th>Situation</th>
					<th>Use</th>
					<th>Why</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>A well-known CLI exists (<code>gh</code>, <code>aws</code>, <code>gcloud</code>, <code>kubectl</code>, <code>fly</code>)</td>
					<td>CLI</td>
					<td>The model already knows it, picks its fields, and can pipe the output</td>
			</tr>
			<tr>
					<td>A hosted service with an OAuth login and no good CLI (issue trackers, docs tools)</td>
					<td>MCP, plus a skill for house rules</td>
					<td>The server holds the login; the skill holds the conventions</td>
			</tr>
			<tr>
					<td>Something the agent drives and that has to stay open between calls (a browser, a debugger)</td>
					<td>MCP</td>
					<td>It needs a live session, not one command at a time</td>
			</tr>
			<tr>
					<td>A procedure, or an in-house CLI the model has never seen</td>
					<td>Skill</td>
					<td>Only the description costs anything until it&rsquo;s used</td>
			</tr>
			<tr>
					<td>Library docs for the version you&rsquo;re on</td>
					<td>Context7, either way</td>
					<td>It ships as an MCP server and as a CLI with a skill</td>
			</tr>
			<tr>
					<td>An app that can&rsquo;t run shell commands (a chat app, some desktop clients)</td>
					<td>MCP</td>
					<td>It&rsquo;s the only door</td>
			</tr>
	</tbody>
</table>

<h2 class="relative group">What I&rsquo;d set up
    <div id="what-id-set-up" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-id-set-up" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>Leave tool search on. Don&rsquo;t set <code>alwaysLoad</code> on a server unless you use its tools in nearly every session, because every always-loaded definition is paid for on every request.</p>
<p>Put servers where they&rsquo;re needed rather than everywhere. A project&rsquo;s <code>.mcp.json</code> is shared through git, and <code>claude mcp add --scope project</code> writes to it:</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">claude mcp add --scope project playwright -- npx -y @playwright/mcp@latest</span></span></code></pre></div></div>
<p>If you use GitHub&rsquo;s server, trim it. <code>GITHUB_TOOLSETS</code> picks which groups of tools it offers, and <code>--read-only</code> drops every tool that writes. Better still, let the agent use <code>gh</code>.</p>
<p>Run <code>/context</code> now and then. It lists every MCP tool with its token count and marks which ones are deferred, which is how I found out the GitHub server alone is nearly half the total.</p>
<p>And when you notice you&rsquo;ve pasted the same instructions into a session twice, that&rsquo;s a skill.</p>
<p>If you want to check your own setup, here&rsquo;s a trimmed version of the script from the clip. It needs <code>claude</code> on your path and two config files: one with your servers, and one with <code>{&quot;mcpServers&quot;: {}}</code>.</p>
<div class="highlight-wrapper"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="ch">#!/usr/bin/env python3</span>
</span></span><span class="line"><span class="cl"><span class="s2">&#34;&#34;&#34;Send one tiny prompt three ways and print how many input tokens each costs.&#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">json</span><span class="o">,</span> <span class="nn">os</span><span class="o">,</span> <span class="nn">subprocess</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">PROMPT</span> <span class="o">=</span> <span class="s2">&#34;Reply with OK&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">RUNS</span> <span class="o">=</span> <span class="p">[</span>
</span></span><span class="line"><span class="cl">    <span class="p">(</span><span class="s2">&#34;no MCP servers&#34;</span><span class="p">,</span>             <span class="s2">&#34;no-servers.json&#34;</span><span class="p">,</span>  <span class="p">{}),</span>
</span></span><span class="line"><span class="cl">    <span class="p">(</span><span class="s2">&#34;servers, tool search on&#34;</span><span class="p">,</span>    <span class="s2">&#34;mcp-servers.json&#34;</span><span class="p">,</span> <span class="p">{}),</span>
</span></span><span class="line"><span class="cl">    <span class="p">(</span><span class="s2">&#34;servers, tool search off&#34;</span><span class="p">,</span>   <span class="s2">&#34;mcp-servers.json&#34;</span><span class="p">,</span> <span class="p">{</span><span class="s2">&#34;ENABLE_TOOL_SEARCH&#34;</span><span class="p">:</span> <span class="s2">&#34;false&#34;</span><span class="p">}),</span>
</span></span><span class="line"><span class="cl"><span class="p">]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">input_tokens</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">extra_env</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">cmd</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&#34;claude&#34;</span><span class="p">,</span> <span class="s2">&#34;-p&#34;</span><span class="p">,</span> <span class="n">PROMPT</span><span class="p">,</span> <span class="s2">&#34;--output-format&#34;</span><span class="p">,</span> <span class="s2">&#34;json&#34;</span><span class="p">,</span> <span class="s2">&#34;--max-turns&#34;</span><span class="p">,</span> <span class="s2">&#34;1&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">           <span class="s2">&#34;--strict-mcp-config&#34;</span><span class="p">,</span> <span class="s2">&#34;--mcp-config&#34;</span><span class="p">,</span> <span class="n">config</span><span class="p">,</span> <span class="s2">&#34;--setting-sources&#34;</span><span class="p">,</span> <span class="s2">&#34;project&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">    <span class="n">out</span> <span class="o">=</span> <span class="n">subprocess</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">cmd</span><span class="p">,</span> <span class="n">capture_output</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">text</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">stdin</span><span class="o">=</span><span class="n">subprocess</span><span class="o">.</span><span class="n">DEVNULL</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                         <span class="n">env</span><span class="o">=</span><span class="p">{</span><span class="o">**</span><span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">,</span> <span class="o">**</span><span class="n">extra_env</span><span class="p">})</span><span class="o">.</span><span class="n">stdout</span>
</span></span><span class="line"><span class="cl">    <span class="n">u</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">loads</span><span class="p">(</span><span class="n">out</span><span class="p">)[</span><span class="s2">&#34;usage&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">u</span><span class="p">[</span><span class="s2">&#34;input_tokens&#34;</span><span class="p">]</span> <span class="o">+</span> <span class="n">u</span><span class="p">[</span><span class="s2">&#34;cache_creation_input_tokens&#34;</span><span class="p">]</span> <span class="o">+</span> <span class="n">u</span><span class="p">[</span><span class="s2">&#34;cache_read_input_tokens&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">base</span> <span class="o">=</span> <span class="kc">None</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> <span class="n">label</span><span class="p">,</span> <span class="n">config</span><span class="p">,</span> <span class="n">env</span> <span class="ow">in</span> <span class="n">RUNS</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">n</span> <span class="o">=</span> <span class="n">input_tokens</span><span class="p">(</span><span class="n">config</span><span class="p">,</span> <span class="n">env</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">base</span> <span class="o">=</span> <span class="n">base</span> <span class="ow">or</span> <span class="n">n</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;</span><span class="si">{</span><span class="n">label</span><span class="si">:</span><span class="s2">28</span><span class="si">}</span><span class="s2"> </span><span class="si">{</span><span class="n">n</span><span class="si">:</span><span class="s2">&gt;9,</span><span class="si">}</span><span class="s2"> </span><span class="si">{</span><span class="n">n</span> <span class="o">-</span> <span class="n">base</span><span class="si">:</span><span class="s2">&gt;+9,</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span></span></span></code></pre></div></div>

<h2 class="relative group">The short version
    <div id="the-short-version" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-short-version" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p>A CLI the model already knows is the cheapest tool you can give an agent: no definitions to load, and answers as small as the agent asks for. An MCP server earns its place when it holds a login or a live session that a CLI can&rsquo;t. With tool search on, keeping a few connected costs about 2,500 tokens. Without it, four of them cost 40,000 or more on every request. A skill sits between the two: a paragraph in context, and the rest on demand. On my machine, the best setups use two of the three together.</p>

<h2 class="relative group">Further reading
    <div id="further-reading" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none">
        <a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#further-reading" aria-label="Anchor">#</a>
    </span>
    
</h2>
<p><strong>On this site:</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/claude-code-settings/" >Claude Code settings.local.json vs settings.json, Explained</a></li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/agents-md-vs-claude-md/" >AGENTS.md vs CLAUDE.md: Which File Your Coding Agent Actually Reads</a></li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/2026-10-22-claude-code-day-to-day/" >How I Run Claude Code Day to Day</a>, on skills, memory and permission modes</li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/2026-10-22-agentic-ai-security/" >Agentic AI Security</a>, on what my agents can reach and who gets to tell them what to do</li>
<li><a href="https://jared.lynskey.co.nz/en/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/" >Playwright MCP vs Chrome DevTools MCP: Letting Claude Code Check Its Own Work</a></li>
</ul>
<p><strong>Elsewhere:</strong></p>
<ul>
<li><a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">MCP tool search</a>, <a href="https://code.claude.com/docs/en/mcp#mcp-output-limits-and-warnings"  target="_blank" rel="noreferrer">MCP output limits</a> and <a href="https://code.claude.com/docs/en/skills"  target="_blank" rel="noreferrer">how skills load</a> in the Claude Code docs</li>
<li><a href="https://github.com/github/github-mcp-server"  target="_blank" rel="noreferrer">GitHub&rsquo;s MCP server</a>, for toolsets and read-only mode</li>
<li><a href="https://github.com/upstash/context7"  target="_blank" rel="noreferrer">Context7</a>, which ships as an MCP server and as a CLI with a skill</li>
<li><a href="https://maharship.com/blog/why-mcp-was-always-a-bad-idea/"  target="_blank" rel="noreferrer">MCP was always a bad idea?</a> and <a href="https://earendil.com/posts/you-said-no-mcp/"  target="_blank" rel="noreferrer">You said no MCP</a>, the two sides of this autumn&rsquo;s argument</li>
</ul>
]]></content:encoded>
      <media:content url="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/featured.jpg" medium="image" type="image/jpeg" />
    </item>
  </channel>
</rss>
