cursor-coordinator-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
cursor-coordinator-mcp
A remote MCP server on one Cloudflare Worker. It lets Claude read your Cursor cloud agents (mainly each Project's coordinator) and send instructions to coordinators, behind OAuth, an allowlist and a daily cap.
Claude --OAuth bearer--> Worker (/mcp, 9 tools) --Bearer user API key--> Cloud Agents API (api.cursor.com/v1)Tools
Tool | What it does | Cursor call |
| Projects with their |
|
| One Project |
|
| Agents in a Project |
|
| An agent's runs, newest first |
|
| Status, result, branches and PR links |
|
| Files an agent produced (list only) |
|
| Listens to the coordinator's stream for up to |
|
| The only write. New run, or |
|
| Audit log of sends and today's count | (KV only) |
All read tools are marked read-only. Every result that carries agent text tells Claude to treat it as data, not instructions.
Related MCP server: cursor-cloud-agent-mcp
Guardrails on send_to_coordinator
Allowlist: only Project ids in
ALLOWED_PROJECT_IDS.*allows every Project your Cursor key can see (the ones you're part of). Empty means sending is off.Daily cap:
DAILY_SEND_CAP(default 20), reset at midnightCAP_TIME_ZONE(default America/Los_Angeles). Only successful sends count.Length cap:
MAX_TEXT_LENGTH(default 4,000 characters).Audit log: every attempt (sent, refused, error) is stored for 90 days with time, Project, coordinator, SHA-256 of the text (not the text), HTTP status and outcome.
No retries: a 5xx or network error is reported with a warning that it may have been delivered (Cursor says a retried steer can deliver twice). A 429 passes
Retry-Afterback.The coordinator is always looked up with
get_project, never assumed to equal the Project id.The tool description tells Claude to send only after you've approved the exact text and target.
Set up and deploy
Prerequisites: Node 20+, the Cloudflare account, and a Cursor user API key (a service-account key gets 403 user_required on Projects). Keys are made on the API keys page of the Cursor (Grok Build) dashboard.
npm ci
npx wrangler login # or export CLOUDFLARE_API_TOKEN=...The Worker needs two KV namespaces. Create them once with npx wrangler kv namespace create <name>:
cursor-coordinator-mcp-oauth→OAUTH_KV(grants, clients, tokens; hashed or encrypted by the library)cursor-coordinator-mcp-state→STATE_KV(daily counter, audit log, failed sign-in counter)
Their ids stay out of the repo: wrangler.jsonc has the placeholders __OAUTH_KV_ID__ and __STATE_KV_ID__, and npm run deploy fills them in from the OAUTH_KV_ID and STATE_KV_ID environment variables. Local wrangler dev uses local storage, so it works with the placeholders.
Set the secrets (each command prompts for the value; nothing goes in the repo):
npx wrangler secret put CURSOR_API_KEY # Cursor user API key
npx wrangler secret put AUTHORIZE_PASSPHRASE # what you type when connecting Claude
npx wrangler secret put ALLOWED_PROJECT_IDS # * for all your Projects, or e.g. bc-xxxx,bc-yyyyDeploy:
OAUTH_KV_ID=<id> STATE_KV_ID=<id> npm run deployWrangler prints the URL, https://cursor-coordinator-mcp.<your-subdomain>.workers.dev. Optionally pin it as the OAuth issuer by adding "PUBLIC_URL": "https://…workers.dev" to vars and deploying again (without it the Worker uses the hostname it was reached on).
Or deploy from GitHub: add repo secrets CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, OAUTH_KV_ID and STATE_KV_ID, then run the Deploy workflow by hand. Worker secrets still come from wrangler secret put.
Connect Claude
In claude.ai, Settings → Connectors → Add custom connector, URL
https://<worker>/mcp. (On an organization account an Owner may have to add it.)Claude opens the Worker's sign-in page. It shows the app name and where access is sent. Enter the passphrase and press Allow.
Smoke test: list Projects, read a coordinator, then send one steer to a throwaway allowlisted Project.
Wrong passphrases are limited to 10 per hour.
Develop and test
cp .dev.vars.example .dev.vars # fill in for wrangler dev
npm run typecheck
npm test # unit tests (fake Cursor API, in-memory KV)
npm run e2e # wrangler dev + fake Cursor API: full OAuth flow (register, passphrase, PKCE token) and real MCP calls
npm run check # typecheck + tests + bundle dry runscripts/wrangler.e2e.jsonc is only for the e2e run. It points the Worker at a local fake API, so it leaves out global_fetch_strictly_public; the real config keeps it.
Configuration
Name | Kind | Default | Notes |
| secret | Cursor user key. Never returned or logged. | |
| secret | Sign-in page passphrase. | |
| secret | empty (no sends) |
|
| var |
| Change here if the API host moves after the rebrand. |
| var |
| |
| var |
| |
| var |
| |
| var | request origin | Optional. |
Design notes
OAuth:
@cloudflare/workers-oauth-provider1.x. The library's README recommends separate authorization and resource Workers, and keepsOAuthProviderfully supported for one Worker that is its own only resource, which is this case. It handles discovery, Dynamic Client Registration, Client ID Metadata Documents, S256 PKCE, form-encoded token requests, refresh tokens and the 401resource_metadatachallenge. We write only/authorize(src/authorize.ts).MCP:
McpServerfrom@modelcontextprotocol/server2.x, served withcreateMcpHandlerfromagents/mcp/server(stateless Streamable HTTP). NoMcpAgent.Counter: KV isn't atomic, so two sends in the same instant could count once. Fine for one user; use a Durable Object before going multi-user.
Stream reads: waiting on the network doesn't count toward the free plan's 10 ms CPU limit; thinking, heartbeat and interaction events are dropped, tool calls are reduced to name and status, and assistant text is clipped at 8,000 characters per event.
API facts checked (Dec 3, 2026)
From the Cloud Agents API endpoints and overview pages (cursor.com docs now redirect to docs.grok.com):
Examples still use
https://api.cursor.com/v1; no host change is documented.Basic (
key:) and Bearer auth behave the same. This server uses Bearer.Artifacts list: 300/min, 6,000/hr, no pagination documented.
Lists end when
nextCursoris absent (notnull).Steer body may hold only
promptanddelivery: "steer"; answers202withdeliverysteered(withrunIdwhen a run took it) orqueued.
Not in v1
Creating, archiving or cancelling agents or Projects; messaging subagents; environments and secrets; downloading artifact contents; usage/cost; multi-user (see the spec's multi-user section before sharing).
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Permission checks, human approval cards, and signed audit trails for AI agent tool calls.
Hand off work between AI agents in any tool. Start Devin or Cursor cloud and share memory.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Run your AI-run company from Claude Code, Codex, Cursor or ChatGPT: inbox, tasks, team, Studio.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude.ai to interact with the Cursor editor to read files, write code, get selections, and more.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to launch and manage Cursor Cloud Agents on GitHub repos, including polling status, sending follow-ups, and reading conversations/PRs.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to delegate tasks to Cursor's headless agent, run adversarial reviews, and verify findings with prosecutor/advocate roles.MIT
- AlicenseBqualityBmaintenanceEnables delegating coding tasks to Cursor Cloud Agents from Claude Code, Codex, or Grok, with scoped repository access, progress monitoring, follow-ups, and result reporting.28MIT