Monitor team productivity, usage, and spending for AI assistants using the Cursor Admin API.
š® The Team Analytics Power-Up for Your AI Assistant
Brought to you by Utlyze - Zero Latency Operations Through AI Employees
npx -y cursor-admin-mcp
That's it. Your AI assistant just leveled up.
Think of this as equipping your AI with X-ray vision for your development team:
Stop asking your team for status updates. Your AI can now tell you:
You: "Show me team usage for this week"
AI: Here's your team's activity for the last 7 days:
š„ TEAM MEMBERS
1. James Brady (Owner) - james@jamesbrady.org
2. Cody Vincent - vincent.cody298@gmail.com
3. 2 other members
š USAGE STATISTICS
⢠Most Active: Cody Vincent (641 AI requests)
⢠Most Productive: Cody Vincent (29,477 lines added)
⢠Top Models: claude-4-opus, gpt-4, claude-sonnet
⢠Active Days: 2/4 members coding daily
š° SPENDING: $1,957.32 total
⢠James Brady: $1,848.57 (94.4%)
⢠Cody Vincent: $73.76 (3.8%)
⢠Others: $34.99 (1.8%)
npm install -g cursor-admin-mcp
git clone https://github.com/h3ro-dev/cursor-admin-mcp.git
cd cursor-admin-mcp
npm install
npm run build
Create a .env
file in the project root (or set the environment variable):
CURSOR_API_KEY=key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
):
{
"mcpServers": {
"cursor-admin": {
"command": "npx",
"args": ["cursor-admin-mcp"],
"env": {
"CURSOR_API_KEY": "key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Add to your Cursor settings:
{
"mcpServers": {
"cursor-admin": {
"command": "node",
"args": ["/path/to/cursor-admin-mcp/dist/index.js"],
"env": {
"CURSOR_API_KEY": "key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
get_team_members
Get a list of all team members with their information.
Example usage in Claude/Cursor:
"Show me all team members"
"List everyone on the team with their roles"
Returns:
[
{
"name": "John Doe",
"email": "john@example.com",
"role": "admin"
},
{
"name": "Jane Smith",
"email": "jane@example.com",
"role": "member"
}
]
get_daily_usage_data
Retrieve detailed usage metrics for a specified date range (max 90 days).
Parameters:
startDate
: Start date in epoch millisecondsendDate
: End date in epoch millisecondsExample usage in Claude/Cursor:
"Show me usage data for the last 7 days"
"What was our team's AI acceptance rate last month?"
"Which models did we use most this week?"
Returns:
[
{
"date": "2024-01-15",
"linesAdded": 1523,
"linesDeleted": 342,
"acceptanceRate": 0.82,
"requestTypes": {
"completion": 234,
"chat": 56,
"edit": 23
},
"mostUsedModels": ["gpt-4", "claude-3"],
"mostUsedExtensions": ["copilot", "cursor-tab"],
"clientVersion": "0.42.0"
}
]
get_spending_data
Get team spending information with optional filtering and pagination.
Optional Parameters:
searchTerm
: Filter by search termsortBy
: Field to sort bysortDirection
: "asc" or "desc"page
: Page numberpageSize
: Items per pageExample usage in Claude/Cursor:
"Show me team spending"
"Who are the top spenders this month?"
"Search for John's spending data"
Returns:
{
"members": [
{
"email": "john@example.com",
"name": "John Doe",
"spending": 125.50
}
],
"total": 1250.00,
"page": 1,
"pageSize": 10
}
# Clone the repository
git clone https://github.com/h3ro-dev/cursor-admin-mcp.git
cd cursor-admin-mcp
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env and add your CURSOR_API_KEY
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm test -- --coverage
# Run tests in watch mode
npm run test:watch
# Build the project
npm run build
# Run the built version
npm start
cursor-admin-mcp/
āāā src/
ā āāā index.ts # MCP server implementation
ā āāā cursor-client.ts # Cursor API client
āāā tests/
ā āāā cursor-client.test.ts # Test suite
āāā examples/
ā āāā (example scripts)
āāā docs/
ā āāā (additional documentation)
āāā package.json
āāā tsconfig.json
āāā jest.config.js
āāā .env.example
āāā .gitignore
āāā README.md
// The MCP server handles all the communication
// Just use natural language in Claude/Cursor:
"Show me all team members and their roles"
"Get usage data for January 2024"
"What's our team's total spending this month?"
"Show me the AI acceptance rate trend for the last 30 days"
// Complex date ranges
"Compare usage between last week and this week"
// Specific metrics
"Which team members have the highest AI suggestion acceptance rate?"
// Spending analysis
"Show me spending sorted by amount for team members whose name contains 'John'"
The server includes comprehensive error handling:
Contributions are welcome! Please:
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)If you get authentication errors:
key_
If the server won't connect:
If you get date range errors:
MIT License - see LICENSE file for details
Utlyze - Zero Latency Operations Through AI Employees
We're pioneering the future of work by creating AI employees that seamlessly integrate with your existing workflows. The Cursor Admin MCP Server is just one example of how we're making teams more efficient through intelligent automation.
Visit Utlyze.com | Contact Us | LinkedIn
Made with ā¤ļø by the Utlyze team for the Cursor community
Connect with 10,000+ tools across HRIS, ATS, CRM, Accounting, Calendar, Meeting, Ticketing, and more categories.
CalDAV Nectcloud calendar integration. Manage calendars, events, attendees, etc.
Time and timezone conversion capabilities
This server enables LLMs to use calculator for precise numerical calculations.
Connect your AI Agents to 8,000 apps instantly.
An MCP Server Integration with Apple Shortcuts
Shipment tracking api and logistics management capabilities through the TrackMage API
Turn your Make scenarios into callable tools for AI assistants.
AnkiConnect MCP server for interacting with Anki via AnkiConnect.
Generate high-quality text-to-speech and text-to-voice outputs using the DAISYS platform.