<?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/ko/tags/mcp/</link>
    <description>소프트웨어 엔지니어링과 개발 조직 리더십에 대한 이야기. 성과 리뷰, 채용과 팀 확장, CI/CD, 데브옵스 모니터링, 에이전틱 AI. 서울에서 씁니다.</description>
    <generator>Hugo</generator>
    <language>ko</language>
    <copyright>© 2026 인재덕</copyright>
    <lastBuildDate>Thu, 03 Dec 2026 00:00:00 +1300</lastBuildDate>
    <atom:link href="https://jared.lynskey.co.nz/ko/tags/mcp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Chrome DevTools MCP 사용법과 설치: Playwright MCP와 비교</title>
      <link>https://jared.lynskey.co.nz/ko/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/ko/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 감사, 네트워크와 콘솔의 세부 정보입니다. &ldquo;왜 느린가&rdquo;, &ldquo;Lighthouse는 어떻게 보는가&quot;가 궁금할 때는 이쪽입니다. Microsoft의 Playwright MCP는 페이지를 접근성 트리로 읽습니다. 제목, 링크, 버튼이 목록으로 나오고, 각 항목에 에이전트가 클릭할 때 쓰는 참조 ID가 붙어 있죠. 화면 흐름을 따라가며 제대로 동작하는지 확인하는 용도라면 이쪽이 기본 선택지입니다. 여기에 에이전트가 내가 로그인한 브라우저를 그대로 써야 할 때를 위한 세 번째 선택지, Claude in Chrome도 있습니다. 셋 다 Claude Code에는 명령어 한 줄로 추가됩니다.</p>
<p>README에 적힌 비교 말고 실제로 어떻게 다른지 알고 싶어서, 일부러 버그를 넣은 작은 주문 페이지와 제 블로그 글 하나에 둘 다 돌려 봤습니다. 아래는 각각 무엇을 봤는지, 컨텍스트를 얼마나 썼는지, 그리고 제가 무엇을 설치할지에 대한 이야기입니다.</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>)은 테스트 한 종류에만 투자한다면 E2E 테스트를 고르고, 에이전트에게 &ldquo;실제로 돌아가는 시스템을 만질 손과 볼 눈&quot;을 주라고 말합니다. 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%ec%97%90-chrome-devtools-mcp%ec%99%80-playwright-mcp-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0" 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>테스트용 프로젝트에 둘 다 추가한 모습입니다. 누군가 그 폴더에서 Claude Code를 실행해 승인하기 전까지는 &lsquo;승인 대기&rsquo; 상태로 남습니다.</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%ec%99%80-playwright-mcp-%eb%b9%84%ea%b5%90" 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>내 로그인 상태와 쿠키, 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="#%ed%85%8c%ec%8a%a4%ed%8a%b8-%eb%88%8c%eb%9f%ac%eb%8f%84-%ec%95%84%eb%ac%b4-%ec%9d%bc%eb%8f%84-%ec%97%86%eb%8a%94-%ec%a3%bc%eb%ac%b8-%eb%b2%84%ed%8a%bc" aria-label="앵커">#</a>
    </span>
    
</h2>
<p>데모는 HTML 한 장입니다. 작은 &ldquo;Your order&rdquo; 카드에 <strong>Place order</strong> 버튼이 있습니다. 페이지가 열리면 <code>/api/cart</code>를 불러오는데, 엔드포인트 이름이 바뀌었다는 설정이라 404가 납니다. 빈 <code>.catch()</code>가 이 실패를 삼키기 때문에, 버튼을 누르면 <code>TypeError: Cannot read properties of undefined (reading 'items')</code>가 나고 화면에는 아무것도 뜨지 않습니다. 또 하나, 프로모션 문구 한 줄에 <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도 두 건(장바구니, 그리고 없는 favicon) 보여 줬습니다. Chrome DevTools MCP도 같은 에러를 나열했고, 404 두 건은 &ldquo;[2 times]&ldquo;로 한 줄에 묶었습니다. 요청하면 소스맵을 거친 스택 트레이스도 붙여 줍니다. 네트워크 도구는 둘 다 <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. 둘 다 무료 배송 문구가 카드 오른쪽 밖으로 넘친다"
    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에게 직접 시켜 봤습니다. 서버마다 한 번씩, 프롬프트는 &ldquo;Place order 버튼을 눌러도 아무 일도 안 일어난다. 브라우저 도구로 원인을 찾고, 그 밖에 깨져 보이는 곳도 확인해라. 파일은 수정하지 마라&quot;가 전부였습니다. 두 번 다 약 23초, 12턴이 걸렸고, <code>claude -p</code>가 보고한 비용은 API 요금 기준으로 한 번에 약 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="#%ec%bb%a8%ed%85%8d%ec%8a%a4%ed%8a%b8%eb%a5%bc-%ec%96%bc%eb%a7%88%eb%82%98-%ec%93%b0%eb%8a%94%ea%b0%80" 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 토큰). 긴 블로그 글 한 편의 페이지 스냅샷: 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">긴 블로그 글 한 편의 페이지 스냅샷</text>
