プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Contextbudget

作者:CloudCorpRecordsバージョン 0.1.0i★ –iパソコンで動く
レジストリ名io.github.CloudCorpRecords/contextbudget

インストール

概要

作者による説明(英語の原文)

Token budget auditor for agent context: per-file estimates, top offenders, exclusion advice.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "contextbudget": {
      "command": "npx",
      "args": [
        "-y",
        "@reneturcios/contextbudget",
        "mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add contextbudget -- npx -y @reneturcios/contextbudget mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "contextbudget": {
      "command": "npx",
      "args": [
        "-y",
        "@reneturcios/contextbudget",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "contextbudget": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@reneturcios/contextbudget",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント CloudCorpRecords で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32410件のうち0%よりスターが多い
  • このカテゴリのほかの32410件のうち74%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32410件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Contextbudgetは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.0)がレジストリに届いたのは12 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.js, Dockerも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, debuff

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 211昨日更新
インストール

debuff

作者:debuffjp

Let coding agents play, test and tune your 2D web game: live state, explained errors, replays, fuzz.

パソコンで動く今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

contextbudget

contextbudget estimates the token cost of a directory tree for an agent context window. It walks a tree, estimates the cost of every text file, compares the total against a budget, and reports the largest files and the subtrees that were skipped, so you can decide what to exclude before a tree eats the whole window.

The estimator, honestly

The token numbers in this tool are a heuristic estimate, not a tokenizer count. contextbudget decodes each counted file as UTF-8 text and applies one deterministic rule: tokens = ceil(chars / 4), where chars is the length of the decoded text. Real tokenizers split text differently depending on the model, so a real tokenizer will give a different number for the same file, sometimes higher and sometimes lower. Use these numbers to compare files with each other, to rank the biggest offenders, and to check a tree against a rough budget. Do not use them as an exact prediction of what any specific model will charge or accept.

Install

npx @reneturcios/contextbudget budget [path]

Or install it as a dependency of your own tooling and use the MCP server form below. The package requires Node 20 or newer.

CLI usage

contextbudget budget [path] [--json]

contextbudget mcp contextbudget --version

  • budget [path]: check the tree at path, which defaults to the current directory. Prints a human readable report, or the full JSON report with --json.
  • mcp: run the MCP server over stdio.
  • --version: print the version.

Exit codes:

  • 0: the verdict is WITHIN-BUDGET.
  • 1: any other verdict, currently OVER-BUDGET.
  • 2: usage error, or the target does not exist.
  • 141: the reader closed the output pipe early (the shell visible equivalent of SIGPIPE).
Budget

The default budget is 200000 estimated tokens. Set the environment variable CONTEXTBUDGET_BUDGET to a positive integer to use a different budget:

CONTEXTBUDGET_BUDGET=50000 contextbudget budget ./src

If the variable is unset, unparsable, or not positive, the default of 200000 applies.

Verdict rules

  • The verdict is WITHIN-BUDGET when the total estimated tokens are less than or equal to the budget, and OVER-BUDGET otherwise.
  • The walk skips these directories by default and never descends into them: node_modules, .git, dist, coverage, .next, vendor.
  • Files over 1 MiB (1048576 bytes) are skipped and not counted.
  • Binary files, detected by a NUL byte in the first 4 KiB, are skipped and not counted.
  • Symbolic links are not followed.

Findings:

  • One high finding, rule large-file, for each counted file whose estimated tokens are over 10 percent of the budget.
  • One medium finding, rule skipped-large, for each file skipped for exceeding the 1 MiB limit.
  • One info finding, rule skipped-dir, for each directory skipped by the default skip list.

Ordering is deterministic: files are ranked by estimated tokens descending, then path ascending, and directory entries are visited in sorted name order. Reports carry no timestamps.

Report shape

The JSON report has tool, version, target, verdict, counts, findings, and summary. The headline numbers live in counts:

  • files: files counted.
  • totalTokens: total estimated tokens across counted files.
  • totalChars: total characters across counted files.
  • budgetTokens: the budget in effect.
  • remainingTokens: budget minus total, negative when over budget.
  • skippedDirs, skippedBinary, skippedLarge: skip counts.
  • findings, findingsHigh, findingsMedium, findingsInfo, findingsLow: finding counts.
  • ext: :files and ext: :tokens: per extension totals, for example ext:.ts:tokens.
  • top: : estimated tokens for each of the top 10 largest files.

MCP

The MCP server exposes one tool:

  • budget_path: takes a path string and returns the same JSON report as contextbudget budget --json.

Run it with contextbudget mcp, or through the registry entry in server.json.

Limits

  • Text files only: binary files and files over 1 MiB are skipped, so their real cost is invisible to the report except as skip counts and, for large files, medium findings.
  • The estimator is a heuristic, as described above. It is not a tokenizer and does not know any specific model's vocabulary.
  • The skip list is fixed. There is no flag or config file for custom skips or custom budgets per directory in this version; the only budget control is CONTEXTBUDGET_BUDGET.
  • Counts reflect file contents only. File names, directory names, and any framing an agent harness adds around file contents are not estimated.

Development

npm install

npm run build npm test

PopNxに聞く