copilot-usage-mcp
Fetches GitHub Copilot premium request usage for the current month, providing a breakdown by model including request count, cost per unit, gross amount, and net amount.
Click on "Deploy 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 my current month's Copilot usage"
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
An MCP server that exposes your GitHub Copilot premium request usage as a tool, broken down by model and cost.
What it does
Provides a single MCP tool — get_usage_current_month — that fetches your Copilot premium request usage from the GitHub API and returns a formatted summary showing requests, cost per unit, gross amount, and net amount per model.
Related MCP server: GitHub Copilot Usage MCP Server
Requirements
Python 3.10+
A GitHub Personal Access Token (PAT) with
manage_billing:copilotscope
Setup
Install dependencies
pip install -r requirements.txtSet environment variables
export GITHUB_PAT=your_github_pat export GITHUB_USERNAME=your_github_usernameRun the server
python server.py
MCP Configuration
To use with Claude Desktop or another MCP client, add this to your MCP config:
{
"mcpServers": {
"copilot-usage-mcp": {
"command": "python",
"args": ["/path/to/copilot-usage-mcp/server.py"],
"env": {
"GITHUB_PAT": "your_github_pat",
"GITHUB_USERNAME": "your_github_username"
}
}
}
}Tool
get_usage_current_month
Fetches the current month's Copilot premium request usage and returns a formatted breakdown by model.
Example output:
Copilot Premium Request Usage for octocat — 3/2026
──────────────────────────────────────────────────
Model : gpt-4o
Requests : 42
Per Unit : $0.04
Gross : $1.68
You Paid : $1.68
──────────────────────────────────────────────────
Total Requests : 42
Total Gross : $1.68
Total You Paid : $1.68License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
OpenAI organization usage and cost reporting through an admin API key connected by the user.
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Agent Cost Allocator MCP — multi-tenant LLM cost attribution for chargeback billing. Companion to
Related MCP Servers
- AlicenseBqualityDmaintenanceIntegrates GitHub Copilot with MCP-compatible tools to provide AI-powered code assistance, including chat, code explanation, and reviews. It leverages existing GitHub CLI authentication to support multiple models like GPT-4o and Claude 3.5 Sonnet.442 npm2MIT
- AlicenseAqualityFmaintenanceAn MCP server that retrieves current GitHub Copilot usage data, including quotas, limits, and usage statistics. It allows AI agents to monitor premium interaction status and detailed account usage via raw or formatted summaries.38 npmMIT
- AlicenseAqualityCmaintenanceAn MCP server that retrieves GitHub Copilot usage metrics and seat assignment data across Enterprise, Organization, and Team levels. It allows users to monitor code completions, chat activity, and active user counts through integrated tools.56 npmMIT
- AlicenseCqualityCmaintenanceConnects MCP-enabled editors to GitHub Copilot CLI for non-interactive code analysis, batch processing, and code review.1013 npm5MIT