cursor-usage

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.
Related MCP server: Token Analyzer MCP
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: |
Agent | Specialized usage analyst persona |
Install
Cursor (Marketplace)
/add-plugin cursor-usageThen 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-usageManual (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 |
| List all team members with roles and status |
| Current billing cycle spend per member |
| Daily usage data: lines, requests, models, modes |
| Billing groups with member lists and spend |
| Per-request events with model, tokens, and costs |
| Set a hard spending limit for a user |
Analytics API
Tool | Description |
| Daily active users (includes CLI, cloud agent, Bugbot) |
| Model usage breakdown per day |
| Agent edit acceptance/rejection rates |
| Tab autocomplete effectiveness |
| MCP tool adoption |
| Top file types being edited with AI |
| Cursor version distribution |
| Command usage analytics |
| Plan mode adoption |
Composite Tools
Tool | Description |
| One-call summary: members, spend, DAU, top models |
| 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 validateRequirements
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBquality-maintenanceProvides comprehensive telemetry and usage analytics for Claude Code sessions, including token usage tracking, cost monitoring, and tool usage patterns. Enables users to monitor their Claude usage with detailed metrics, warnings, and trend analysis.Last updated12
- Flicense-quality-maintenanceProvides intelligent analysis of token usage patterns and optimization recommendations to improve efficiency and reduce costs in Claude Code sessions. Offers real-time analysis, cost metrics, and actionable insights for better context window and tool usage optimization.Last updated3
- AlicenseBqualityDmaintenanceEnables real-time monitoring of Cursor Pro usage limits and API quotas across different AI services. Tracks Sonnet 4.5, Gemini, and GPT-5 request usage with alerts when approaching subscription limits.Last updated62MIT
- Alicense-qualityBmaintenanceTracks token usage and records coding sessions for Claude Desktop users, supporting both local SQLite and cloud Cloudflare D1 databases.Last updated305MIT
Related MCP Connectors
Track, analyze, and act on your streaming and SaaS subscriptions from any AI agent.
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Live status, API pricing and rate limits for ChatGPT, Claude, Gemini, Cursor and 42+ AI tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofershap/cursor-usage'
If you have feedback or need assistance with the MCP directory API, please join our Discord server