cursor-admin
Model Context Protocol server for Cursor Admin API - instant team analytics power-up for AI assistants
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:
- Create a .env file in the project root and add your Cursor API key:
CURSOR_API_KEY=key_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- 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).
- 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
Pare
Dev tools, optimized for agents. Structured, token-efficient MCP servers for git, test runners, npm, Docker, and more.
mcp-dock
A cross-platform MCP Server manager for Cursor, Claude, Windsurf, Zed & TRAE. Features one-click installation, multi-client sync, and a curated registry of Official & Smithery servers.
shodan
Shodan MCP server for Claude, Cursor & VS Code. 20 tools for passive reconnaissance, CVE/CPE intelligence, DNS analysis, and device search. 4 tools work free without an API key. OSINT and vulnerability research from your IDE.
mermaid-live
MCP server from iishyfishyy/mermaid-live-mcp
attio
Model Context Protocol server for Attio CRM - enables Claude Desktop and Cursor to interact with your Attio workspace
GameMaker
GameMaker MCP server for Cursor - Build GM projects with AI