<path class="d-axis" d="M178.1,104 V164"></path>
<path class="d-axis" d="M178.1,212 V272"></path>
<text class="d-sub d-num" x="178.1" y="295" font-size="13" text-anchor="middle">0 KB</text>
<path class="d-grid" d="M238.6,104 V164"></path>
<path class="d-grid" d="M238.6,212 V272"></path>
<text class="d-sub d-num" x="238.6" y="295" font-size="13" text-anchor="middle">10 KB</text>
<path class="d-grid" d="M299.1,104 V164"></path>
<path class="d-grid" d="M299.1,212 V272"></path>
<text class="d-sub d-num" x="299.1" y="295" font-size="13" text-anchor="middle">20 KB</text>
<path class="d-grid" d="M359.6,104 V164"></path>
<path class="d-grid" d="M359.6,212 V272"></path>
<text class="d-sub d-num" x="359.6" y="295" font-size="13" text-anchor="middle">30 KB</text>
<path class="d-grid" d="M420.1,104 V164"></path>
<path class="d-grid" d="M420.1,212 V272"></path>
<text class="d-sub d-num" x="420.1" y="295" font-size="13" text-anchor="middle">40 KB</text>
<path class="d-grid" d="M480.6,104 V164"></path>
<path class="d-grid" d="M480.6,212 V272"></path>
<text class="d-sub d-num" x="480.6" y="295" font-size="13" text-anchor="middle">50 KB</text>
<path class="d-grid" d="M541.1,104 V164"></path>
<path class="d-grid" d="M541.1,212 V272"></path>
<text class="d-sub d-num" x="541.1" 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="M178.1,109 H308.8 Q312.8,109 312.8,113 V127 Q312.8,131 308.8,131 H178.1 Z"></path>
<text class="d-label d-num" x="320.8" 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="M178.1,137 H378.4 Q382.4,137 382.4,141 V155 Q382.4,159 378.4,159 H178.1 Z"></path>
<text class="d-label d-num" x="390.4" 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="M178.1,217 H479.9 Q483.9,217 483.9,221 V235 Q483.9,239 479.9,239 H178.1 Z"></path>
<text class="d-label d-num" x="491.9" 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="M178.1,245 H479.3 Q483.3,245 483.3,249 V263 Q483.3,267 479.3,267 H178.1 Z"></path>
<text class="d-label d-num" x="491.3" 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>봐야 할 숫자는 두 가지입니다.</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>합니다. 처음에는 이름만 불러오고, 정의는 에이전트가 그 도구를 찾을 때 들어옵니다. 그러니 둘 다 설치해 둬도 실제로 쓰기 전까지는 부담이 거의 없습니다. 그래도 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의 클릭도 스냅샷을 따로 요청하지 않으면 &ldquo;Successfully clicked on the element&rdquo; 한 줄만 돌려줍니다. 작은 페이지에서는 상관없지만, 긴 페이지에서 클릭할 때마다 스냅샷을 찍는 에이전트는 컨텍스트를 금방 다 써 버립니다.</p>
<p>두 프로젝트도 이제 이 점을 스스로 인정합니다. Playwright MCP의 README는 코딩 에이전트라면 <a href="https://github.com/microsoft/playwright-cli"  target="_blank" rel="noreferrer">Playwright CLI와 그 스킬</a>이 더 나을 수 있다고 씁니다. CLI 호출은 &ldquo;큰 도구 스키마와 장황한 접근성 트리를 불러오지 않기&rdquo; 때문이라고요. Chrome DevTools MCP도 서버와 함께 <code>chrome-devtools</code> CLI와 스킬을 배포합니다. 브라우저를 열어 둔 채 페이지를 한 단계씩 파고들어야 한다면 여전히 MCP가 맞습니다. 잠깐 확인만 할 거라면 CLI 한 번이 더 쌉니다.</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%ea%b0%80-%ec%a0%9c%ea%b0%92%ec%9d%84-%ed%95%98%eb%8a%94-%ea%b3%b3" 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을 기다리는 시간이었고 나머지 절반은 렌더링이었습니다. 이미 손본 사이트로서는 수긍이 가는 내역입니다. 트레이스는 매주 테스트로 돌릴 만한 건 아니지만, 누가 &ldquo;이 페이지 느리지 않아요?&ldquo;라고 할 때 에이전트 손에 있어야 할 게 바로 이겁니다.</p>
<p>뜻밖에 마음에 든 도구는 <code>lighthouse_audit</code>였습니다. 같은 글에 데스크톱과 모바일로 한 번씩 돌렸더니, 제가 몰랐던 문제를 찾아 줬습니다.</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은 새 카테고리인데, 제 블로그는 검사 하나가 모자랐습니다.</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>모바일에서는 글 안의 큰 표 두 개</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%ec%9d%b4-%ed%95%84%ec%9a%94%ed%95%9c-%ea%b2%bd%ec%9a%b0" 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가 없는 작업을 하는 것. 최근에는 검색 엔진에 페이지 재크롤링을 요청하는 버튼을 페이지마다 하나씩 눌러 달라고 했습니다. 되긴 했지만 버릇이 있었습니다. 한 번에 두 페이지 이상을 맡기면 확장 프로그램이 시간 초과로 멈췄고, 대화상자는 Esc로는 닫히지 않고 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="#%ea%b7%b8%eb%9e%98%ec%84%9c-%eb%ac%b4%ec%97%87%ec%9d%84-%ec%84%a4%ec%b9%98%ed%95%a0%ea%b9%8c" aria-label="앵커">#</a>
    </span>
    
