npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sharadongithub/mcp-doctor

v0.1.0

Published

See how much context window your Claude Desktop MCP servers eat — like /context, but for the chat app.

Readme

mcp-doctor

/context for Claude Desktop. See exactly how much your MCP servers are eating, before you start a conversation.

Claude Code has /context. Claude Desktop doesn't. If you have more than two or three MCP servers installed, a surprising chunk of your 200k context window is gone before you type anything — and there's no built-in way to find out how much.

This is that way.

$ npx @sharadongithub/mcp-doctor

  MCP context cost  (Claude Desktop, local mode)

  Server                      Tools     Tokens  % of 200k  Status
  ─────────────────────────────────────────────────────────────────
  playwright                     21      13.6k       6.8%  ✓ ok
  github                         26      18.4k       9.2%  ✓ ok
  mcp-omnisearch                 20      14.1k       7.1%  ✓ ok
  notion                         12       8.9k       4.4%  ✓ ok
  filesystem                      4       1.3k       0.6%  ✓ ok
  unused-internal                15      11.2k       5.6%  ⚠ never called
  ─────────────────────────────────────────────────────────────────
  Total                                  67.5k      33.7%

That's a third of your context window, gone, before "hello".

Install

npx @sharadongithub/mcp-doctor          # nothing to install, just runs

Or globally:

npm install -g mcp-doctor
mcp-doctor

How it works

  1. Reads claude_desktop_config.json from the standard location for your OS.
  2. Launches each stdio MCP server the same way Claude Desktop does (same command, args, env).
  3. Performs the MCP initialize + tools/list handshake to fetch each server's tool definitions — the same JSON Claude Desktop receives at startup.
  4. Counts tokens: locally by default (heuristic, ~10–15% margin), or via Anthropic's official count_tokens API with --accurate.
  5. Prints a table.

No telemetry. No config writes. No OAuth. Read-only.

Flags

| Flag | What it does | |---|---| | --accurate | Use Anthropic's count_tokens API. Requires ANTHROPIC_API_KEY. Free, but one HTTP call per server. | | --snapshot | Save current state to ~/.mcp-doctor/ for later comparison with mcp-diff. | | --config <path> | Use a non-standard config file. | | --verbose | Show full error messages for failed servers. |

mcp-diff — what changed since last time

mcp-doctor --snapshot   # Monday
# ...week passes, you add a server, npm bumps another...
mcp-diff                # Friday

  MCP changes since 2026-04-28T09:14:22Z

  + linear      new server, 12 tools, 8,400 tokens
  ~ github      +1,200 tokens, +3 tools
      + create_pull_request_review, list_workflow_runs, get_workflow_run
  - playwright  removed (was 21 tools, 13,647 tokens)

  Total context delta: -3,847 tokens  (was 67,512, now 63,665)

Useful because npx -y servers update silently. A server you installed last month with 12 tools might be shipping 18 today, and nothing tells you.

Limitations

This tool measures local MCP servers only. It reads claude_desktop_config.json — the file you (or an installer) edited by hand. It does not currently see official connectors added through Claude Desktop's UI (Atlassian, Notion, Asana, Gmail, Linear, etc.), because those live at the account level, not in any local file Anthropic exposes.

If you use the official connectors heavily, your real context cost is higher than what this tool reports. The number you see is honest for what it covers, but it is not your total.

Other limitations:

  • Token counts in local mode are heuristic, within ~10–15% of Anthropic's exact figure. Use --accurate if you need precision.
  • Tested on Claude Desktop's standard config schema. Custom forks may not work.
  • npx -y servers that download on first run can exceed the 10-second probe timeout.

Why not just have Claude Desktop add a /context command?

Yeah, they probably should. Until then, here's this.

License

MIT