# CursorAgentsApi import StarterToolInfo from "@/app/_components/starter-tool-info"; import ToolInfo from "@/app/_components/tool-info"; import Badges from "@/app/_components/badges"; import TabbedCodeBlock from "@/app/_components/tabbed-code-block"; import TableOfContents from "@/app/_components/table-of-contents"; import ToolFooter from "@/app/_components/tool-footer"; import { Callout } from "nextra/components"; The CursorAgentsApi MCP Server provides tools for managing and inspecting background agents, authentication info, model recommendations, and linked GitHub repos. These tools let users and LLMs: - List, inspect, and delete background agents. - Retrieve an agent’s current status, results, and full conversation history. - Verify API key / user info used for authentication. - Fetch recommended models for background agents. - List GitHub repositories accessible to the authenticated user. ## Available Tools If you need to perform an action that's not listed here, you can [get in touch with us](mailto:contact@arcade.dev) to request a new tool, or [create your own tools](/guides/create-tools/tool-basics/build-mcp-server). ## CursorAgentsApi.ListBackgroundAgents
List all background agents for the user. **Parameters** - **agent_limit** (`integer`, optional) Number of background agents to return for the request. - **pagination_cursor** (`string`, optional) Pagination cursor from the previous response to navigate pages. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.GetAgentStatus
Retrieve the current status and results of a background agent. **Parameters** - **background_agent_id** (`string`, required) A unique identifier required to retrieve the status and results of the specified background agent. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.DeleteBackgroundAgent
Permanently delete a background agent. **Parameters** - **background_agent_id** (`string`, required) Unique identifier for the background agent to be deleted permanently. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.GetAgentConversationHistory
Retrieve the conversation history of a background agent. **Parameters** - **background_agent_id** (`string`, required) Unique identifier for the background agent to retrieve conversation history. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.RetrieveApiUserInfo
Retrieve information about the API key used for authentication. **Parameters** This tool does not take any parameters. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.ListRecommendedModels
Retrieve recommended models for background agents. **Parameters** This tool does not take any parameters. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets)) ## CursorAgentsApi.ListGithubRepositories
Retrieve accessible GitHub repositories for a user. **Parameters** This tool does not take any parameters. **Secrets** This tool requires the following secrets: `CURSOR_AGENTS_API_KEY` (learn how to [configure secrets](/guides/create-tools/tool-basics/create-tool-secrets))