</h2>
<p>에이전트가 UI를 바꾸는 웹 프로젝트라면, 저는 <strong>Playwright MCP</strong>를 프로젝트 스코프로 넣겠습니다. &ldquo;화면 흐름을 따라가 보고 동작한다고 말해 줘&quot;에는 이게 맞습니다. 속도, Lighthouse, 네트워크 세부 사항이 문제라면 <strong>Chrome DevTools MCP</strong>를 더합니다. 그리고 누구도 스크립트로 만들 수 없는, 로그인이 필요한 일을 위해 <strong>Claude in Chrome</strong>을 남겨 둡니다.</p>
<p>그다음, 두 번 넘게 확인할 일은 제대로 된 테스트로 만드세요. MCP로 확인하면 매번 토큰이 들지만, Playwright 테스트는 한 번 써 두면 CI에서 공짜로 돌아갑니다. Claude Code 팀이 하는 말도 같습니다. 제 브라우저 확인도 MCP 없이 그냥 Playwright 스크립트로 하는 경우가 꽤 많습니다. 하나는 AWS Emulator 글에 들어간 페이지 스크린샷을 찍었고, 또 하나는 오늘 새로 넣은 분석 이벤트가 올바른 순서로 발생하는지 확인했습니다. 스크립트는 에이전트가 한 번 쓰고, 그 뒤로는 제가 실행만 합니다. 테스트가 실패하면 <a href="https://jared.lynskey.co.nz/ko/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="#%eb%8d%94-%ec%9d%bd%ec%9d%84%ea%b1%b0%eb%a6%ac" aria-label="앵커">#</a>
    </span>
    
</h2>
<p><strong>이 블로그의 글:</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/2026-10-22-playwright-timeout-30000ms/" >Playwright &ldquo;Test timeout of 30000ms exceeded.&rdquo;: 끝나지 않는 대기부터 찾기</a></li>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/mcp-vs-cli-vs-skills/" >MCP란? CLI·스킬과의 차이와 토큰 사용량</a></li>
<li><a href="https://jared.lynskey.co.nz/ko/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/ko/posts/2026/mcp-vs-cli-vs-skills/</link>
      <guid isPermaLink="true">https://jared.lynskey.co.nz/ko/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 서버가 &ldquo;이런 도구가 있고, 이런 인자를 받습니다&quot;라는 설명을 내놓으면, 에이전트가 그걸 읽고 도구를 호출합니다. 그럼 언제 MCP를 쓰고, 언제 그냥 CLI나 스킬로 충분할까요? 제 결론은 이렇습니다. <code>gh</code>, <code>aws</code>, <code>gcloud</code>, <code>kubectl</code>처럼 모델이 이미 잘 아는 CLI가 있다면 CLI를 씁니다. 쓰기 전까지는 비용이 전혀 들지 않고, 원하는 필드만 골라서 받아올 수 있습니다. 쓸 만한 CLI가 없을 때, 로그인을 클라우드 서비스 쪽이 쥐고 있을 때, 브라우저처럼 호출과 호출 사이에 뭔가를 계속 열어 둬야 할 때는 MCP 서버를 씁니다. 에이전트에게 절차나 아직 모르는 CLI를 가르쳐야 할 때는 스킬을 만듭니다. 스킬은 쓰이기 전까지 짧은 설명만 컨텍스트에 올라갑니다. 그리고 &ldquo;MCP 서버가 컨텍스트 창을 다 잡아먹는다&quot;는 이야기는 절반쯤은 이미 옛말입니다. Claude Code에 인기 있는 서버 4개를 연결해 보니, 도구 검색(tool search)을 켠 상태(기본값)에서는 2,497토큰, 끈 상태에서는 58,008토큰이 들었습니다.</p>
