cursor-cloud-mcp
v0.8.0MCP server for Cursor Cloud Agents (background agents): launch, follow up, supervise and cost Cursor agents from Claude Code, Codex CLI or OpenCode
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cursor_get_account
Checks the Cursor key (GET /v1/me) and reports the account, plus server: what this server allows (writes_enabled, delete_enabled, fixture), its CURSOR_MCP_DEFAULT_MODEL, its model journal and the forward_env names. Start here: these settings change only with the server's environment and a restart. server.version is the running code's version; editable_install true (with source) means the server runs from a development checkout, whose uncommitted changes run too: a client meant for real work should launch a published, pinned version instead. Read-only. The API exposes no quota, remaining budget…
cursor_list_models
Compact model catalog: params (possible values), defaults, reasoning_param (reasoning parameter). Read-only, cached for ten minutes. defaults is what a parameter left out of model_params becomes: it can turn on costly options (fast=true on several models). default_max_mode true: the catalog flags that default variant Max Mode (often the largest context window). brief=true keeps id, aliases, defaults and default_max_mode only; query filters by case-insensitive substring of id, name or alias. model_id (id or unambiguous alias) returns only that model, with its valid variants (useful when restric…
| Parameter | Type | Description |
|---|---|---|
brief | boolean | |
model_id | ||
query |
cursor_list_repositories
GitHub repositories visible to Cursor. Read-only. query filters the URLs (case-insensitive substring). The API rate-limits this call (about 1 per minute): cached for five minutes in this process.
| Parameter | Type | Description |
|---|---|---|
query |
cursor_list_environments
Where an agent can run. Read-only. Saved environments (personal or team, most recently updated first; their name is the env_name of env_type cloud), one page at a time with next_cursor, and on the first page the self-hosted pools (connected and in-use workers, stale; their name is the env_name of env_type pool). pools_error means the pools could not be read with this key (the documentation reserves them to service-account keys). environment_id returns that environment alone, with active_build: what an agent started on it boots from (one of its builds, with status SUCCEEDED, FAILED, IN_PROGRESS…
| Parameter | Type | Description |
|---|---|---|
cursor | ||
environment_id | ||
limit | ||
named | ||
owner | ||
query | ||
repositories |
cursor_list_projects
Cursor Projects you own or joined, newest first, one page at a time with next_cursor (a page can be empty and still have has_more). Read-only. A Project is a coordinator agent that starts and follows other agents. coordinator_agent_id is YOUR coordinator in it, an ordinary agent: cursor_get_agent and cursor_get_run read it, and cursor_create_run would message it (a paid run, like any other). For a Project you own, project_id and coordinator_agent_id are the same id; for one you joined, project_id is the owner's coordinator (not yours, do not use it as an agent_id) and coordinator_agent_id may…
| Parameter | Type | Description |
|---|---|---|
cursor | ||
include_archived | ||
limit | ||
project_id |
cursor_list_agents
Account agents, one page at a time, in API order (not by date). Read-only. name filters by case-insensitive substring, scanning up to five pages of 100 (scanned); continue with next_cursor. A scan that ends before the list does says why in scan_stopped (max_pages, budget, or read_error with scan_error when a page failed after others were read): the rows found so far are returned, and next_cursor resumes on the first unread agent. pr_url returns only the agent linked to that PR. Archived agents are listed unless include_archived=false (the API default is true). coordinator_of_project on a row m…
| Parameter | Type | Description |
|---|---|---|
cursor | ||
include_archived | ||
limit | ||
name | ||
pr_url |
cursor_supervise
Overview of a fleet of runners in one call: each agent with its latest run's status, read in parallel. Read-only. Which agents: agent_ids (up to 100 bc-<uuid> ids, the fastest: no scan of the account, one agent read each, whatever their status; not combinable with status, name, pr_url, cursor, limit or include_archived), or else a scan of the account's agents (the API filters by neither name nor run status: pages of 100 are read and filtered here). status=active (the default) keeps agents with a run in progress; all keeps every agent. Archived agents are left out of the scan unless include_arc…
| Parameter | Type | Description |
|---|---|---|
activity | boolean | |
agent_ids | ||
concurrency | integer | |
cursor | ||
include_archived | ||
limit | ||
name | ||
pr_url | ||
stale_after_minutes | integer | |
status | ||
usage | boolean |
cursor_get_agent
Agent metadata: status, repositories, environment, latest_run_id, url. Read-only. Execution state is on the run (cursor_get_run). model is the last model this MCP sent to the agent, from its local journal (source local_journal): the API cannot re-read it, so it is absent when not sent from here, and a change made elsewhere is not seen. unconfirmed true: that send ended in MUTATION_OUTCOME_UNKNOWN. coordinator_of_project is the Project's id when this agent is your coordinator in a Project: archiving or deleting it archives the Project.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string |
cursor_create_agent
Creates an agent and starts its first run. PAID. Returns agent_id, run_id and url without waiting for the run to finish. name: the agent's display name, settable only here: the API has no rename (no PATCH on agents), so an agent created in the Cursor interface keeps the name given there; without name, Cursor derives one from the prompt. Give each fleet a tag unique on the account (cursor_supervise and cursor_list_agents filter on it). Repository: repository + starting_ref (branch name or full commit SHA), or repositories (up to 500; on self-hosted workers only a named any-repo pool takes more…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
agent_id | ||
auto_create_pr | boolean | |
env_name | ||
env_type | ||
env_vars | ||
forward_env | ||
images | ||
mode | ||
model_id | ||
model_params | ||
name | ||
on_conflict | string | |
reasoning_level | ||
repositories | ||
repository | ||
skip_reviewer_request | boolean | |
starting_ref |
cursor_create_run
Sends a follow-up run to the same agent (new run). PAID. The agent keeps its conversation: a follow-up needs no full resume prompt. Without model_id, the agent keeps its current model (CURSOR_MCP_DEFAULT_MODEL does not apply here); model then shows the last one this MCP recorded for it, if any. With model_id (and model_params, reasoning_level, checked against the catalog), the model changes for this run and the following ones, and model echoes the effective selection (defaulted, unset, warnings as in cursor_create_agent); the API does not allow re-reading the active model. Refused if the agent…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
prompt * | string | |
delivery | ||
env_vars | ||
forward_env | ||
images | ||
mode | ||
model_id | ||
model_params | ||
reasoning_level | ||
replace_active | boolean |
cursor_create_runs
Sends the same follow-up to several agents in one call (up to 50), each as cursor_create_run would. PAID: one run per agent. {worker} in the prompt is replaced by each target's worker value (every target then needs one; worker values without {worker} are refused), so one template serves a whole fleet without editing each prompt by hand. Refused as a whole, before anything is sent: an agent listed twice, a missing worker value, a prompt over the limit once filled in, a model rejected by the catalog, a steer with other fields. mode, model_id, model_params, reasoning_level, replace_active and del…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
targets * | array | |
delivery | ||
mode | ||
model_id | ||
model_params | ||
reasoning_level | ||
replace_active | boolean |
cursor_list_runs
Runs of an agent, most recent first. Read-only. Continue with next_cursor.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
cursor | ||
limit |
cursor_get_run
State, final result and branches of a run. Read-only. wait_seconds (up to 60) re-reads every five seconds until a terminal state; timed_out true means the run is still going: call again. If a re-read fails after a first read, the previous observation is returned with reread_error: it is no guarantee about the current state. A long result is read in windows with result_offset = next_result_offset. git describes the agent's current state as Cursor reports it: the repository, plus a branch and PR URL only for what Cursor tracked (a branch pushed by a plain git push from a job may not appear), nev…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
run_id * | string | |
activity | ||
result_limit | integer | |
result_offset | integer | |
wait_seconds | integer |
cursor_read_run_events
Excerpt of the stream of a run (messages, tool calls, status), to follow its progress. Read-only. Resume with after_event_id = last_event_id. finished: the run has returned its result; stream_error: stream error, not the end of the run; interrupted: cut off, partial events returned. Texts are bounded (clipped): the full result is in cursor_get_run. STREAM_EXPIRED: use cursor_get_run. max_wait_seconds defaults to 20. tool_output_limit (default 500, max 4000) widens the tool args/result text of the returned events: clipped head + tail with an explicit marker, the total staying within the limit.…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
run_id * | string | |
after_event_id | ||
compact | boolean | |
include_shell_output | boolean | |
include_thinking | boolean | |
max_events | integer | |
max_wait_seconds | ||
tail | ||
tool_output_limit | integer |
cursor_read_conversation
The agent's whole conversation, every run included: user prompts and assistant replies, as text. Read-only. Without offset, the last limit messages; continue forward with next_offset, or go back with a smaller offset. A text longer than text_limit keeps its start and end (clipped); truncated means the window stopped early because its texts reached the per-call total (resume at next_offset). The API sends the whole conversation each time: offset and limit only choose what is returned. injected marks a user turn opening with <system_notification>, which Cursor added (a background task or subagen…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
limit | integer | |
offset | ||
text_limit | integer |
cursor_cancel_run
Cancels a run. Does not delete commits or PRs already pushed. outcome: cancelled (CANCELLED re-read, the only case where outcome_confirmed is true), ended_without_cancel (ended otherwise during the race), still_running, or unknown (re-read impossible).
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
run_id * | string |
cursor_get_usage
Tokens and cost (US cents, as the API returns them) of an agent, or of a single run with run_id. Read-only. Nothing is estimated: a cost missing from the API stays missing. A run whose token counts are all zero carries no_usage_recorded true (runs_without_usage counts them, warnings says so): the API returns zeros when it recorded nothing, which is not a cost of zero, so that row has no usage field and no cost unless something was charged; total_usage and total_cost are absent likewise when nothing at all was recorded, and otherwise cover the recorded runs only. charged_cents_per_million_token…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
run_id |
cursor_list_artifacts
Files published under artifacts/. Read-only. The list can stay empty even if the agent wrote a file (API limitation).
| Parameter | Type | Description |
|---|---|---|
agent_id * | string |
cursor_read_artifact
Reads a UTF-8 text artifact (5 MB at most), in windows with offset = next_offset. Read-only. For a binary or a file that is too large, returns url (presigned, about 15 minutes) and text_unavailable; url_only=true returns the URL without downloading. The Cursor key is never sent to storage.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
path * | string | |
limit | integer | |
offset | integer | |
url_only | boolean |
cursor_archive_agent
Archives an agent (reversible), or unarchives it with unarchive=true. An archived agent stays readable, is hidden from the default list and does not accept follow-up runs. Not for an agent whose row has coordinator_of_project: it is your coordinator in a Project, and per the spec a Project is ARCHIVED once its owner's coordinator is stopped. The server only marks such rows; it does not refuse.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
unarchive | boolean |
cursor_delete_agent
Permanently deletes an agent. Irreversible: only on explicit request. Requires CURSOR_MCP_ALLOW_DELETE=1 and confirm_agent_id equal to agent_id. Never on an agent whose row has coordinator_of_project (your coordinator in a Project): that archives the Project per the spec. The server only marks such rows; it does not refuse.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
confirm_agent_id * | string |