# Anchor Browser — how to use (mcp.ai)

Connect your Anchor Browser account and use 64 tools for AI agents straight from your AI agent. Connect with your own API key. Anchor Browser is a developer platform that enables AI agents to interact with the web through browser automation, transforming complex web interactions into simple API endpoints.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_anchor_browser?ms=1787295960000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `anchor_browser_click_mouse`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/anchor_browser`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/anchor_browser/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/anchor_browser/click/mouse` — Tool to perform a mouse click at specified coordinates within a browser session. Use when you need to interact with page elements by clicking at specific x/y positions. The click is executed in the co
  - body: { x: integer, y: integer, button?: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/copy/selected/text` — Tool to copy currently selected text in a browser session to the clipboard. Use when you need to extract text that the user or automation has selected in the browser.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/create/integration` — Tool to create a new integration with a third-party service like 1Password. Use when you need to set up an integration for managing credentials or accessing external services. The integration will be 
  - body: { name: string, type: string, credentials: object }
- `POST https://api.mcp.ai/api/anchor_browser/create/or/update/task/draft` — Tool to create or update the draft version of a task. Draft versions are used for development and testing before publishing. Use when you need to save task code changes without creating a published ve
  - body: { code: string, task_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/create/profile` — Creates a new browser profile from an active session. A profile stores cookies, local storage, and cache data. The session must be running when this is called; profile data is persisted once the sessi
  - body: { name: string, source?: string, session_id: string, description?: string, dedicated_sticky_ip?: boolean }
- `POST https://api.mcp.ai/api/anchor_browser/create/task` — Tool to create a new task or update an existing task with the same name. Tasks are reusable TypeScript code snippets that execute in browser sessions. Use when you need to define repeatable automation
  - body: { code?: string, name: string, language: string, description?: string, browserConfiguration?: object }
- `POST https://api.mcp.ai/api/anchor_browser/delete/extension` — Tool to delete a browser extension and remove it from storage. Use after confirming the extension exists.
  - body: { id: string }
- `POST https://api.mcp.ai/api/anchor_browser/delete/integration` — Tool to delete an existing integration and remove its stored credentials. Use after confirming the integration ID exists.
  - body: { integration_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/delete/profile` — Tool to delete a browser profile by ID. Use after confirming the profile exists.
  - body: { name: string }
- `POST https://api.mcp.ai/api/anchor_browser/delete/task` — Tool to soft delete a task and all its versions. Use after confirming the task exists.
  - body: { task_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/delete/task/version` — Tool to soft delete a specific version of a task. The version will no longer be accessible but data is preserved for recovery. Use when you need to remove a specific task version.
  - body: { task_id: string, version: string }
- `POST https://api.mcp.ai/api/anchor_browser/deploy/task` — Tool to deploy a task by creating a new version with auto-incremented version number. Use when you need to publish task changes and make them available for execution.
  - body: { code: string, taskId: string, language?: string, description?: string, browserConfiguration?: object }
- `POST https://api.mcp.ai/api/anchor_browser/double/click/mouse` — Tool to perform a double click at specified coordinates in a browser session. Use when you need to trigger double-click events on UI elements or specific page locations.
  - body: { x?: integer, y?: integer, sessionId: string }
- `POST https://api.mcp.ai/api/anchor_browser/drag/and/drop` — Tool to perform a drag and drop operation from start coordinates to end coordinates within a browser session. Use when you need to simulate dragging UI elements or files in automated workflows.
  - body: { endX: number, endY: number, startX: number, startY: number, sessionId: string }
- `POST https://api.mcp.ai/api/anchor_browser/end/all/sessions` — Tool to terminate all active browser sessions at once. Use when you need to immediately close every browser session for the authenticated user, such as during cleanup operations or security concerns.
- `POST https://api.mcp.ai/api/anchor_browser/end/browser/session` — Tool to end a specific browser session by ID. Use after confirming the session ID you want to terminate.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/batch/session/status` — Tool to retrieve detailed status information for a specific batch including progress and errors. Use when you need to check the status of a batch session creation request.
  - body: { batch_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/browser/session` — Tool to retrieve detailed information about a specific browser session. Use when you need to check the status, configuration, or execution details of a browser session.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/clipboard/content` — Tool to retrieve the current content of the clipboard from a browser session. Use when you need to read clipboard data from an active session.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/latest/task/version` — Tool to retrieve the latest version of a task including the full base64 encoded code content. Use when you need to access the most recent task implementation.
  - body: { taskId: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/profile2` — Tool to retrieve details of a specific profile by its name. Use when you need to fetch information about a particular browser profile.
  - body: { name: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/session/pages` — Tool to retrieve all pages associated with a specific browser session. Use when you need to list all open tabs or pages in an active or completed session.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/task/draft` — Tool to retrieve the draft version of a task, including the full Base64 encoded code content. Use when you need to access the current draft of a task that hasn't been published yet.
  - body: { task_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/task/execution/result` — Tool to retrieve a single task execution result by its ID. Use when you need to check the status, output, or error details of a specific task execution.
  - body: { task_id: string, execution_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/task/metadata` — Tool to retrieve task metadata without downloading the full task code. Use when you need task information such as status, creation time, or language without the code content.
  - body: { task_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/task/version` — Tool to retrieve a specific version of a task, including the full code content. Use when you need to access the complete task code for a particular version (draft, latest, or specific version number).
  - body: { task_id: string, version: string }
- `POST https://api.mcp.ai/api/anchor_browser/get/webpage/content` — Tool to retrieve rendered content of a webpage in HTML or Markdown format. Use when you need to fetch a page’s full content, optionally within an existing browser session.
  - body: { url?: string, wait?: integer, format?: string, new_page?: boolean, sessionId?: string, page_index?: integer, return_partial_on_timeout?: boolean }
- `POST https://api.mcp.ai/api/anchor_browser/list/agent/resources` — List all agent resources (files) uploaded to a browser session. Returns metadata for each file including name, size, file type, and last modified timestamp. Requires an active running session - use ST
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/list/extensions` — Retrieves all browser extensions uploaded by the authenticated user. Use this to view available extensions that can be attached to browser sessions for automation tasks.
- `POST https://api.mcp.ai/api/anchor_browser/list/integrations` — Tool to retrieve all integrations for the authenticated team. Use when you need to view available integrations that can be used with browser sessions.
- `POST https://api.mcp.ai/api/anchor_browser/list/profiles` — Tool to fetch all stored browser profiles. Use when you need an overview of all profiles available to the authenticated user (e.g., after creating or deleting profiles).
- `POST https://api.mcp.ai/api/anchor_browser/list/session/downloads` — Tool to retrieve metadata of files downloaded during a browser session. Use after confirming the session ID.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/list/session/recordings` — Tool to list all recordings for a specific browser session. Use after confirming the session ID.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/list/sessions` — Tool to list all browser sessions. Use when you need to retrieve both active and inactive sessions.
- `POST https://api.mcp.ai/api/anchor_browser/list/task/executions` — Tool to retrieve execution history for a specific task with filtering and pagination support. Use when you need to view past execution results, monitor task success rates, or debug failed executions.
  - body: { page?: string, limit?: string, status?: string, taskId: string, version?: string }
- `POST https://api.mcp.ai/api/anchor_browser/list/task/versions` — Tool to retrieve all versions of a specific task, including draft and published versions. Use when you need to view the version history of a task or select a specific version for deployment or executi
  - body: { task_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/list/tasks` — Tool to retrieve a paginated list of all tasks for the authenticated team. Use when you need to view available tasks with their latest version information and metadata.
  - body: { page?: string, limit?: string }
- `POST https://api.mcp.ai/api/anchor_browser/move/mouse` — Tool to move the mouse cursor to specified coordinates within a browser session. Use when you need to simulate mouse movement at the OS level.
  - body: { x: integer, y: integer, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/navigate/to/url` — Tool to navigate a browser session to a specified URL. Use when you need to direct an existing session to a new webpage.
  - body: { url: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/paste/text` — Tool to paste text at the current cursor position in a browser session. Use when you need to insert text into an active form field or text area.
  - body: { text: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/pause/agent` — Tool to pause the AI agent for a specific browser session. Use when you need to temporarily halt autonomous agent execution while keeping the session active.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/pause/session/recording` — Tool to pause the video recording for a specific browser session. Use when you need to temporarily stop recording without ending the session.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/perform/keyboard/shortcut` — Tool to perform a keyboard shortcut using specified keys in a browser session. Use when you need to simulate keyboard input like copy (Control+C), paste (Control+V), or any other key combination.
  - body: { keys: string[], hold_time?: integer, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/perform/web/task` — Tool to perform autonomous web tasks using AI agents. Use when you need to automate complex browser interactions like form filling, data extraction, or multi-step workflows.
  - body: { url?: string, agent?: string, async?: boolean, model?: string, prompt: string, provider?: string, max_steps?: integer, sessionId?: string, output_schema?: object, secret_values?: object, detect_elements?: boolean, highlight_elements?: boolean, human_intervention?: boolean }
- `POST https://api.mcp.ai/api/anchor_browser/press/mouse/button` — Tool to perform a mouse button down action at specified coordinates within a browser session. Use when you need to simulate pressing and holding a mouse button at a specific screen position.
  - body: { x: integer, y: integer, button?: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/publish/task/version` — Tool to publish a specific version of a task. Creates a new version if it doesn't exist, or updates an existing version's metadata. Use when you need to make a specific task version available for exec
  - body: { code: string, taskId: string, language: string, description?: string, taskVersion: string, browserConfiguration?: object }
- `POST https://api.mcp.ai/api/anchor_browser/release/mouse/button` — Tool to release a mouse button at specified coordinates within a browser session. Use when automating mouse interactions that require button release events, such as completing drag operations or simul
  - body: { x: integer, y: integer, button?: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/resume/agent` — Tool to resume the AI agent for a specific browser session. Use when you need to restart agent execution after it has been paused or stopped.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/resume/session/recording` — Tool to resume video recording for a specific browser session. Use when recording was previously paused and needs to be restarted.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/run/task` — Tool to execute a task in a browser session with a specific or latest version. Use when you need to run an existing task with optional session reuse and configuration overrides.
  - body: { async?: boolean, inputs?: object, taskId: string, version?: string, sessionId?: string, cleanupSessions?: boolean, overrideBrowserConfiguration?: object }
- `POST https://api.mcp.ai/api/anchor_browser/run/task/by/name` — Tool to execute a task by its name, always using the latest version. Use when you need to run a predefined browser automation task by referencing its name.
  - body: { inputs?: object, taskName: string, sessionId?: string, taskSessionId?: string, overrideBrowserConfiguration?: object }
- `POST https://api.mcp.ai/api/anchor_browser/screenshot/webpage` — Tool to take a screenshot of a specified webpage within a session. Use when you need a visual PNG snapshot of a live page. Example: "Capture a 1280×720 screenshot of https://example.com".
  - body: { url: string, wait?: integer, width?: integer, height?: integer, sessionId?: string, image_quality?: integer, s3_target_address?: string, scroll_all_content?: boolean, capture_full_height?: boolean }
- `POST https://api.mcp.ai/api/anchor_browser/scroll/session` — Tool to perform a scroll action at specified coordinates within a browser session. Use when you need to scroll to specific positions or simulate user scrolling behavior. Example: "Scroll down 100 pixe
  - body: { x: integer, y: integer, steps?: integer, useOs?: boolean, deltaX?: integer, deltaY: integer, sessionId: string }
- `POST https://api.mcp.ai/api/anchor_browser/set/clipboard/content` — Tool to set the content of the clipboard in a browser session. Use when you need to programmatically copy text to the clipboard for automated workflows.
  - body: { text: string, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/signal/event` — Tool to signal a specific event to be received by other processes or sessions. Use when you need real-time coordination across browser sessions after verifying session is active.
  - body: { data: object, event_name: string }
- `POST https://api.mcp.ai/api/anchor_browser/start/browser/session` — Tool to start a new browser session with optional customizations. Use when you need to programmatically allocate an isolated browser instance with recording, proxy, live view, and feature toggles.
  - body: { browser?: object, session?: object, identities?: object[], integrations?: object[] }
- `POST https://api.mcp.ai/api/anchor_browser/take/screenshot` — Tool to take a screenshot of the current browser session and return it as an image. Use when you need a visual snapshot of an active browser session.
  - body: { session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/type/text` — Tool to type specified text with optional delay between keystrokes. Use when you need to input text into a browser session, such as filling forms or entering search queries.
  - body: { text: string, delay?: integer, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/update/profile` — Updates an existing browser profile with data from an active session. The profile stores cookies, local storage, and cache from the session. Requires an active (running) browser session - the session_
  - body: { name: string, source?: string, session_id: string, description?: string }
- `POST https://api.mcp.ai/api/anchor_browser/update/task/metadata` — Updates task metadata (name and description). This does not affect the task code or versions. Use when you need to update task information without modifying the implementation.
  - body: { name?: string, task_id: string, description?: string }
- `POST https://api.mcp.ai/api/anchor_browser/upload/extension` — Tool to upload a new browser extension as a ZIP file for use in browser sessions. Use when you need to add custom extensions that can be attached to automation sessions. The ZIP file must contain a va
  - body: { file?: object, name: string, file_name?: string, file_content_base64?: string }
- `POST https://api.mcp.ai/api/anchor_browser/upload/file` — Tool to upload a file to a browser session as an agent resource. Use after starting or referencing a session when you need to provide file inputs (single files or ZIP archives) for web forms or AI-dri
  - body: { file: object, session_id: string, file_content_base64?: string }
- `POST https://api.mcp.ai/api/anchor_browser/upload/files/to/session` — Tool to upload files directly to a browser session for use with web forms and file inputs. Use when you need to provide file inputs to web forms during automated browser sessions.
  - body: { file: object, session_id: string }
- `POST https://api.mcp.ai/api/anchor_browser/wait/for/event` — Blocks execution until a specific named event is signaled or the timeout expires. Used for cross-session coordination, MFA handling, and workflow synchronization. The event must first be signaled usin
  - body: { timeoutMs?: integer, event_name: string }

## Example prompts
- "What can I do in Anchor Browser?"
- "Show me a summary of my Anchor Browser account"

## More
- Page: https://mcp.ai/anchor_browser
- Agent spec (llms.txt): https://mcp.ai/anchor_browser/llms.txt
- Postman collection: https://mcp.ai/anchor_browser/postman.json
