Mcp Checkup

io.github.yifanyifan897645由 GitHub 账号 yifanyifan897645 发布v0.1.0更新于 Oct 24, 2026

Analyze your MCP setup: token costs, grades, duplicates, and optimization tips

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

分析你已安装的 MCP 服务器,测算其 token 开销、评定效率等级、查找重复工具并生成优化报告。

可以做什么
它会扫描你的 MCP 配置,测算每个已安装服务器和工具的 token 开销。工具包括:analyze_servers 提供各服务器开销概览,analyze_tools 给出单个服务器的逐工具明细、评级与优化建议,find_duplicates 查找重名工具,count_tokens 统计任意文本的 token 数,generate_report 生成含 A-F 评级的完整 Markdown 健康报告。
适用场景
当 MCP 服务器占用过多上下文窗口、你想知道哪些服务器最耗 token 时使用。它用于在决定精简或优化之前先定位问题。
运行要求
通过 stdio 在本地运行,通常以 npx mcp-checkup 启动,因此需要 Node.js 以及下载该包的网络访问。它会自动检测当前目录的 .mcp.json、Claude Desktop 配置和 .cursor/mcp.json,也可传入自定义配置路径。未声明任何账号、API 密钥或环境变量。
安装前请注意
它会读取本地 MCP 配置文件,这些文件可能包含其他服务器的定义和凭据;在指向这些文件前请先确认其中内容。它只做分析报告,不修改你的配置,因此未描述对配置的写入操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Checkup,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-checkup

[npm version] [npm downloads] [License: MIT]

Your MCP servers are eating your context window. Find out how much.

mcp-checkup is an MCP server that analyzes your MCP setup — measuring the token cost of every installed server and tool, finding duplicates, grading efficiency, and generating optimization reports.

Quick Start

bash
npx mcp-checkup

Then ask your AI assistant:

"Run an MCP health check on my setup""How many tokens are my MCP servers using?""Generate an MCP health report"

Why?

Every MCP tool costs 550–1,400 tokens just for its schema. A server with 50 tools can eat 30,000+ tokens before you type anything. Most developers have no idea how much context window their MCP servers are consuming.

Real examples from the community:

  • Adding GitHub MCP increased one user's token usage from 34K to 80K (source)
  • One developer found 67,000 tokens consumed by just 4 servers before any conversation (source)
  • Context7 (240K weekly downloads) has tool descriptions costing 3x more tokens than necessary (source)

Tools

analyze_servers

Scan your MCP config and measure the token cost of every installed server. Auto-detects config files.

"Which of my MCP servers costs the most tokens?"

analyze_tools

Deep-dive into a specific server — per-tool token costs, grades, bloated descriptions, and optimization suggestions.

"Break down the token cost of my GitHub MCP server"

find_duplicates

Find duplicate tool names across your installed servers. Redundant tools waste context for no benefit.

"Do any of my MCP servers have overlapping tools?"

count_tokens

Count tokens in any text. Useful for estimating context usage.

"How many tokens is this prompt?"

generate_report

Full markdown health report: server grades (A-F), token costs, duplicates, and actionable recommendations.

"Generate a full MCP health report"

Grading System

Per-Tool Grades

GradeTokensMeaning
A≤100Excellent — minimal context cost
B≤300Good — reasonable schema size
C≤600Fair — could be optimized
D≤1000Poor — bloated schema
F>1000Failing — severely impacts context window

Per-Server Grades

GradeTotal TokensMeaning
A≤500Lean and efficient
B≤1500Reasonable
C≤3000Getting heavy
D≤6000Significant context cost
F>6000Major context window drain

Installation

Claude Desktop / Claude Code

json
{  "mcpServers": {    "mcp-checkup": {      "command": "npx",      "args": ["-y", "mcp-checkup"]    }  }}

Cursor

Add to .cursor/mcp.json with the same format.

Auto-Detection

mcp-checkup automatically finds your MCP config in these locations:

  • .mcp.json (current directory)
  • Claude Desktop config (Windows/macOS/Linux)
  • .cursor/mcp.json

Or pass a custom path to any tool.

How It Compares

ToolPurposeApproach
mcp-checkupDiagnose token costsAnalyze & report — see exactly what each tool costs
lean-ctxReduce token usageCompress context at runtime
MCP InspectorDebug MCP serversTest connections and tool calls

Use mcp-checkup first to find the problem, then decide how to fix it.

Part of the MCP Toolkit

View all servers →

License

MIT

来源:README.md,提交 3660945

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分