Cursor Usage
FreeStale (186d)AI coding usage analytics — track spend, model usage, and costs across Cursor and Claude Code sessions.
About
AI coding usage analytics — track spend, model usage, and costs across Cursor and Claude Code sessions.
README
Cursor Usage - Enterprise AI Spend Tracking Plugin
An MCP server plugin that wraps the Cursor Enterprise API. Ask your AI agent about your team's spending, usage, and model adoption. Get answers in seconds, not spreadsheets.

Demo animation created with remotion-readme-kit
What This Does
You manage a Cursor Enterprise team. You want to know who's spending what, which models are being used, and whether you're getting value from AI. Instead of logging into a dashboard, you ask your AI agent:
"How much did my team spend this week?"
"Who's using the most expensive models?"
"Give me a full usage report for the current billing cycle."
This MCP server plugin wraps the full Cursor Enterprise Admin and Analytics APIs, giving your agent the tools and knowledge to answer those questions directly. Works with Cursor, Claude Code, and any MCP-compatible client.
Part of the cursor-usage-tracker ecosystem. This plugin handles quick questions in the IDE. The tracker is the full open-source dashboard with charts, three-layer anomaly detection, Slack/email alerts, and incident lifecycle tracking. Use them together or separately.
What's Included
| Component | What it does |
|---|---|
| MCP Server | 15 tools wrapping the full Cursor Enterprise Admin + Analytics API |
| Skills | Data interpretation guide + cost optimization framework |
| Rules | Always-on cost-awareness guidance for model selection |
| Commands | Quick-access: /usage-report, /spend-check, /model-audit |
| Agent | Specialized usage analyst persona |
Install
Cursor (Marketplace)
/add-plugin cursor-usage
Then set your API key in Cursor settings:
- Open Settings → MCP
- Find
cursor-usageand setCURSOR_API_KEYto your Cursor Enterprise Admin API key
Claude Code
/plugin install cursor-usage
Manual (any MCP-compatible client)
Add to your MCP configuration:
{
"mcpServers": {
"cursor-usage": {
"command": "npx",
"args": ["-y", "cursor-usage-mcp"],
"env": {
"CURSOR_API_KEY": "your-api-key-here"
}
}
}
}
As a Skill Only (no MCP server)
Copy the skills/ directory into your project's .cursor/skills/ or .claude/skills/ folder. The skills work standalone as reference material even without the MCP server.
Getting Your API Key
- Go to your Cursor team settings (Settings → Team → API Keys)
- Generate an Admin API key
- For analytics endpoints, you may also need an Analytics API key
The API key gives read access to your team's usage data. The only write operation is set_spend_limit.
Available Tools
Admin API
| Tool | Description |
|---|---|
get_team_members |
List all team members with roles and status |
get_spending |
Current billing cycle spend per member |
get_daily_usage |
Daily usage data: lines, requests, models, modes |
get_billing_groups |
Billing groups with member lists and spend |
get_usage_events |
Per-request events with model, tokens, and costs |
set_spend_limit |
Set a hard spending limit for a user |
Analytics API
| Tool | Description |
|---|---|
get_dau |
Daily active users (includes CLI, cloud agent, Bugbot) |
get_model_usage |
Model usage breakdown per day |
get_agent_edits |
Agent edit acceptance/rejection rates |
get_tabs |
Tab autocomplete effectiveness |
get_mcp_usage |
MCP tool adoption |
get_file_extensions |
Top file types being edited with AI |
get_client_versions |
Cursor version distribution |
get_commands |
Command usage analytics |
get_plans |
Plan mode adoption |
Composite Tools
| Tool | Description |
|---|---|
get_team_overview |
One-call summary: members, spend, DAU, top models |
get_user_deep_dive |
Deep dive into a specific user's usage patterns |
Example Conversations
Quick spend check:
You: "How much has my team spent this billing cycle?" Agent: calls get_team_overview → "Your team of 47 active members has spent $3,842 this cycle. Top spender is Alice at $412, followed by Bob at $287..."
User investigation:
You: "Why is Bob's spend so high?" Agent: calls get_user_deep_dive → "Bob has made 847 requests this week, 73% using claude-opus-4.5. His daily average is $41 vs the team median of $12. Switching his chat requests to Sonnet would save approximately $180/month..."
Model audit:
You: "/model-audit" Agent: calls get_model_usage + get_spending + get_agent_edits → "62% of your team's messages use Sonnet (good). However, 5 users account for 78% of all Opus usage. Their acceptance rate on Opus is 44% vs 51% on Sonnet, suggesting Opus isn't providing measurably better results for most of their tasks..."
Full Cursor Enterprise Cost Monitoring Dashboard
This plugin answers quick questions in the IDE. For teams that need:
- Historical trends over months (API is limited to 30 days)
- Automated anomaly detection with statistical outlier detection
- Slack/email alerts when spend spikes
- Incident tracking with MTTD/MTTI/MTTR lifecycle
- Web dashboard with charts and visualizations
See cursor-usage-tracker, the open-source Cursor Enterprise dashboard this plugin is part of.
Development
# Install dependencies
npm install
# Run in development
npm run dev
# Build
npm run build
# Type check
npm run typecheck
# Run tests
npm test
# Validate plugin structure
npm run validate
Requirements
- Node.js 20+
- A Cursor Enterprise team with API access
- Admin API key (and optionally Analytics API key)
Author
Ofer Shapira
License
MIT © Ofer Shapira
Install Cursor Usage in Claude Desktop, Claude Code & Cursor
unyly install cursor-usageInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add cursor-usage --env CURSOR_API_KEY="" -- npx -y cursor-usage-mcpStep-by-step: how to install Cursor Usage
FAQ
Is Cursor Usage MCP free?
Yes, Cursor Usage MCP is free — one-click install via Unyly at no cost.
Does Cursor Usage need an API key?
Yes, it requires environment variables: CURSOR_API_KEY. Unyly injects them into the config during install.
Is Cursor Usage hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Cursor Usage in Claude Desktop, Claude Code or Cursor?
Open Cursor Usage on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Changes
Versions and requested access over time.
- New version published
- New version published
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Cursor Usage with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
