Get the FREE Ultimate OpenClaw Setup Guide →

cursor-admin

Model Context Protocol server for Cursor Admin API - instant team analytics power-up for AI assistants

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio h3ro-dev-cursor-admin-mcp npx -y cursor-admin-mcp \
  --env CURSOR_API_KEY="<YOUR_CURSOR_API_KEY>"

How to use

Cursor Admin MCP Server provides a centralized interface for querying and analyzing your team's activity data through natural language prompts in Claude or Cursor. It exposes a set of tools that let you retrieve team composition, usage metrics, and spending data, enabling your AI to answer questions like who wrote the most code this week, what our AI spending looks like, and which models are most relied upon. The server is designed to integrate with Cursor and Claude Desktop/Cursor so you can issue natural language requests and receive structured results without leaving your workflow. The available tools include: get_team_members to list team members and roles; get_daily_usage_data to fetch usage metrics over a date range (up to 90 days); and get_spending_data to summarize spending by member with optional filtering and pagination. These tools return JSON payloads that you can present in dashboards or feed back into conversations for actionable insights.

How to install

Prerequisites:

  • Node.js 16+ installed on your machine
  • A Cursor team admin API key (available from your team settings)

Install from npm:

npm install -g cursor-admin-mcp

Install from source:

git clone https://github.com/h3ro-dev/cursor-admin-mcp.git
cd cursor-admin-mcp
npm install
npm run build

Configuration:

  1. Create a .env file in the project root and add your Cursor API key:
CURSOR_API_KEY=key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  1. For Claude Desktop integration, set up the MCP server in claude_desktop_config.json as shown in the README example (using the provided command and arguments).
  2. For Cursor integration, configure the MCP server in Cursor settings with the appropriate command, arguments, and env var.

Run in development mode (if you’re developing locally):

npm run dev

Additional notes

Tips and notes:

  • Ensure the CURSOR_API_KEY environment variable is set and valid; the server requires authentication to fetch data from Cursor.
  • The get_daily_usage_data tool supports date ranges up to 90 days. Validate dates to avoid errors.
  • When configuring in Claude Desktop, the example uses npx with the package name cursor-admin-mcp; in production, you may pin versions or use npm/yarn flows that fit your environment.
  • If you encounter connectivity or rate-limit issues, check that your API key has the correct permissions and that network access to Cursor’s API is allowed.
  • The npm package name is cursor-admin-mcp; this MCP server is intended to run as a lightweight integration layer for team analytics within AI chat assistants.

Related MCP Servers

Sponsor this space

Reach thousands of developers