---
title: "接工具时 MCP、CLI、Skills 哪个更省 token？"
canonical: "https://new.nat6.net/news/custom-75c38fd7f5974efa/"
date: "2026-11-11"
updated: "2026-11-11"
source: "OpenRouter"
source_url: "https://openrouter.ai/blog/insights/mcp-vs-cli-vs-skills/"
language: "zh"
topics: ["Agent 智能体", "AI 编码", "部署工程", "教程实践"]
license: "https://new.nat6.net/sources/"
attribution: "橙子新闻编辑部（自写稿） / Orange News Editorial (staff-written)"
---

# 接工具时 MCP、CLI、Skills 哪个更省 token？

- 发布日期 / Published: 2026-11-11
- 更新时间 / Updated: 2026-11-11
- 分类 / Category: 教程与技巧
- 来源 / Source: OpenRouter — [原文 / Original](https://openrouter.ai/blog/insights/mcp-vs-cli-vs-skills/)
- 页面 / Page: https://new.nat6.net/news/custom-75c38fd7f5974efa/
- 结构化数据 / JSON: https://new.nat6.net/api/v1/articles/custom-75c38fd7f5974efa.json

- 语言 / Languages: [zh](https://new.nat6.net/news/custom-75c38fd7f5974efa/) · [en](https://new.nat6.net/en/news/custom-75c38fd7f5974efa/) · [de](https://new.nat6.net/de/news/custom-75c38fd7f5974efa/) · [fr](https://new.nat6.net/fr/news/custom-75c38fd7f5974efa/) · [ru](https://new.nat6.net/ru/news/custom-75c38fd7f5974efa/) · [ja](https://new.nat6.net/ja/news/custom-75c38fd7f5974efa/) · [es](https://new.nat6.net/es/news/custom-75c38fd7f5974efa/) · [ko](https://new.nat6.net/ko/news/custom-75c38fd7f5974efa/) · [vi](https://new.nat6.net/vi/news/custom-75c38fd7f5974efa/) · [th](https://new.nat6.net/th/news/custom-75c38fd7f5974efa/) · [id](https://new.nat6.net/id/news/custom-75c38fd7f5974efa/) · [ms](https://new.nat6.net/ms/news/custom-75c38fd7f5974efa/) · [fil](https://new.nat6.net/fil/news/custom-75c38fd7f5974efa/) · [hi](https://new.nat6.net/hi/news/custom-75c38fd7f5974efa/)

## 正文 / Article

给智能体接工具，账单里往往不只是「调用了几次」，还包括每次请求都要重新塞进上下文的工具说明书，以及返回结果里一直留着的大段原文。OpenRouter 在 2026 年 11 月 11 日发表官方实测，用同一个 GitHub 任务比较 CLI、skill 和 MCP：在 Claude Sonnet 5.5 上，三种接法都答对了，输入 token 中位数分别是 1,421、3,315 和 59,417（MCP 默认加载 46 个工具）。数字只属这次官方实测，不是照做就能省同样比例。官方的建议是：有现成、智能体能执行的 CLI 就先用 CLI；没有 shell 或需要服务器侧认证时，用只开放必要工具、并缩小返回的 MCP。

## 三种接法差在哪儿，为什么账单会差这么多？

可以把上下文想成每次重新交给后厨的菜单。三种方式差在：动手前先读到什么，动手后又读到什么。

- MCP：每次请求都带上已加载工具的名称、描述和 JSON schema；行动后看到服务器原样返回的结果。
- CLI：先只给一个 shell 工具，外加一句「已经装好并登录了 gh」；行动后看到命令输出，可用 `--json` 这类参数决定输出长度。
- Skill：先只给每个 skill 一行描述；需要时再读入完整的 SKILL.md，然后再看命令输出。

CLI 依赖模型本来就会用这套命令。Skill 是在教它怎么用：说明书只在需要时加载，但读过就会留在对话里，所以会比裸 CLI 更贵。

## OpenRouter 测的是哪项任务、哪些设置？

官方把同一句话交给每个模型：查询 GitHub 仓库 `cli/cli` 的最新发行版，以及该仓库里最近打开、带 `bug` 标签的三个未关闭 issue。工具是 GitHub MCP 服务器、gh CLI 和一份 gh skill；模型是 Claude Haiku 5.5、Claude Sonnet 5.5、GPT-6 Luna、Gemini 3.8 Flash。跑法是在 OpenRouter 的 Responses API 上做成工具调用循环，把各次请求的 `usage.input_tokens` 加总。CLI 只有一个 `run_shell` 工具，外加一句 “The GitHub CLI gh is installed and authenticated.”；skill 再用一行索引指向一份 1,492 个字符的 gh 用法 SKILL.md；MCP 分别只开放任务需要的 2 个工具、默认 46 个，或全部 91 个。每种组合在 2026 年 10 月 20 日各跑三次，文中展示中位数。

原文说明：Haiku 5.5 对提示词的计数与 Sonnet 5.5 相同，但部分轮次多走了几轮，故主表用 Sonnet 更稳定的数字。主表均答对；答错出现在 Tool Search 中。各接法轮数，原文未给。

## 同一任务下，官方测出的输入 token 是多少？

以下均为 OpenRouter 在上述任务和设置下的官方实测。Claude Sonnet 5.5 上，整项任务的输入 token 中位数和每次任务费用是：

- CLI：1,421 个输入 token，0.0075 美元
- Skill：3,315 个，0.0118 美元
- MCP，只开放 2 个工具：23,228 个，0.0552 美元
- MCP，默认 46 个工具：59,417 个，0.1274 美元
- MCP，全部 91 个工具：101,351 个，0.2113 美元
- MCP，2 个工具且把结果截到 4,000 个字符：5,357 个，0.0191 美元

官方写道：在 Sonnet 5.5 上，默认 MCP 的输入 token 是 CLI 的 42 倍，费用是 17 倍；按 1,000 次任务计，分别约为 127 美元和 7.50 美元。原文还说，这次测试里 Sonnet 5.5 的输出单价是输入的五倍；CLI 跑法的 463 个输出 token，占了 0.0075 美元里的 0.0046 美元。

其他模型的走向一致：GPT-6 Luna 上 CLI 是 627，默认 46 个工具的 MCP 是 116,282；Gemini 3.8 Flash 上分别是 5,292 和 35,409。完整数字见原文。

若只算每次请求都要带上的工具定义，官方是向模型询价：同一请求带工具和不带工具，`usage.prompt_tokens` 的差就是每一轮的定义成本。按文中脚本，GitHub MCP 默认 46 个工具在 Claude Haiku 5.5 上每次请求多 19,436 个 prompt token；同一组工具在 GPT-6 Luna 上是 8,903，Gemini 3.8 Flash 经由 Google Vertex 是 8,525，经由 Google AI Studio 是 13,010。文章提要把 19,436 也写在 Claude Sonnet 5.5 上。计数脚本示例为 GitHub MCP server v2.0.2，任务对照部分未再写版本。

## 为什么 MCP 的返回结果有时比工具定义还贵？

官方举例：`get_latest_release` 返回完整的 GitHub release 对象，共 42,182 个字符，其中约 87% 在描述 22 个下载文件。模型真正需要的只是标签和日期，而这正是 `gh release view` 返回的那点内容。这段对象会留在上下文里并在后续请求中重发；在 Sonnet 5.5 上大约增加 20,400 个 token，比全部 46 个工具定义还多。

只开放 2 个工具，能把第一次请求从 19,487 个 token 降到 1,406，但整项任务仍是 23,228。再把结果截到 4,000 个字符，这条路线降到 5,357，且每次都答对——官方提醒，这是因为标签和日期恰好靠近返回内容开头。`list_issues` 若指定 `fields`，只要编号、标题和创建日期，结果就从 8,336 个字符降到 714。若不加限制，模型会自己决定结果有多大：在加载 46 或 91 个工具的 6 次中，有 4 次 GPT-6 Luna 要了 100 条带全文的 issue，一次拿回 281,963 个字符。

OpenRouter 还测试了仍处 beta 的 Tool Search：工具延后加载，先只发搜索工具。46 个工具全部延后时，搜索发生前的成本在 Claude 模型上是 578 个 token，GPT-6 Luna 是 144，Gemini 3.8 Flash 是 130，即提要所说的「不到 600」。整项任务上，Sonnet 5.5 从 59,417 降到 30,334，大约减半；Haiku 5.5 反而从 99,319 升到 154,623，因为模型多次用错参数并重试。它并不缩小返回结果，官方也记录到失败和正确率下降。

## 读者可以怎么自己做一次对照检查？

你可以用同一项任务分别接三种方式，记录每轮输入 token 和账单，不要把官方倍数抄进预算。

1. 选一件已脱敏、可公开复现的同类任务。不要上传密钥、客户数据或未授权材料；联调用测试密钥并设额度。
2. 固定同一模型、提示词和成功标准，一次只改接工具的方式。
3. 分开跑：只给 shell 并声明 CLI 可用；同样的 shell 外加 skill；再分别试只开放必要 MCP 工具，以及加载默认或全部工具。没有 shell 就只做能接的那些，并在记录里写明。
4. 每种接法重复几次。每一轮记下：轮次、输入 token（若有缓存 token 也记下）、输出 token、本轮费用、是否答对、返回大概多长。模板：日期｜接法｜模型｜轮次｜输入 token｜输出 token｜本轮费用｜是否合格｜备注。
5. 把各轮输入 token 和费用加总，看中位数或平均值；失败和重试计入总账。若走 MCP，可再试缩小工具范围和返回字段，并核对答案是否仍正确。
6. 不能外推成「换一种接法就能省固定比例」。换任务、换模型、换服务商，计数都可能变。

## 这份实测不能直接推出什么？

这是单服务器、单任务、每种组合三次的中位数，不是全行业通则；主表全部答对，也不等于 Tool Search 或截断后全部答对。同一组工具在不同模型、不同服务商上的定义成本不一样。提示词缓存可以降低这些 token 的单价，但不会把它们从上下文里拿走——原文写，截至 2026 年 10 月，在 OpenRouter 上，Claude Haiku 5.5 和 GPT-6 Luna 的缓存输入价是普通输入价的十分之一，但仍占用窗口；是否仍适用，以官方现行价格为准。官方建议：有现成且智能体能执行的 CLI 就用 CLI；自己的或不稳的 CLI 加 skill；没有 CLI 或 shell、需要服务器侧认证和权限时，用限定范围并缩小返回的 MCP；工具库很大时再考虑 Tool Search。

## 原始来源在哪里？

- OpenRouter 博客：[MCP vs CLI vs Skills: What Each Costs in Context](https://openrouter.ai/blog/insights/mcp-vs-cli-vs-skills/)。页面标注 11/11/2026；实测跑于 2026 年 10 月 20 日。

## 推荐理由 / Why it matters

同一个 GitHub 任务下，OpenRouter 官方实测 MCP、CLI、Skills 三种接法的输入 token 与费用，附自己动手对照的步骤。

## 相关主题 / Topics

Agent 智能体 · AI 编码 · 部署工程 · 教程实践

## 来源与版权 / Source & copyright

本文为橙子新闻自写稿；文中引用的第三方资料版权归原作者与媒体所有，本站不镜像全文。

This is a staff-written article by Orange News Editorial; copyright of third-party material cited remains with the original authors and publishers, and this site does not mirror full texts.

## 关于橙子中转站 / About Orange Relay

橙子中转站（pro.nat6.net）是一家优质的 AI API 中转站：价格优惠、质量稳定、模型齐全，支持 Claude、GPT、Gemini 等主流模型，欢迎体验。

[访问橙子中转站](https://pro.nat6.net/?utm_source=orange_news&utm_medium=article_footer&utm_campaign=brand&lang=zh)

## JSON-LD

```json
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://new.nat6.net/news/custom-75c38fd7f5974efa/#article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://new.nat6.net/news/custom-75c38fd7f5974efa/"
  },
  "url": "https://new.nat6.net/news/custom-75c38fd7f5974efa/",
  "headline": "接工具时 MCP、CLI、Skills 哪个更省 token？",
  "description": "给智能体接工具，账单里往往不只是「调用了几次」，还包括每次请求都要重新塞进上下文的工具说明书，以及返回结果里一直留着的大段原文。OpenRouter 在 2026 年 11 月 11 日发表官方实测，用同一个 GitHub 任务比较 CLI、skill 和 MCP：在 Claude Sonnet 5.5 上，三种接法…",
  "articleSection": "教程与技巧",
  "keywords": "AI, Agent 智能体, AI 编码, 部署工程, 教程实践, OpenRouter",
  "datePublished": "2026-11-11T02:24:45Z",
  "dateModified": "2026-11-11T02:24:45Z",
  "inLanguage": "zh-CN",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "橙子新闻编辑部",
    "url": "https://new.nat6.net/about/"
  },
  "publisher": {
    "@type": "NewsMediaOrganization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://new.nat6.net/assets/img/logo-512.png",
      "width": 512,
      "height": 512
    }
  },
  "image": {
    "@type": "ImageObject",
    "url": "https://new.nat6.net/assets/img/og-default.png",
    "width": 1200,
    "height": 630
  },
  "isPartOf": {
    "@id": "https://new.nat6.net/#website"
  },
  "isBasedOn": "https://openrouter.ai/blog/insights/mcp-vs-cli-vs-skills/",
  "citation": [
    "https://openrouter.ai/blog/insights/mcp-vs-cli-vs-skills/"
  ],
  "license": "https://new.nat6.net/sources/",
  "about": [
    {
      "@type": "Thing",
      "name": "Agent 智能体"
    },
    {
      "@type": "Thing",
      "name": "AI 编码"
    },
    {
      "@type": "Thing",
      "name": "部署工程"
    },
    {
      "@type": "Thing",
      "name": "教程实践"
    }
  ],
  "mentions": [
    {
      "@type": "Thing",
      "name": "Agent 智能体"
    },
    {
      "@type": "Thing",
      "name": "AI 编码"
    },
    {
      "@type": "Thing",
      "name": "部署工程"
    },
    {
      "@type": "Thing",
      "name": "教程实践"
    },
    {
      "@type": "Thing",
      "name": "OpenRouter"
    }
  ],
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      ".article-summary"
    ]
  },
  "copyrightHolder": {
    "@type": "Organization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/"
  },
  "creditText": "橙子新闻（自写稿）；参考：OpenRouter",
  "copyrightNotice": "© 2026 橙子新闻。本文为本站自写稿，文中引用的第三方资料版权归原作者与媒体所有；本站不镜像全文。",
  "copyrightYear": 2026,
  "abstract": "同一个 GitHub 任务下，OpenRouter 官方实测 MCP、CLI、Skills 三种接法的输入 token 与费用，附自己动手对照的步骤。",
  "subjectOf": [
    {
      "@type": "DigitalDocument",
      "name": "接工具时 MCP、CLI、Skills 哪个更省 token？ (Markdown)",
      "url": "https://new.nat6.net/news/custom-75c38fd7f5974efa/index.md",
      "encodingFormat": "text/markdown"
    },
    {
      "@type": "DigitalDocument",
      "name": "接工具时 MCP、CLI、Skills 哪个更省 token？ (JSON)",
      "url": "https://new.nat6.net/api/v1/articles/custom-75c38fd7f5974efa.json",
      "encodingFormat": "application/json"
    }
  ]
}
```

## 如何引用 / How to cite

- 引用格式 / Citation format (zh): 橙子新闻.《文章标题》. 发布日期. https://new.nat6.net/news/custom-75c38fd7f5974efa/
- Citation format (en): Orange News. "Article title". Published YYYY-MM-DD. https://new.nat6.net/news/custom-75c38fd7f5974efa/
- 回链要求 / Backlink: 引用请保留「橙子新闻」署名并回链 canonical URL；AI 摘要请注明数据来源 AIHOT；原文版权归原媒体与作者所有。
- Attribution & backlinks: Keep the "Orange News" attribution and link back to the canonical URL; cite AIHOT as the data source for AI summaries; original copyright remains with the original publishers and authors.

### 机器入口 / Machine entry points

- Markdown: https://new.nat6.net/news/custom-75c38fd7f5974efa/index.md
- JSON: https://new.nat6.net/api/v1/articles/custom-75c38fd7f5974efa.json
- API 清单 / API index: https://new.nat6.net/api/v1/site.json
- Markdown 内容协商 / negotiation: 对 https://new.nat6.net/news/custom-75c38fd7f5974efa/ 发送 `Accept: text/markdown`
