Interfaces with the GitHub API to retrieve Enterprise and Organization-level data, including seat assignments and integration summaries.
Enables retrieval of daily usage metrics, chat activity, active user counts, and detailed breakdowns by language and editor for GitHub Copilot at the Enterprise, Organization, and Team levels.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@copilot-usage-mcpShow me a summary of GitHub Copilot usage and seat assignments for my organization"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
copilot-usage-mcp
GitHub Copilot の利用状況メトリクスを取得する MCP (Model Context Protocol) サーバーです。
Enterprise、Organization、Team レベルでの Copilot 使用状況データを MCP ツールとして提供します。
提供ツール
ツール名 | 説明 |
| Enterprise 全体の日次 Copilot 利用メトリクス |
| Organization の日次 Copilot 利用メトリクス |
| Team の日次 Copilot 利用メトリクス |
| Organization の Copilot シート割り当て情報 |
| Enterprise / Org / Seats の統合サマリー |
各ツールは、コード補完数・Chat 利用状況・アクティブユーザー数・言語 / エディタ別の内訳などを取得できます。
セットアップ
前提条件
Node.js 18+
GitHub Personal Access Token(Copilot メトリクス API へのアクセス権限が必要)
インストール
npm install
npm run build環境変数
.env ファイルまたは環境変数で以下を設定してください。
変数名 | 必須 | 説明 |
| Yes | GitHub Personal Access Token |
| No | Enterprise slug |
| No | Organization 名 |
| No | キャッシュディレクトリ(デフォルト: |
MCP クライアントへの設定
Claude Desktop の場合、claude_desktop_config.json に以下を追加します。
{
"mcpServers": {
"copilot-usage": {
"command": "node",
"args": ["path/to/copilot-usage-mcp/dist/index.js"],
"env": {
"GITHUB_TOKEN": "ghp_xxxxxxxxxxxx",
"GITHUB_ENTERPRISE": "your-enterprise",
"GITHUB_ORG": "your-org"
}
}
}
}開発
# TypeScript のウォッチモードで開発
npm run dev
# テスト実行
npm test
# テストのウォッチモード
npm run test:watchライセンス
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.