<p>이 차이 때문에 논쟁이 끝나지 않습니다. 올가을에 나온 글의 절반은 &ldquo;도구 정의가 모든 요청에 전부 들어간다&quot;는 전제로, 나머지 절반은 &ldquo;안 들어간다&quot;는 전제로 쓰였습니다. 설정에 따라 둘 다 맞는 말이라서, 제 환경에서 직접 재 봤습니다.</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-%ec%84%9c%eb%b2%84%eb%9e%80-cli%ec%8a%a4%ed%82%ac%ea%b3%bc%ec%9d%98-%ec%b0%a8%ec%9d%b4" 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="#%ec%98%ac%ea%b0%80%ec%9d%84%ec%9d%98-%eb%85%bc%ec%9f%81" 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를 &ldquo;지나간 시대의 프로토콜&quot;이라고 불렀습니다. 요즘 모델은 <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>가, 질문을 하기도 전에 JSON 스키마 약 25,000토큰이 프롬프트 맨 앞에 들어간다고 썼습니다. <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="#%ec%a7%81%ec%a0%91-%ec%9e%ac-%eb%b4%a4%ec%8a%b5%eb%8b%88%eb%8b%a4" 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>를 붙여서 제 서버는 하나도 불러오지 않았고, 나머지 설정도 똑같이 맞췄습니다. 프롬프트는 &ldquo;Reply with OK&rdquo; 한 줄입니다. <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로 MCP 서버 4개(chrome-devtools, context7, github, playwright)를 나열한 뒤, 스크립트가 같은 프롬프트를 세 가지 방식으로 실행해 입력 토큰을 출력합니다. 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, 기준치의 네 배가 됐습니다.</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 부분을 서버별로 나누고 세 번의 실행 결과와 함께 그리면 이렇습니다.</p>
<figure class="diagram">
  <div role="img" aria-label="막대그래프 두 개. 위: 같은 프롬프트의 입력 토큰. 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 630" 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">'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 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(공식)</text>
<text class="d-sub" x="2" y="365" font-size="14">도구 46개, 기본 툴셋</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개</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개</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개</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, Opus 5.5, 2026년 11월 19일.</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>세 번의 실행, 그리고 서버별 도구 정의의 무게.</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은 도구 두 개로 할 일을 다 합니다.</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">비용은 &ldquo;돌아오는 결과&quot;로 옮겨 간다
    <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="#%eb%b9%84%ec%9a%a9%ec%9d%80-%eb%8f%8c%ec%95%84%ec%98%a4%eb%8a%94-%ea%b2%b0%ea%b3%bc%eb%a1%9c-%ec%98%ae%ea%b2%a8-%ea%b0%84%eb%8b%a4" aria-label="앵커">#</a>
    </span>
    
</h2>
<p>도구 검색이 켜져 있다면 비용은 결과에서 나옵니다. 같은 걸 두 가지 방법으로 요청해 봤습니다. 공개 저장소 <code>cli/cli</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"><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 브랜치까지 담긴 객체가 통째로 옵니다. 같은 다섯 개인데 <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을 넘으면 경고가 뜹니다. 하지만 상한이 있다고 해서 다이어트가 되는 건 아니죠. 이런 호출을 열 번만 해도 정의에 들었던 비용을 훌쩍 넘습니다.</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="#%ec%8a%a4%ed%82%ac%ec%9d%80-%ec%a0%80%eb%a0%b4%ed%95%9c-%ec%a4%91%ea%b0%84-%ec%a7%80%eb%8c%80" aria-label="앵커">#</a>
    </span>
    
