<?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 · 仁才徳</title>
    <link>https://jared.lynskey.co.nz/ja/tags/mcp/</link>
    <description>ソフトウェアエンジニアリングと開発組織のリーダーシップについて。評価、採用とチームの拡大、CI/CD、DevOps モニタリング、エージェンティック AI。ソウルより。</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <copyright>© 2026 仁才徳</copyright>
    <lastBuildDate>Thu, 03 Dec 2026 00:00:00 +1300</lastBuildDate>
    <atom:link href="https://jared.lynskey.co.nz/ja/tags/mcp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Chrome DevTools MCPの使い方：Playwright MCPとの違いとClaude Codeでの設定</title>
      <link>https://jared.lynskey.co.nz/ja/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/ja/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>Chrome DevTools MCPはパフォーマンストレースやLighthouseまで扱え、Playwright MCPはアクセシビリティツリーでページを操作します。Claude Codeへの入れ方と、同じバグのあるページで実際に何が見えたかをまとめました。</description>
      <content:encoded><![CDATA[<p>Chrome DevTools MCPとPlaywright MCPは、どちらもコーディングエージェントに本物のブラウザを渡して、自分の仕事を確かめさせるためのMCPサーバーです。GoogleのChromeチームが作るChrome DevTools MCPは、Chromeを操作しながら、DevToolsが知っていることまで持ってきます。パフォーマンストレース、Lighthouseの監査、ネットワークとコンソールの詳細です。「なぜ遅いのか」「Lighthouseはどう見るか」が知りたいときはこちらです。MicrosoftのPlaywright MCPは、ページをアクセシビリティツリーとして読みます。見出し、リンク、ボタンが一覧になっていて、それぞれにエージェントがクリックに使える参照IDが付いています。画面の流れをたどって「ちゃんと動くか」を確かめるなら、こちらが基本の選択肢です。さらに、自分がログインしているブラウザをそのまま使わせたいときのために、Claude in Chromeという3つ目の選択肢もあります。どれもClaude Codeにはコマンド1つで追加できます。</p>
<p>READMEの比較ではなく実際の違いを知りたかったので、わざとバグを入れた小さな注文ページと、自分のブログ記事の1本に、両方を当ててみました。以下は、それぞれに何が見えたか、コンテキストをどれだけ使ったか、そして私ならどれを入れるかです。</p>
<p>この11月は、コーディングエージェントの話題もここに来ていました。<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">Hacker Newsで292ポイント</a>）は、1種類だけテストに投資するならE2Eテストにして、エージェントに「動いている本物のシステムを触る手と見る目」を渡せ、と書いています。Zennでは、Claude CodeのPRをほとんど読まなくなった開発者が、<a href="https://zenn.dev/linkedge/articles/claude-code-instead-of-reading-code"  target="_blank" rel="noreferrer">代わりに何を確かめているか</a>を書いていました。受け入れ条件と、コードを読まずに検証環境の画面を操作する動作確認役のサブエージェントです。GeekNewsでは、変更のあとにエージェントがボタンを押してネットワークログを読む<a href="https://news.hada.io/topic?id=37440"  target="_blank" rel="noreferrer">Reticle</a>というツールが話題になりました。UIの変更が本当に動くことを、人がページを開かずにエージェント自身に証明させる手段が、ブラウザへのアクセスです。</p>

<h2 class="relative group">Claude CodeにChrome DevTools MCPとPlaywright MCPを入れる
    <div id="claude-codeにchrome-devtools-mcpとplaywright-mcpを入れる" 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="#claude-code%e3%81%abchrome-devtools-mcp%e3%81%a8playwright-mcp%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>どちらもnpmパッケージで、Claude Codeが必要なときにstdioで起動します。プロジェクトに追加するにはこうします。</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>を付けると、リポジトリの<code>.mcp.json</code>に書き込まれるので、クローンした全員が同じブラウザツールを使えます。プロジェクトのサーバーは、最初に一人ひとりが承認する必要があります。そのため<code>claude</code>を起動するまで、<code>claude mcp list</code>では承認待ちと表示されます。自分のマシンのすべてのプロジェクトで使いたいなら<code>--scope user</code>にします。Chrome DevTools MCPの<a href="https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/client-configurations.md"  target="_blank" rel="noreferrer">公式の手順</a>はこちらを使っています。</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="ターミナル：claude mcp addでplaywrightとchrome-devtoolsのサーバーをプロジェクトスコープで追加し、catで.mcp.jsonに両方が入ったことを確認、claude mcp listでは両方とも承認待ちと表示される">
    <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>使い捨てのプロジェクトに2つとも追加したところ。誰かがそこでClaude Codeを起動して承認するまでは「承認待ち」のままです。</figcaption>
</figure>

<p>始める前に知っておくとよいフラグがいくつかあります。</p>
<ul>
<li><strong>Playwright MCPは、初期設定では画面に見えるブラウザを開きます。</strong> 見ている必要がなければ<code>--headless</code>を、ブラウザのプロファイルをディスクではなくメモリに置きたければ<code>--isolated</code>を付けます。</li>
<li><strong>Chrome DevTools MCPは、初期設定で利用統計をGoogleに送ります。</strong> 止めるには<code>--no-usage-statistics</code>です。また、パフォーマンス系のツールは、実ユーザーのデータを取るためにトレースしたURLをGoogleの<a href="https://developer.chrome.com/docs/crux"  target="_blank" rel="noreferrer">CrUX API</a>に送ることがあり、<code>--no-performance-crux</code>で止められます。どちらも<a href="https://github.com/ChromeDevTools/chrome-devtools-mcp"  target="_blank" rel="noreferrer">README</a>に書いてあります。</li>
<li><strong>Chrome DevTools MCPが公式にサポートしているのは、Google ChromeとChrome for Testingだけです。</strong> 私のMacにはChromeが入っておらずEdgeだけなので、Playwrightがすでにダウンロードしていた Chrome for Testing を両方のサーバーに指定しました。Playwright MCPは<code>--executable-path</code>、Chrome DevTools MCPは<code>--executablePath</code>です。</li>
<li><strong>Chrome DevTools MCPはClaude Codeのプラグインとしても入れられます。</strong> LCP、アクセシビリティ、メモリリーク調査用のスキルが付いてきます。<code>/plugin marketplace add ChromeDevTools/chrome-devtools-mcp</code>のあと、<code>/plugin install chrome-devtools-mcp@chrome-devtools-plugins</code>です。</li>
</ul>

<h2 class="relative group">Chrome DevTools MCPとPlaywright MCPの違い
    <div id="chrome-devtools-mcpとplaywright-mcpの違い" 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="#chrome-devtools-mcp%e3%81%a8playwright-mcp%e3%81%ae%e9%81%95%e3%81%84" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>試したのは11月19日時点のPlaywright MCP 0.0.86とChrome DevTools MCP 1.13.0です。ツールの一覧は、短いPythonスクリプトからそれぞれに直接つないで取りました。</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>開発元</td>
					<td>Microsoft</td>
					<td>GoogleのChrome DevToolsチーム</td>
					<td>Anthropic</td>
			</tr>
			<tr>
					<td>ブラウザ</td>
					<td>Chromium、Chrome、Edge、Firefox、WebKit</td>
					<td>Chrome（ほかのChromium系も動くことはあるがサポート外）</td>
					<td>自分のChrome、Edgeなど（ログイン済みのもの）</td>
			</tr>
			<tr>
					<td>ツール数</td>
					<td>25</td>
					<td>33（<code>--slim</code>なら3）</td>
					<td>Claude Codeに内蔵（<code>--chrome</code>で有効化）</td>
			</tr>
			<tr>
					<td>ページの見え方</td>
					<td>YAMLのアクセシビリティスナップショット。クリックには<code>ref</code>を使う</td>
					<td>テキストのアクセシビリティスナップショット。クリックには<code>uid</code>を使う</td>
					<td>自分のブラウザでページを読む</td>
			</tr>
			<tr>
					<td>ほかにできること</td>
					<td>操作ごとに裏で実行したPlaywrightのコードを表示。拡張機能で起動中のブラウザにつなぐこともできる（<code>--extension</code>）</td>
					<td>パフォーマンストレース、Lighthouse、計算済みCSS、ヒープスナップショット、スクリーンキャスト</td>
					<td>ログイン状態とCookie、GIF録画</td>
			</tr>
			<tr>
					<td>向いていること</td>
					<td>画面の流れをたどって結果を確かめる</td>
					<td>速度、Lighthouse、ネットワークとコンソールの深掘り</td>
					<td>ログインが必要な作業</td>
			</tr>
	</tbody>
</table>

<h2 class="relative group">検証：押しても何も起きない「注文する」ボタン
    <div id="検証押しても何も起きない注文するボタン" 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="#%e6%a4%9c%e8%a8%bc%e6%8a%bc%e3%81%97%e3%81%a6%e3%82%82%e4%bd%95%e3%82%82%e8%b5%b7%e3%81%8d%e3%81%aa%e3%81%84%e6%b3%a8%e6%96%87%e3%81%99%e3%82%8b%e3%83%9c%e3%82%bf%e3%83%b3" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>デモは1枚のHTMLページです。小さな「Your order」のカードに、<strong>Place order</strong>ボタンがあります。読み込み時に<code>/api/cart</code>を取りに行きますが、エンドポイント名が変わったという設定なので404が返ります。空の<code>.catch()</code>がその失敗を握りつぶすため、ボタンを押すと<code>TypeError: Cannot read properties of undefined (reading 'items')</code>が出て、何も表示されません。もう1つ、プロモーションの1行に<code>white-space: nowrap</code>を付けて、カードからはみ出すようにしました。こちらはエラーを出さない、見た目だけのバグです。</p>
<p>まずは自分で各サーバーを操作しました。ページを開き、スナップショットを取り、ボタンを押し、コンソールとネットワークログを読む、という流れです。カードのスナップショットはほぼ同じでした。Playwright MCPのものがこちら。</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のものがこちらです。</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>本当のバグは、どちらも捕まえました。クリックのあと、Playwright MCPのコンソール用ツールは<code>TypeError</code>をスタック上の位置（<code>:34:31</code>）付きで返し、404も2件（カートと、ないfavicon）出しました。Chrome DevTools MCPも同じエラーを並べ、404の2件は「[2 times]」として1行にまとめました。頼めばソースマップを通したスタックトレースも付けられます。ネットワークのツールは、どちらも<code>GET /api/cart [404]</code>を示しました。</p>
<p>一方、はみ出したプロモーションの行は、どちらのスナップショットにも映りません。アクセシビリティツリーから見れば、正しい文言の入った段落にすぎないからです。わかるのはスクリーンショットだけです。</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="両方のサーバーが撮った同じ注文カード。左がPlaywright MCPのbrowser_take_screenshot、右がChrome DevTools MCPのtake_screenshot。どちらも送料無料の1行がカードの右端からはみ出している"
    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>どちらも同じChromiumを動かしているので、画素は一致します。プロモーションの行がカードからはみ出しているのは、スクリーンショットでしかわかりません。</figcaption></figure>
</p>
<p>次に、Claude Code自身にやらせました。サーバーごとに1回ずつ、プロンプトは「Place orderボタンを押しても何も起きない。ブラウザのツールで原因を調べ、ほかに壊れて見えるところがないかも確認して。ファイルは編集しないこと」だけです。どちらも約23秒、12ターンで、<code>claude -p</code>の報告ではAPI料金換算で1回あたり約0.21ドルでした。どちらも404、握りつぶされたエラー、<code>TypeError</code>を見つけ、頼まれてもいないのにスクリーンショットを撮って、はみ出した行まで報告しました。Playwright側は幅を測り（420pxのカードに665pxの文字列）、DevTools側は原因のCSSルールを名指ししました。この程度の小さなページでは勝ち負けはつきません。差が出るのは、コストと、ほかに何を測れるかです。</p>

<h2 class="relative group">コンテキストをどれだけ使うか
    <div id="コンテキストをどれだけ使うか" 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="#%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e3%81%a9%e3%82%8c%e3%81%a0%e3%81%91%e4%bd%bf%e3%81%86%e3%81%8b" aria-label="アンカー">#</a>
    </span>
    
</h2>
<figure class="diagram">
  <div role="img" aria-label="棒グラフ。ツール定義：Playwright MCPは22.3 KB（約5.6kトークン）、Chrome DevTools MCPは33.8 KB（約8.4kトークン）。長めのブログ記事1本のページスナップショット：50.5 KBと50.4 KB、どちらも約12.6kトークン"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 329" aria-hidden="true" focusable="false">
<text class="d-title" x="2" y="26" font-size="22">各サーバーがモデルに渡す量</text>
<text class="d-sub" x="2" y="49" font-size="15">2026年11月19日、同じブログ記事で計測。トークン数は推定（文字数 ÷ 4）。</text>
<text class="d-label" x="2" y="97" font-size="16">ツール定義（サーバーが提供する全ツール）</text>
<text class="d-label" x="2" y="205" font-size="16">長めのブログ記事1本のページスナップショット</text>
<path class="d-axis" d="M181.8,104 V164"></path>
<path class="d-axis" d="M181.8,212 V272"></path>
<text class="d-sub d-num" x="181.8" y="295" font-size="13" text-anchor="middle">0 KB</text>
<path class="d-grid" d="M235.6,104 V164"></path>
<path class="d-grid" d="M235.6,212 V272"></path>
<text class="d-sub d-num" x="235.6" y="295" font-size="13" text-anchor="middle">10 KB</text>
<path class="d-grid" d="M289.3,104 V164"></path>
<path class="d-grid" d="M289.3,212 V272"></path>
<text class="d-sub d-num" x="289.3" y="295" font-size="13" text-anchor="middle">20 KB</text>
<path class="d-grid" d="M343,104 V164"></path>
<path class="d-grid" d="M343,212 V272"></path>
<text class="d-sub d-num" x="343" y="295" font-size="13" text-anchor="middle">30 KB</text>
<path class="d-grid" d="M396.8,104 V164"></path>
<path class="d-grid" d="M396.8,212 V272"></path>
<text class="d-sub d-num" x="396.8" y="295" font-size="13" text-anchor="middle">40 KB</text>
<path class="d-grid" d="M450.5,104 V164"></path>
<path class="d-grid" d="M450.5,212 V272"></path>
<text class="d-sub d-num" x="450.5" y="295" font-size="13" text-anchor="middle">50 KB</text>
<path class="d-grid" d="M504.2,104 V164"></path>
<path class="d-grid" d="M504.2,212 V272"></path>
<text class="d-sub d-num" x="504.2" y="295" font-size="13" text-anchor="middle">60 KB</text>
<text class="d-sub" x="2" y="125" font-size="15">Playwright MCP</text>
<path class="d-bar" d="M181.8,109 H297.4 Q301.4,109 301.4,113 V127 Q301.4,131 297.4,131 H181.8 Z"></path>
<text class="d-label d-num" x="309.4" y="125" font-size="15">22.3 KB · 約5.6kトークン</text>
<text class="d-sub" x="2" y="153" font-size="15">Chrome DevTools MCP</text>
<path class="d-bar-alt" d="M181.8,137 H359.3 Q363.3,137 363.3,141 V155 Q363.3,159 359.3,159 H181.8 Z"></path>
<text class="d-label d-num" x="371.3" y="153" font-size="15">33.8 KB · 約8.4kトークン</text>
<text class="d-sub" x="2" y="233" font-size="15">Playwright MCP</text>
<path class="d-bar" d="M181.8,217 H449.4 Q453.4,217 453.4,221 V235 Q453.4,239 449.4,239 H181.8 Z"></path>
<text class="d-label d-num" x="461.4" y="233" font-size="15">50.5 KB · 約12.6kトークン</text>
<text class="d-sub" x="2" y="261" font-size="15">Chrome DevTools MCP</text>
<path class="d-bar-alt" d="M181.8,245 H448.9 Q452.9,245 452.9,249 V263 Q452.9,267 448.9,267 H181.8 Z"></path>
<text class="d-label d-num" x="460.9" y="261" font-size="15">50.4 KB · 約12.6kトークン</text>
<text class="d-sub" x="2" y="323" font-size="13">Playwright MCP 0.0.86 · Chrome DevTools MCP 1.13.0</text>
</svg>
</div><figcaption>同じ記事で計測。トークン数は推定です。</figcaption>
</figure>

<p>見るべき数字は2つです。</p>
<p><strong>ツール定義</strong>は、Playwright MCPの25ツールで22.3 KB、Chrome DevTools MCPの33ツールで33.8 KBでした。以前は、このスキーマ全体が最初のメッセージからコンテキストに居座っていました。今のClaude Codeは、<a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">MCPのツール定義を初期設定で遅延読み込み</a>します。最初に読み込むのは名前だけで、定義はエージェントがそのツールを探したときに届きます。つまり、2つとも入れておいても、使うまではほとんど負担になりません。それでもChrome DevTools MCPを小さくしたければ、<code>--slim</code>でツールは3つ（navigate、evaluate、screenshot）、1.3 KBになります。</p>
<p>本当のコストは<strong>スナップショット</strong>です。長めの記事であるAWS Emulatorの記事のスナップショットは、どちらのサーバーでも約50 KBでした。エージェントがページを見るたびに、ざっと12,600トークンです。この点、Playwright MCP 0.0.86はよくできています。ページ移動やクリックのあとはスナップショットをファイルに書き出し、そこへのリンクだけを359バイトで返すので、ツリー全体が会話に入るのは、エージェントが<code>browser_snapshot</code>を呼ぶか、そのファイルを開いたときだけです。Chrome DevTools MCPのクリックも、スナップショットを頼まない限り「Successfully clicked on the element」の1行しか返しません。小さなページならどうでもいい話ですが、長いページでクリックのたびにスナップショットを撮るエージェントは、あっという間にコンテキストを使い切ります。</p>
<p>この点は、両プロジェクト自身も認めています。Playwright MCPのREADMEは、コーディングエージェントなら<a href="https://github.com/microsoft/playwright-cli"  target="_blank" rel="noreferrer">Playwright CLIとそのスキル</a>のほうが向いているかもしれないと書いています。CLIなら「大きなツールスキーマや冗長なアクセシビリティツリーを読み込まずに済む」からです。Chrome DevTools MCPも、サーバーと一緒に<code>chrome-devtools</code>というCLIとスキルを配っています。ブラウザを開いたまま、ページを一歩ずつ調べる必要があるなら、今でもMCPが向いています。ちょっと見るだけなら、CLIを1回呼ぶほうが安く済みます。</p>

<h2 class="relative group">Chrome DevTools MCPが本領を発揮するところ
    <div id="chrome-devtools-mcpが本領を発揮するところ" 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="#chrome-devtools-mcp%e3%81%8c%e6%9c%ac%e9%a0%98%e3%82%92%e7%99%ba%e6%8f%ae%e3%81%99%e3%82%8b%e3%81%a8%e3%81%93%e3%82%8d" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>Playwright MCPはパフォーマンストレースを記録できません。Chrome DevTools MCPはでき、その要約はモデルが読むために書かれています。同じ記事に対して、スロットリングなしでリロードしたときの結果の一部がこちらです。測ったのはソウルにある私のMacです。</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>続けて呼んだ<code>performance_analyze_insight</code>（<code>LCPBreakdown</code>）は、LCP要素がカバー画像だと特定しました。Cloudflareから1年間のimmutableキャッシュ付きで配信されているWebPです。498 msのうち半分はHTMLを待つ時間、残り半分は描画でした。すでに調整済みのサイトとしては納得のいく内訳です。トレースは毎週テストにするようなものではありませんが、「このページ、遅くない？」と言われたときに、エージェントの手元にあってほしいのはまさにこれです。</p>
<p>意外に気に入ったのが<code>lighthouse_audit</code>です。同じ記事にデスクトップとモバイルで1回ずつかけたところ、気づいていなかったことを見つけてくれました。</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="AWS Emulatorの記事をモバイルで計測したLighthouseレポートの上部：Accessibility 100、Best Practices 100、SEO 100、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>Chrome DevTools MCP経由で実行したLighthouse 13.6。Agentic Browsingは新しいカテゴリで、私のブログはチェックが1つ足りませんでした。</figcaption></figure>
</p>
<ul>
<li><strong>デスクトップではAccessibilityが96でした。</strong> 目次のリンクが<code>#2a2a2a</code>の上に<code>#747474</code>で、コントラスト比は3.07:1。小さい文字に必要な4.5:1に届いていません。</li>
<li><strong>モバイルではAgentic Browsingが3つ中2つでした。</strong> AIエージェントにとってどれだけ使いやすいサイトかを見る新しいカテゴリで、Lighthouse自身も開発中としています。落ちたのは、アクセシビリティツリーが正しい形になっているかのチェックです。モバイルメニューの開閉ボタンが、<code>role=&quot;button&quot;</code>を付けた<code>&lt;label&gt;</code>になっていました。<code>llms.txt</code>のチェックは通りました。</li>
<li><strong>モバイルでは、記事内の大きな表2つ</strong>も、見出しセルのないデータセルがあると指摘されました。</li>
</ul>
<p>モバイルの回では、ブラウザキャッシュの消去がタイムアウトしたとLighthouseのレポート自体が警告していたので、時間の数字は割り引いて見てください。とはいえアクセシビリティの指摘は時間に左右されませんし、どれも直せるものです。Chrome DevTools MCPを入れる理由を一言でいえば、エージェントがバグを見つけたうえで、そのページのほかの問題まで教えてくれることです。</p>

<h2 class="relative group">Claude in Chromeが必要になるとき
    <div id="claude-in-chromeが必要になるとき" 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="#claude-in-chrome%e3%81%8c%e5%bf%85%e8%a6%81%e3%81%ab%e3%81%aa%e3%82%8b%e3%81%a8%e3%81%8d" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>どちらのサーバーも、まっさらなブラウザを立ち上げます。テストならそれが望ましいのですが、ログインが必要な作業には使えません。<a href="https://code.claude.com/docs/en/chrome"  target="_blank" rel="noreferrer">Claude in Chrome</a>は、Claude Codeが自分のChromeやEdgeの中で、自分のセッションのまま作業できるようにする拡張機能です。<code>claude --chrome</code>で起動し、状態の確認や管理は<code>/chrome</code>で行います。コンソールのエラーやDOMを読み、フォームを埋め、ファイルをアップロードし、GIFを録画できます。APIキーではなくAnthropicのプランへの直接の契約が必要で、ログイン画面やCAPTCHAでは止まります。また、できることの一覧にネットワークの調査は入っていません。</p>
<p>私が使ってきたのは、これにしかできない種類の作業です。ログインしているダッシュボードの中で、APIのない操作をすること。最近では、検索エンジンにページの再クロールを頼むボタンを、ページ1つずつ押してもらいました。動きはしましたが、癖はありました。1回のバッチで2ページ以上頼むと拡張機能がタイムアウトし、ダイアログはEscapeでは閉じず、Dismissボタンなら閉じました。押し間違いがお金に響くページに向けるものではありません。どちらかのMCPサーバーでできたなら、そちらを使っていたはずです。使い捨てのまっさらなブラウザのほうが、安心して任せられるからです。</p>

<h2 class="relative group">結局どれを入れるか
    <div id="結局どれを入れるか" 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="#%e7%b5%90%e5%b1%80%e3%81%a9%e3%82%8c%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%81%8b" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>エージェントがUIを変えるWebプロジェクトなら、私は<strong>Playwright MCP</strong>をプロジェクトスコープで入れます。「画面の流れをたどって、動くと言ってくれ」という用途はこれです。速度、Lighthouse、ネットワークの詳細が問題になるときは<strong>Chrome DevTools MCP</strong>を足します。そして、誰にもスクリプト化できない、ログインが必要な作業のために<strong>Claude in Chrome</strong>を残しておきます。</p>
<p>そのうえで、3回以上確かめることは、ちゃんとしたテストにしてしまいましょう。MCPでの確認は毎回トークンを使いますが、Playwrightのテストは一度書けばCIでタダで走ります。Claude Codeチームが言っているのも同じことです。私自身のブラウザでの確認も、MCPを使わない素のPlaywrightスクリプトがかなりの部分を占めています。1つはAWS Emulatorの記事に載せたページのスクリーンショットを撮り、もう1つは今日、新しく入れたアナリティクスのイベントが正しい順番で発火するかを確かめました。スクリプトはエージェントが一度書き、あとは私が走らせるだけです。テストが落ちたら、<a href="https://jared.lynskey.co.nz/ja/posts/2026/2026-10-22-playwright-timeout-30000ms/" >まずエラーメッセージを読むところから</a>始めるのが近道です。</p>

<h2 class="relative group">参考
    <div id="参考" 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="#%e5%8f%82%e8%80%83" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p><strong>このサイトの記事：</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/2026-10-22-playwright-timeout-30000ms/" >Playwrightの「Test timeout of 30000ms exceeded.」：まず終わらない待機を探す</a></li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/mcp-vs-cli-vs-skills/" >MCPとは？CLI・スキルとの違いとコンテキストの消費量</a></li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/2026-10-22-claude-code-day-to-day/" >Claude Code を日々どう使っているか</a>：パーミッションモードとtmuxについて</li>
</ul>
<p><strong>ほかのサイト：</strong></p>
<ul>
<li><a href="https://github.com/microsoft/playwright-mcp"  target="_blank" rel="noreferrer">microsoft/playwright-mcp</a>と<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>と<a href="https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md"  target="_blank" rel="noreferrer">ツールリファレンス</a></li>
<li>Claude Codeのドキュメントの<a href="https://code.claude.com/docs/en/chrome"  target="_blank" rel="noreferrer">Claude in Chrome</a>と<a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">MCPのツール検索</a></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とは？CLI・スキルとの違いとコンテキストの消費量</title>
      <link>https://jared.lynskey.co.nz/ja/posts/2026/mcp-vs-cli-vs-skills/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/ja/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とは何か、CLIやスキルとどう違うのかを、トークン数の実測でわかりやすく解説します。MCPサーバー4つの負担はツール検索ありで2,497、なしで58,008トークンでした。使い分けの目安も。</description>
      <content:encoded><![CDATA[<p>MCP（Model Context Protocol）とは、AIエージェントに外部のツールをつなぐための共通の仕組みです。MCPサーバーが「こういうツールがあって、こういう引数を受け取ります」と説明を出し、エージェントはそれを読んでツールを呼び出します。では、いつMCPを使い、いつ普通のCLIやスキルで済ませるべきか。私の結論はこうです。<code>gh</code>、<code>aws</code>、<code>gcloud</code>、<code>kubectl</code>のように、モデルがすでによく知っているCLIがあるならCLIを使います。使うまでコストはゼロで、欲しい項目だけを指定して取り出せます。まともなCLIがないとき、ログインをクラウドのサービス側が持っているとき、ブラウザのように呼び出しの間ずっと何かを開いておく必要があるときはMCPサーバーです。エージェントに手順や、まだ知らないCLIを教えたいときはスキルを書きます。スキルは使われるまで短い説明文しかコンテキストに入りません。そして「MCPサーバーはコンテキストを食いつぶす」という話は、半分はもう古くなっています。Claude Codeで人気のサーバーを4つつないだところ、ツール検索（tool search）が有効な状態（デフォルト）では2,497トークン、無効にすると58,008トークンでした。</p>
<p>この差があるからこそ、議論が噛み合いません。この秋に出た記事の半分は「ツール定義は毎回のリクエストにすべて入る」前提で、残り半分は「入らない」前提で書かれていました。設定次第でどちらも正しいので、自分の環境で測ってみました。</p>

<h2 class="relative group">MCPサーバーとは？CLI・スキルとの違い
    <div id="mcpサーバーとはcliスキルとの違い" 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="#mcp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%a8%e3%81%afcli%e3%82%b9%e3%82%ad%e3%83%ab%e3%81%a8%e3%81%ae%e9%81%95%e3%81%84" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p><a href="https://modelcontextprotocol.io/"  target="_blank" rel="noreferrer">MCP</a>は、AnthropicがAIアプリにツールをつなぐために2024年11月に公開したオープンなプロトコルです。MCPサーバーは、ツールごとに名前、説明、入力のJSONスキーマを公開します。エージェントはそれを読んでツールを呼び出し、実際の処理はサーバー側が、多くの場合そのサービスへの自前のログインを使って行います。モデルが読まなければならないのはこの定義の部分で、今回の議論もすべてここをめぐるものです。</p>
<p>CLIは、エージェントがシェルで実行する普通のコマンドです。使い方は学習データから知っていますし（<code>gh</code>や<code>aws</code>なら膨大な量です）、自信がなければ<code>--help</code>を読みます。出力はテキストなので、読む前に<code>jq</code>や<code>head</code>に通して絞り込めます。</p>
<p>Claude Codeでいうスキルは、<code>SKILL.md</code>の入ったフォルダです。名前と説明（最大1,536文字）は常にコンテキストに入っていて、エージェントはスキルがあることを知っています。本文は、そのスキルが使われたときに初めて読み込まれます。中身はチェックリストでも、チームの書き方のルールでも、モデルが知らないCLIのリファレンスでも構いません。最後の場合、実際の作業はやはりシェル経由で行われます。</p>

<h2 class="relative group">この秋の論争
    <div id="この秋の論争" 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="#%e3%81%93%e3%81%ae%e7%a7%8b%e3%81%ae%e8%ab%96%e4%ba%89" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>9月、Maharshi Patelの<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">Hacker Newsで335ポイント</a>）は、MCPを「過ぎ去った時代のプロトコル」と呼びました。今のモデルは<code>--help</code>を読み、スクリプトを書き、APIを直接呼べるので、APIを包んだだけのサーバーはほとんど要らない、という主張です。その2週間ほど後、コーディングエージェントPiのチームは逆の方向に進みました。<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ポイント</a>）では、以前は対応しないと言っていたMCPをPiの中核に入れた理由を説明しています。ツールを必要になるまでコンテキストに入れない「遅延読み込み」も一緒に入れたそうです。それでも、CLIのいちばんの強みは認めています。エージェントはコマンドをつなげて使える、という点です。</p>
<p>今月の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>が、何も質問しないうちから約25,000トークン分のJSONスキーマがプロンプトの先頭に入っている、と書きました。<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>は、サーバーを作るのは簡単で、難しいのはエージェントにそれで何をさせてよいかを決めることだ、と指摘しています。</p>
<p>こうしたコンテキストの数字は、すべての定義がすべてのリクエストに入る前提です。Claude Codeは<a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">ツール検索</a>によって、デフォルトではそうしなくなりました。モデルに見えるのは各サーバーのツール名と説明書き、それに検索用のツールだけで、ツールの完全な定義は探しに行ったときに初めて読み込まれます。そこで、サーバー4つのコストがツール検索ありとなしでどう変わるかを知りたくなりました。</p>

<h2 class="relative group">測ってみた
    <div id="測ってみた" 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="#%e6%b8%ac%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>空のフォルダに、公開されているMCPサーバーを4つ書いた<code>mcp-servers.json</code>を用意しました。GitHub公式のサーバー（Dockerで起動、デフォルトのツールセット）、Chrome DevTools MCP、Playwright MCP、Context7です。どの実行でも<code>--strict-mcp-config</code>を付けて自分のサーバーは読み込まず、それ以外の設定も揃えました。プロンプトは「Reply with OK」の一文だけです。<code>claude -p --output-format json</code>で実行し、報告される入力トークン（通常、キャッシュ書き込み、キャッシュ読み込み）を合計しました。環境はClaude Code 2.1.328、モデルは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="ターミナル：jqで4つのMCPサーバー（chrome-devtools、context7、github、playwright）を表示し、スクリプトが同じプロンプトを3通りで実行して入力トークンを出力。MCPサーバーなしで18,078、4サーバーでツール検索ありが20,575、ツール検索なしが76,086">
    <source src="https://jared.lynskey.co.nz/en/posts/2026/mcp-vs-cli-vs-skills/mcp-token-measurement.mp4" type="video/mp4">
  </video><figcaption>実際の実行です。サーバーの起動を待つ時間はカットしています。</figcaption>
</figure>

<p>サーバーなしでは、一文のプロンプトに18,078入力トークンかかりました。これはClaude Code自体のシステムプロンプトとツールの分で、誰の環境でも同じです。ツール検索ありで4つのサーバーを足すと20,575。106個のツールを手元に置いておくコストが2,497トークンでした。<code>ENABLE_TOOL_SEARCH=false</code>にすると同じプロンプトが76,086、ベースラインの4倍です。</p>
<p>増えた58,008トークンが全部MCPというわけではありません。print modeでも動く<a href="https://code.claude.com/docs/en/mcp#configure-tool-search"  target="_blank" rel="noreferrer"><code>/context</code></a>で内訳を見ると、MCPのツールのほかに、ふだんは遅延読み込みされるClaude Code自身のツールが14,500トークンあります。ツール検索を切るとこれも一緒に読み込まれる、と考えないと合計が合いません。</p>
<p><figure><span class="mc-img"><img
    class="my-0 rounded-md"
    loading="lazy"
    decoding="async"
    fetchpriority="auto"
    alt="テスト用フォルダでclaude -p /contextを実行した出力：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。MCPツールは39.9kトークンで、すべて遅延読み込みです。</figcaption></figure>
</p>
<p>つまり、4つのサーバーのツール定義は約40,000トークン、Claude Code側の遅延ツールがさらに14,500トークンです。MCP部分のサーバーごとの内訳と、3回の実行結果をまとめるとこうなります。</p>
<figure class="diagram">
  <div role="img" aria-label="2つの棒グラフ。上：同じプロンプトの入力トークン。MCPサーバーなし18,078、4サーバーでツール検索あり20,575、ツール検索なし76,086。下：サーバーごとのツール定義のトークン数。GitHub公式18,959（46ツール）、Chrome DevTools 11,805（33ツール）、Playwright 7,210（25ツール）、Context7 1,884（2ツール）"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 649" aria-hidden="true" focusable="false">
<text class="d-title" x="2" y="26" font-size="22">同じ1行のプロンプトを3通りで</text>
<text class="d-sub" x="2" y="49" font-size="15">「Reply with OK」の入力トークン（claude -p の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">MCPサーバーなし</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サーバー、ツール検索あり</text>
<text class="d-sub" x="2" y="148" font-size="14">デフォルト</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サーバー、ツール検索なし</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">各サーバーのツール定義の重さ</text>
<text class="d-sub" x="2" y="306" font-size="15">サーバーごとのトークン数（/context の数え方。検索されるまでは読み込まれない）</text>
<path class="d-axis" d="M252,320 V573"></path>
<text class="d-sub d-num" x="252" y="593" font-size="13" text-anchor="middle">0</text>
<path class="d-grid" d="M345,320 V573"></path>
<text class="d-sub d-num" x="345" y="593" font-size="13" text-anchor="middle">5k</text>
<path class="d-grid" d="M438,320 V573"></path>
<text class="d-sub d-num" x="438" y="593" font-size="13" text-anchor="middle">10k</text>
<path class="d-grid" d="M531,320 V573"></path>
<text class="d-sub d-num" x="531" y="593" font-size="13" text-anchor="middle">15k</text>
<path class="d-grid" d="M624,320 V573"></path>
<text class="d-sub d-num" x="624" y="593" font-size="13" text-anchor="middle">20k</text>
<text class="d-label" x="2" y="345" font-size="17">GitHub（公式）</text>
<text class="d-sub" x="2" y="365" font-size="14">46ツール、デフォルトのツールセ</text>
<text class="d-sub" x="2" y="384" font-size="14">ット</text>
<path class="d-bar" d="M252,347 H600.6 Q604.6,347 604.6,351 V365 Q604.6,369 600.6,369 H252 Z"></path>
<text class="d-label d-num" x="612.6" y="363.5" font-size="16">18,959</text>
<text class="d-label" x="2" y="423" font-size="17">Chrome DevTools</text>
<text class="d-sub" x="2" y="443" font-size="14">33ツール</text>
<path class="d-bar" d="M252,415.5 H467.6 Q471.6,415.5 471.6,419.5 V433.5 Q471.6,437.5 467.6,437.5 H252 Z"></path>
<text class="d-label d-num" x="479.6" y="432" font-size="16">11,805</text>
<text class="d-label" x="2" y="482" font-size="17">Playwright</text>
<text class="d-sub" x="2" y="502" font-size="14">25ツール</text>
<path class="d-bar" d="M252,474.5 H382.1 Q386.1,474.5 386.1,478.5 V492.5 Q386.1,496.5 382.1,496.5 H252 Z"></path>
<text class="d-label d-num" x="394.1" y="491" font-size="16">7,210</text>
<text class="d-label" x="2" y="541" font-size="17">Context7</text>
<text class="d-sub" x="2" y="561" font-size="14">2ツール</text>
<path class="d-bar" d="M252,533.5 H283 Q287,533.5 287,537.5 V551.5 Q287,555.5 283,555.5 H252 Z"></path>
<text class="d-label d-num" x="295" y="550" font-size="16">1,884</text>
<text class="d-sub" x="2" y="623" font-size="13">Claude Code 2.1.328、Opus 5.5、2026年11月19日。</text>
<text class="d-sub" x="2" y="643" 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>3回の実行と、各サーバーのツール定義の重さ。</figcaption>
</figure>

<p>重いのはGitHubのサーバーで、46ツールで約19,000トークン。しかもこれは<a href="https://github.com/github/github-mcp-server#default-toolset"  target="_blank" rel="noreferrer">デフォルトのツールセット</a>（context、repos、issues、pull requests、users）だけの数字です。<code>GITHUB_TOOLSETS=all</code>にすると91ツールになります。Context7はたった2つのツールで仕事をこなしています。</p>
<p>途中でもうひとつわかったことがあります。測る前に、定義の大きさをよくあるやり方（文字数を4で割る）で見積もったら約25,600トークンでした。<code>/context</code>の数字は39,900です。JSONスキーマは波括弧や引用符、短いフィールド名だらけで、普通の文章よりトークンに分割されやすいのです。ファイルサイズで予算を見積もるなら、多めに見ておいたほうが安全です。</p>
<p>では、この40,000トークンが戻ってくるのはどんなときか。ツール検索が効いていないときです。<code>ENABLE_TOOL_SEARCH=false</code>にしたとき、サーバーに<code>&quot;alwaysLoad&quot;: true</code>を付けたとき、Opus・Sonnet・Haikuの4.5世代より前のモデルを使うとき、すべてを最初に読み込む別のクライアントを使うときです。Opus 5.5の100万トークンのウィンドウなら4%ですが、20万トークンのウィンドウだと、何も入力しないうちからコンテキストの5分の1が消えます。それも毎回のリクエストでです。</p>

<h2 class="relative group">コストは「返ってくる結果」に移る
    <div id="コストは返ってくる結果に移る" 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="#%e3%82%b3%e3%82%b9%e3%83%88%e3%81%af%e8%bf%94%e3%81%a3%e3%81%a6%e3%81%8f%e3%82%8b%e7%b5%90%e6%9e%9c%e3%81%ab%e7%a7%bb%e3%82%8b" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>ツール検索が有効なら、払うのは結果の分です。同じことを両方の方法で頼んでみました。公開リポジトリ<code>cli/cli</code>の、新しいほうから5件のオープンなプルリクエストです。</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>GitHub MCPサーバーの<code>list_pull_requests</code>ツールを<code>perPage: 5</code>で呼ぶと、返ってきたのは34,749バイトでした。本文、ユーザー情報、headとbaseのブランチまで入ったオブジェクトがまるごと返ってきます。同じ5件で、<code>gh</code>のJSONの27倍です。CLIなら、エージェントは欲しい項目を選び、読む前に<code>head</code>や<code>jq</code>に通せます。このツールは全部を返し、エージェントはそれを全部読むことになります。</p>
<p>Claude Codeには上限があり、MCPの結果はデフォルトで<a href="https://code.claude.com/docs/en/mcp#mcp-output-limits-and-warnings"  target="_blank" rel="noreferrer">最大25,000トークン</a>（<code>MAX_MCP_OUTPUT_TOKENS</code>）、10,000を超えると警告が出ます。ただ、上限があるのとダイエットできているのとは別の話です。こういう呼び出しを10回もすれば、定義にかかったコストを軽く超えます。</p>
<p>CLIは覚えるのも安上がりです。<code>gh pr list --help</code>は3,183バイトで、しかもエージェントはめったに読みません。<code>gh</code>は何千回も見てきているからです。CLIを使う本当の理由はそこにあります。モデルがすでに知っていて、誰もスキーマで説明する必要がありません。たとえば今日、私のエージェントは<code>gcloud</code>と<code>curl</code>でSearch Consoleの数字を取り、<code>gh run watch</code>でデプロイを見守っていました。どちらにもMCPサーバーは入れていませんが、困りませんでした。</p>

<h2 class="relative group">スキルは安上がりな中間
    <div id="スキルは安上がりな中間" 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="#%e3%82%b9%e3%82%ad%e3%83%ab%e3%81%af%e5%ae%89%e4%b8%8a%e3%81%8c%e3%82%8a%e3%81%aa%e4%b8%ad%e9%96%93" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>私の個人用スキルは7つあります。説明文を全部合わせて2,286文字で、中くらいのMCPツール定義1つ分くらいです。本文は合計53KBありますが、読み込まれるのはそのスキルが使われたときだけです。スキルの使いどころがわかる例を2つ挙げます。</p>
<ul>
<li><strong>Tigrisのスキル</strong>は、オブジェクトストレージのCLIのリファレンスです。コマンドと決まりごとが書いてあるだけで、サーバーはありません。エージェントはスキルを読んでコマンドを実行します。</li>
<li><strong>Jiraのスキル</strong>は、Atlassian MCPサーバーの上に乗っています。どちらも私のマシンに入っています。ログインとAPI（ツール約40個）はサーバーが受け持ち、スキルにはサーバーが知りようのないこと、つまりどのサイトのどのボードを使うかと、実際にそこでやるいくつかの操作が書いてあります。</li>
</ul>
<p>クラウドのサービスなら、この組み合わせをおすすめします。ログインはMCPに、「うちのやり方」はスキルに任せる形です。Context7も反対側から同じ結論に達しています。<a href="https://github.com/upstash/context7"  target="_blank" rel="noreferrer">セットアップ用のコマンド</a>（<code>npx ctx7 setup</code>）は、MCPをまったく使わない「CLI + Skills」か、MCPサーバーかを選ばせます。提供元自身が、この2つを同じものへの2つの道として扱っているわけです。</p>
<p>ホスト型のサーバーには、CLIにはないコストがひとつあります。提供元がやめれば一緒に終わる、という点です。Atlassianのサーバーは、セッションを始めるたびに、今のエンドポイントが2027年3月1日に廃止されると知らせてきます。CLIならバージョンを固定できます。</p>

<h2 class="relative group">使い分けの目安
    <div id="使い分けの目安" 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="#%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91%e3%81%ae%e7%9b%ae%e5%ae%89" aria-label="アンカー">#</a>
    </span>
    
</h2>
<table>
	<thead>
			<tr>
					<th>状況</th>
					<th>使うもの</th>
					<th>理由</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>よく知られたCLIがある（<code>gh</code>、<code>aws</code>、<code>gcloud</code>、<code>kubectl</code>、<code>fly</code>）</td>
					<td>CLI</td>
					<td>モデルがすでに知っていて、項目を選べて、出力をパイプで渡せる</td>
			</tr>
			<tr>
					<td>OAuthでログインするクラウドサービスで、まともなCLIがない（課題管理、ドキュメントツールなど）</td>
					<td>MCP＋チームのルール用のスキル</td>
					<td>ログインはサーバー、決まりごとはスキルが持つ</td>
			</tr>
			<tr>
					<td>エージェントが操作し、呼び出しの間ずっと開いておく必要があるもの（ブラウザ、デバッガ）</td>
					<td>MCP</td>
					<td>コマンド1回ずつではなく、生きたセッションが必要</td>
			</tr>
			<tr>
					<td>手順、またはモデルが見たことのない社内CLI</td>
					<td>スキル</td>
					<td>使われるまでは説明文の分しかかからない</td>
			</tr>
			<tr>
					<td>使っているバージョンのライブラリのドキュメント</td>
					<td>Context7（どちらの形でも）</td>
					<td>MCPサーバーとしても、CLI＋スキルとしても提供されている</td>
			</tr>
			<tr>
					<td>シェルコマンドを実行できないアプリ（チャットアプリ、一部のデスクトップクライアント）</td>
					<td>MCP</td>
					<td>ほかに入り口がない</td>
			</tr>
	</tbody>
</table>

<h2 class="relative group">おすすめの設定
    <div id="おすすめの設定" 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="#%e3%81%8a%e3%81%99%e3%81%99%e3%82%81%e3%81%ae%e8%a8%ad%e5%ae%9a" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>ツール検索は有効のままにしておきましょう。ほぼ毎回のセッションでそのツールを使うのでなければ、サーバーに<code>alwaysLoad</code>を付けるのはやめたほうがいいです。常に読み込む定義は、すべてのリクエストで毎回コストがかかります。</p>
<p>サーバーは、どこにでも入れるのではなく、必要なところにだけ入れます。プロジェクトの<code>.mcp.json</code>はgitで共有され、<code>claude mcp add --scope project</code>で書き込めます。</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>GitHubのサーバーを使うなら、絞り込みましょう。<code>GITHUB_TOOLSETS</code>で提供するツールのグループを選べますし、<code>--read-only</code>を付ければ書き込み系のツールはすべて外れます。もっといいのは、エージェントに<code>gh</code>を使わせることです。</p>
<p>ときどき<code>/context</code>を実行してみてください。MCPのツールが1つずつトークン数付きで並び、どれが遅延読み込みかもわかります。GitHubのサーバーだけで全体のほぼ半分を占めていると気づいたのも、これがきっかけでした。</p>
<p>そして、同じ指示を2回セッションに貼り付けていると気づいたら、それはスキルにすべきものです。</p>
<p>自分の環境でも確かめたい方のために、動画のスクリプトを少し整えたものを載せておきます。<code>claude</code>にパスが通っていることと、設定ファイルが2つ必要です。1つは自分のサーバーを書いたもの、もう1つは<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">まとめると
    <div id="まとめると" 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="#%e3%81%be%e3%81%a8%e3%82%81%e3%82%8b%e3%81%a8" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p>モデルがすでに知っているCLIは、エージェントに渡せるいちばん安いツールです。読み込む定義はなく、結果もエージェントが頼んだぶんだけです。MCPサーバーが役に立つのは、CLIでは持てないログインや生きたセッションを持っているときです。ツール検索が有効なら、いくつかつないでおいても約2,500トークンで済みます。無効だと、4つで毎回40,000トークン以上かかります。スキルはその中間で、コンテキストに入るのは一段落ぶんだけ、残りは必要なときに読み込まれます。私の環境でいちばんうまくいっているのは、3つのうち2つを組み合わせた使い方です。</p>

<h2 class="relative group">参考リンク
    <div id="参考リンク" 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="#%e5%8f%82%e8%80%83%e3%83%aa%e3%83%b3%e3%82%af" aria-label="アンカー">#</a>
    </span>
    
</h2>
<p><strong>このサイトの記事：</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/claude-code-settings/" >Claude Codeの設定ファイル：settings.jsonとsettings.local.jsonの違いと秘密情報の守り方</a></li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/agents-md-vs-claude-md/" >CLAUDE.mdとは？書き方とAGENTS.mdとの違い</a></li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/2026-10-22-claude-code-day-to-day/" >Claude Code を日々どう使っているか</a>：スキル、メモリ、パーミッションモードについて</li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/2026-10-22-agentic-ai-security/" >エージェント型AIのセキュリティ</a>：私のエージェントが何に触れられて、誰の言うことを聞くのか</li>
<li><a href="https://jared.lynskey.co.nz/ja/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/" >Chrome DevTools MCPの使い方：Playwright MCPとの違いとClaude Codeでの設定</a></li>
</ul>
<p><strong>外部のリンク：</strong></p>
<ul>
<li>Claude Codeのドキュメントの<a href="https://code.claude.com/docs/en/mcp#scale-with-mcp-tool-search"  target="_blank" rel="noreferrer">MCPツール検索</a>、<a href="https://code.claude.com/docs/en/mcp#mcp-output-limits-and-warnings"  target="_blank" rel="noreferrer">MCPの出力の上限</a>、<a href="https://code.claude.com/docs/en/skills"  target="_blank" rel="noreferrer">スキルの読み込まれ方</a></li>
<li><a href="https://github.com/github/github-mcp-server"  target="_blank" rel="noreferrer">GitHubのMCPサーバー</a>：ツールセットと読み取り専用モード</li>
<li><a href="https://github.com/upstash/context7"  target="_blank" rel="noreferrer">Context7</a>：MCPサーバーとしても、CLI＋スキルとしても使える</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>と<a href="https://earendil.com/posts/you-said-no-mcp/"  target="_blank" rel="noreferrer">You said no MCP</a></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>
