cursor-mcp
A FastMCP server for Cursor platform APIs enabling spend guardrails, cloud agent monitoring, and inter-agent inbox messaging.
README
cursor-mcp
FastMCP 3.2 server for Cursor platform APIs — spend guardrails, cloud agent monitoring, and inter-agent inbox.
Complements cursor-app-control (IDE/Glass). Does not replace it.
| Port | Role |
|---|---|
| 11000 | HTTP /mcp (Fritz fleet_bridge) |
| stdio | Cursor mcp.json / Claude Desktop |
MCD: CHANGELOG_DIGEST_JUN_2026.md · CURSOR_MCP_PROPOSAL.md
Quick start
cd D:\Dev\repos\cursor-mcp
Copy-Item .env.example .env
# Edit .env — set CURSOR_API_KEY (and CURSOR_ADMIN_API_KEY for full spend API)
uv sync
.\start.ps1 -Serve
Cursor mcp.json
{
"mcpServers": {
"cursor-mcp": {
"command": "D:\\Dev\\repos\\cursor-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "cursor_mcp", "--stdio"],
"env": {
"CURSOR_API_KEY": "cursor_...",
"CURSOR_ADMIN_API_KEY": "crsr_..."
}
}
}
}
Tools
cursor_usage
| Operation | Purpose |
|---|---|
alert_check |
Main guardrail — hourly spend, on-demand, running cloud agents, cache delta |
summary |
One-shot dashboard replacement |
spend |
Admin API /teams/spend row |
events |
Last N hours usage events (sum chargedCents) |
limits |
Show configured thresholds |
me |
API key identity |
cursor_cloud
| Operation | Purpose |
|---|---|
list |
All cloud agents — spot runaway parallelism |
status |
Single agent |
runs |
Runs for agent |
cancel |
Cancel a run (use sparingly) |
cursor_inbox
Structured message drop for Cursor agents. Any process posts; agent polls at task start.
| Operation | Purpose |
|---|---|
post |
Drop a message (subject, body, priority, tags, optional payload dict) |
list |
Poll unread — call at agent task start |
read |
Full message by id |
ack |
Acknowledge (moves to inbox/acked/) |
ack_all |
Acknowledge all unread |
purge |
Delete acked messages older than N days |
Drop dir: CURSOR_INBOX_DIR env (default ~/.cursor-mcp/inbox/). No daemon, no network — pure JSON files.
Who can write:
- Claude Desktop:
cursor_inbox post(add cursor-mcp to Claude Desktop MCP config) - meta_mcp / any fleet server: direct JSON file drop to
CURSOR_INBOX_DIR - PowerShell / Python scripts: same
- Sandra:
cursor_inbox postfrom any MCP client
Cursor agent convention: add cursor_inbox list to AGENTS.md or Cursor rules so agents check for messages at the start of every session.
cursor_docs
Fleet snippets. Topics: cloud-agents, profiles, mcp-config, spend-guardrails, cursor-mcp, cursor-inbox, sdk-jun-2026, design-mode, auto-review, context-canvas, changelog-jun-2026.
cursor_sdk
Read-only SDK guidance (no agent spawn): capabilities, upgrade_notes, autoreview_template, custom_tools_guide, store_options.
Starter permissions: docs/permissions.fleet.example.json
cursor_help
Tool index and setup. Always current.
Auth notes
| Key | Endpoints |
|---|---|
CURSOR_API_KEY |
/v1/me, /v1/agents/* |
CURSOR_ADMIN_API_KEY |
/teams/spend, /teams/filtered-usage-events |
Individual Pro without Admin API: alert_check still works via cloud agent count + cache; spend/events show partial_errors until you add a team admin key.
Poll at most every 1–2 hours — Admin API aggregates hourly.
Env
| Variable | Default | Purpose |
|---|---|---|
CURSOR_API_KEY |
— | User key, required |
CURSOR_ADMIN_API_KEY |
— | Team admin key, optional |
CURSOR_MCP_HOST |
127.0.0.1 |
HTTP bind |
CURSOR_MCP_PORT |
11000 |
HTTP port |
CURSOR_INBOX_DIR |
~/.cursor-mcp/inbox/ |
Message drop dir |
CURSOR_HOURLY_SPEND_WARN_CENTS |
300 |
~$3/h warn |
CURSOR_ON_DEMAND_WARN_CENTS |
2000 |
~$20 on-demand warn |
CURSOR_RUNNING_AGENTS_WARN |
3 |
Parallel agents warn |
CURSOR_USAGE_EMAIL |
— | Filter spend by email |
Copy .env.example. Never commit real keys.
Fritz task
Scheduled coworker_cursor_spend_watch — every 2 hours, emails on warn or critical.
See docs/FRITZ_INTEGRATION.md.
MCPB (Claude Desktop)
uv sync
just mcpb-pack
# → dist/cursor-mcp-v0.2.0.mcpb — drag into Claude Desktop Extensions
Requires uv on PATH. Set CURSOR_API_KEY / CURSOR_ADMIN_API_KEY in the extension env.
Changelog
See CHANGELOG.md. Current: v0.2.0 (2026-06-07) — cursor_inbox + MCPB packaging.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。