mcp-usage
What it does
Find out which MCP servers you actually use: local, read-only audit of Claude Code transcripts.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "usage": { "command": "npx", "args": [ "-y", "@rixtay/mcp-usage", "serve" ] } } }退出 Claude 再重新打开
试一试
用 mcp-usage 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 mcp-usage,或回答中出现 mcp-usage 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 mcp-usage
mcp-usage 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 mcp-usage 的应用
- 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user usage -- npx -y @rixtay/mcp-usage serve在 Claude Code 中输入 /mcp
应能看到 mcp-usage 在列表中并显示已连接
试一试
用 mcp-usage 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 mcp-usage,或回答中出现 mcp-usage 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 mcp-usage 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 mcp-usage,或回答中出现 mcp-usage 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 mcp-usage 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 mcp-usage,或回答中出现 mcp-usage 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user usage -- npx -y @rixtay/mcp-usage serveClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"usage": {
"command": "npx",
"args": [
"-y",
"@rixtay/mcp-usage",
"serve"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"usage": {
"command": "npx",
"args": [
"-y",
"@rixtay/mcp-usage",
"serve"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"usage": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rixtay/mcp-usage",
"serve"
]
}
}
}这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 Rixtayz 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于28天前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5816 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5816 个服务器的 44% 更新
- 基础检查结果等于或优于此分类中其他 5816 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
mcp-usage 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于28天前,最新版本(0.1.1)于42天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
mcp-usage
A small, focused MCP server and CLI that reads your local Claude Code transcripts and tells you, for every MCP server you have connected, whether it is actually used, sits idle in every session, fails to connect, or has been waiting for authorization for weeks — and what to disconnect.
Built for one job: answer *"which of my MCP servers should I keep?"* — locally, read-only, without ever exposing a word of your conversations.
Tools
Four tools, all read-only:
| Tool | What it does |
|---|---|
usage_summary | One row per server: status, tools exposed, sessions, calls, error rate, estimated result tokens, last use |
unused_servers | Servers that were connected but never called, failed to connect, or are waiting for authorization |
server_details | One server in full, with per-tool calls, errors and result size (accepts the id or the label, case-insensitive) |
recommendations | A prioritized action list: disconnect, fix or remove, authorize or remove, investigate errors, heavy results |
Design choices:
- Exact, not guessed. Claude Code already records, in every session, which MCP tools were available and which servers failed or needed auth. "Available but never used" is a set difference over your own logs, not a heuristic.
- Private by construction. No network code at all. The output holds server names, tool names, counts, byte totals and timestamps — never prompts, responses, tool inputs, tool outputs, file paths or error messages. The test fixtures plant
SECRET_*markers everywhere private content lives in a real transcript, and the tests assert none of them reach the library, the CLI or the MCP output. - Fast on big histories. Transcripts are streamed line by line and lines that cannot matter are skipped before
JSON.parse: ~360 MB of history (including a 90 MB session) scans in about 3 seconds. - Hygiene, not billing. Cost analyzers (ccusage, agent-cost-mcp, …) tell you how many tokens and dollars you spent. This tells you which servers earn their place.
- Every tool ships a strict input schema and MCP annotations (
readOnlyHint,idempotentHint) so hosts can auto-approve them.
Requirements
- Node.js 22 or newer.
- Claude Code (CLI, desktop app or IDE extension) with some session history on this machine. Nothing else: no account, no API key, no configuration.
1. Run the report
No install needed, npx fetches the package from npm (@rixtay/mcp-usage, the installed command is mcp-usage):
npx -y @rixtay/mcp-usage
Or from a clone:
git clone https://github.com/Rixtayz/mcp-usage.git
cd mcp-usage npm install && npm run build node dist/bin/cli.js
| Option | Purpose |
|---|---|
--since | Look back this many days (default 30) |
--project | Only scan projects whose path contains this text |
--min-sessions | Sessions before an unused server is flagged (default 5) |
--dir | Claude config directory (default: $CLAUDE_CONFIG_DIR or ~/.claude) |
--json | Print the full report as JSON, including per-tool stats |
Text output truncates long lists; --json always contains everything.
2. Connect to Claude Code
claude mcp add --scope user --transport stdio mcp-usage -- npx -y @rixtay/mcp-usage serve
3. Connect to Claude Desktop / Cowork / any MCP client
mcp-usage is listed in the official MCP Registry as io.github.Rixtayz/mcp-usage, so clients that browse the registry can install it by name. Otherwise, configure it by hand:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (or %APPDATA%\Claude\claude_desktop_config.json on Windows), reachable through Settings → Developer → Edit Config.
{
"mcpServers": { "mcp-usage": { "command": "npx", "args": ["-y", "@rixtay/mcp-usage", "serve"] } } }
If the host cannot find npx (it may not inherit your shell PATH), use absolute paths instead: "command": "/absolute/path/to/node", "args": ["/absolute/path/to/mcp-usage/dist/bin/cli.js", "serve"].
The server reads Claude Code's transcripts wherever it runs, so it only makes sense in local sessions, on the machine where you use Claude Code.
4. Example prompts
- "Which of my MCP servers should I disconnect?"
- "Which servers have been waiting for authorization the longest?"
- "Playwright seems flaky. Which of its tools fail the most?"
- "Did I use anything other than Context7 in the last 7 days?"
Typical flow: recommendations → the assistant proposes a cleanup list, you confirm → server_details on anything surprising → you disconnect the servers yourself. The tools never touch your MCP configuration.
What it reports
Each server gets one status:
| Status | Meaning |
|---|---|
used | Called at least once in the window |
unused | Its tools were available, but nothing ever called them |
failed | Never exposed a tool; Claude Code reported a connection failure |
needs-auth | Never exposed a tool; waiting for authorization |
Recommendations, in priority order:
| Action | Rule |
|---|---|
disconnect | Unused, and available in ≥ 5 sessions (--min-sessions) |
fix-or-remove | Failed to connect in ≥ 3 sessions |
authorize-or-remove | Waiting for authorization in ≥ 3 sessions |
investigate-errors | ≥ 5 calls and ≥ 30 % of them failed |
heavy-results | Results average ≥ 10,000 estimated tokens per call |
Development
npm test # vitest: name parsing, streaming parser, aggregation, rules, CLI, MCP tools over an in-memory transport
npm run typecheck npm run inspect # MCP Inspector against the built server
Layout:
src/bin/cli.ts entry point: `mcp-usage` prints the report, `mcp-usage serve` serves stdio
src/cli.ts argument parsing and output src/server.ts builds the McpServer and registers the four tools src/analyze.ts options → report; the one function both shells call src/parser.ts streaming JSONL reader → typed events src/aggregate.ts events → per-server stats src/recommend.ts stats → prioritized recommendations src/report.ts text table rendering src/scan.ts transcript discovery (--since, --project) src/adapters/claude-code.ts the only client-specific code, behind a small ClientAdapter interface src/names.ts mcp__ __ parsing and server id mangling
Stack: @modelcontextprotocol/sdk v1, zod v4, nothing else at runtime. Design notes: docs/DESIGN.md.
Things worth knowing
- The transcript format is not a public API. It is parsed defensively — every field optional, unknown records ignored, malformed lines counted and skipped — but a future Claude Code release can still break it. Tested against Claude Code 2.1.233 – 2.1.274.
- Token figures are estimates: result bytes ÷ 4, text only. Transcripts record no per-result token count, and image results are not counted.
- Tool names are split on the first `__` after the
mcp__prefix. Server ids can contain underscores, hyphens, dots or be a bare UUID, and tool names can contain__themselves, so a naivesplit("__")miscounts. - The same connector can appear under two names — a readable one in the CLI, a UUID in the desktop app. They are not merged.
- Servers bundled with the Claude desktop app (
ccd_*) are reported but never flagged for disconnection: you cannot remove them. - Claude Code deletes old transcripts, so a long
--sincewindow only sees what is still on disk. - Claude Code only, for now. Adapters for other clients are welcome.
Contributing
Bug reports, fixes and adapters for other MCP clients are welcome: see CONTRIBUTING.md. If Claude Code updates and the report suddenly looks wrong, open a bug with your Claude Code version. Found a way the tool could leak transcript content? Please report it privately, as described in SECURITY.md.
Release history: CHANGELOG.md.
License
MIT