</h2>
<p>제 개인 스킬은 일곱 개입니다. 설명을 다 합쳐도 2,286자로, 중간 크기의 MCP 도구 정의 하나 정도입니다. 본문은 합쳐서 53KB지만, 각각 그 스킬이 쓰일 때만 불러옵니다. 스킬이 어디에 맞는지 보여 주는 예를 두 개 들겠습니다.</p>
<ul>
<li><strong>Tigris 스킬</strong>은 오브젝트 스토리지 CLI의 레퍼런스입니다. 명령어와 규칙이 적혀 있을 뿐 서버는 없습니다. 에이전트는 스킬을 읽고 명령어를 실행합니다.</li>
<li><strong>Jira 스킬</strong>은 Atlassian MCP 서버 위에 얹혀 있습니다. 둘 다 제 컴퓨터에 있습니다. 로그인과 API(도구 약 40개)는 서버가 맡고, 스킬에는 서버가 알 수 없는 것, 즉 어느 사이트의 어느 보드를 쓰는지와 제가 거기서 실제로 하는 몇 가지 작업이 적혀 있습니다.</li>
</ul>
<p>클라우드 서비스라면 이 조합을 권합니다. 로그인은 MCP에, &ldquo;우리 방식&quot;은 스킬에 맡기는 겁니다. Context7도 반대편에서 같은 결론에 이르렀습니다. <a href="https://github.com/upstash/context7"  target="_blank" rel="noreferrer">설정 명령어</a>(<code>npx ctx7 setup</code>)가 MCP를 전혀 쓰지 않는 &ldquo;CLI + Skills&quot;와 MCP 서버 중 하나를 고르게 합니다. 제공하는 쪽이 둘을 같은 곳으로 가는 두 길로 보고 있는 셈이죠.</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="#%ec%96%b8%ec%a0%9c-%eb%ac%b4%ec%97%87%ec%9d%84-%ec%93%b0%eb%82%98" 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>명령어 한 번씩이 아니라 살아 있는 세션이 필요하다</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="#%ec%9d%b4%eb%a0%87%ea%b2%8c-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b8-%ea%b6%8c%ed%95%a9%eb%8b%88%eb%8b%a4" 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 도구가 하나하나 토큰 수와 함께 나오고, 어느 게 지연 로딩인지도 표시됩니다. GitHub 서버 하나가 전체의 거의 절반이라는 것도 이걸로 알게 됐습니다.</p>
<p>그리고 같은 지시를 세션에 두 번째로 붙여 넣고 있다는 걸 깨달았다면, 그건 스킬로 만들 때가 된 겁니다.</p>
<p>자기 환경에서도 확인해 보고 싶은 분을 위해, 영상 속 스크립트를 조금 다듬어 올려 둡니다. <code>claude</code>가 PATH에 있어야 하고, 설정 파일 두 개가 필요합니다. 하나는 자기 서버를 적은 파일, 하나는 <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="#%ec%a7%a7%ea%b2%8c-%ec%a0%95%eb%a6%ac%ed%95%98%eb%a9%b4" aria-label="앵커">#</a>
    </span>
    
</h2>
<p>모델이 이미 아는 CLI는 에이전트에게 줄 수 있는 가장 싼 도구입니다. 불러올 정의가 없고, 결과도 에이전트가 요청한 만큼만 옵니다. MCP 서버는 CLI가 쥘 수 없는 로그인이나 살아 있는 세션을 쥐고 있을 때 제값을 합니다. 도구 검색이 켜져 있다면 몇 개 연결해 둬도 2,500토큰 정도면 됩니다. 꺼져 있다면 네 개만으로 매 요청 40,000토큰 이상이 듭니다. 스킬은 그 사이에 있습니다. 컨텍스트에는 한 문단만 올라가고, 나머지는 필요할 때 불러옵니다. 제 환경에서 가장 잘 돌아가는 구성은 셋 중 둘을 같이 쓰는 방식입니다.</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="#%eb%8d%94-%ec%9d%bd%ec%9d%84%ea%b1%b0%eb%a6%ac" aria-label="앵커">#</a>
    </span>
    
</h2>
<p><strong>이 사이트의 글:</strong></p>
<ul>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/claude-code-settings/" >Claude Code 설정 방법: settings.json과 settings.local.json의 차이</a></li>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/agents-md-vs-claude-md/" >CLAUDE.md란? 작성법과 AGENTS.md와의 차이</a></li>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/2026-10-22-claude-code-day-to-day/" >제가 매일 Claude Code를 쓰는 방식</a>: 스킬, 메모리, 권한 모드에 관해</li>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/2026-10-22-agentic-ai-security/" >에이전틱 AI 보안</a>: 제 에이전트가 무엇에 닿을 수 있고, 누구의 말을 듣는가</li>
<li><a href="https://jared.lynskey.co.nz/ko/posts/2026/playwright-mcp-vs-chrome-devtools-mcp/" >Chrome DevTools MCP 사용법과 설치: Playwright MCP와 비교</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>
