Anchor Browser MCP connector
OAuth 2.1/DCRAIAutomationDeveloper ToolsConnect to Anchor Browser MCP to run cloud browser automation, control live browser sessions, extract web data, and let AI agents browse and act on the...
Anchor Browser MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'anchorbrowsermcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Anchor Browser MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'anchorbrowsermcp_anchor_tab_list',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "anchorbrowsermcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Anchor Browser MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="anchorbrowsermcp_anchor_tab_list",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- For anchor wait — Pause the automation until a specified text appears on the page, a specified text disappears from the page, or a given number of seconds elapses
- Type anchor — Type text into an editable element in the cloud browser page
- Screenshot anchor take — Take a screenshot of the current browser page or a specific element
- Select anchor tab — Switch the active browser tab to the tab at the given zero-based index
- New anchor tab — Open a new browser tab in the cloud session, optionally navigating it to a specified URL
- List anchor tab — List all currently open tabs in the cloud browser session, returning their indices and titles or URLs
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
anchorbrowsermcp_anchor_click#Perform a click on an element in the cloud browser page. Use `element` to provide a human-readable description of the target (e.g. 'Submit button') and `ref` to supply the exact element reference obtained from a prior `anchor_snapshot` accessibility snapshot. Optionally set `doubleClick` to true to perform a double-click instead.3 params
Perform a click on an element in the cloud browser page. Use `element` to provide a human-readable description of the target (e.g. 'Submit button') and `ref` to supply the exact element reference obtained from a prior `anchor_snapshot` accessibility snapshot. Optionally set `doubleClick` to true to perform a double-click instead.
elementstringrequiredHuman-readable element description used to obtain permission to interact with the elementrefstringrequiredExact target element reference from the page snapshotdoubleClickbooleanoptionalWhether to perform a double click instead of a single clickanchorbrowsermcp_anchor_close#Close the current browser page and end the active cloud browser session. Use this to cleanly terminate a session when automation is complete.0 params
Close the current browser page and end the active cloud browser session. Use this to cleanly terminate a session when automation is complete.
anchorbrowsermcp_anchor_console_messages#Returns all console messages captured since the current page was loaded. Use this to inspect JavaScript log output, warnings, and errors for debugging or validation purposes.0 params
Returns all console messages captured since the current page was loaded. Use this to inspect JavaScript log output, warnings, and errors for debugging or validation purposes.
anchorbrowsermcp_anchor_drag#Perform a drag-and-drop operation between two elements in the cloud browser page. Provide human-readable descriptions for both the source (`startElement`) and target (`endElement`), along with their exact element references (`startRef`, `endRef`) obtained from a prior `anchor_snapshot` accessibility snapshot. Useful for reordering list items, moving cards between columns, or resizing elements.4 params
Perform a drag-and-drop operation between two elements in the cloud browser page. Provide human-readable descriptions for both the source (`startElement`) and target (`endElement`), along with their exact element references (`startRef`, `endRef`) obtained from a prior `anchor_snapshot` accessibility snapshot. Useful for reordering list items, moving cards between columns, or resizing elements.
endElementstringrequiredHuman-readable target element description used to obtain the permission to interact with the elementendRefstringrequiredExact target element reference from the page snapshotstartElementstringrequiredHuman-readable source element description used to obtain the permission to interact with the elementstartRefstringrequiredExact source element reference from the page snapshotanchorbrowsermcp_anchor_file_upload#Upload one or more files to the cloud browser page via a file input element. Provide an array of absolute file paths on the server where the browser session is running. Supports single or multiple file uploads to any `<input type='file'>` element that has been activated on the page.1 param
Upload one or more files to the cloud browser page via a file input element. Provide an array of absolute file paths on the server where the browser session is running. Supports single or multiple file uploads to any `<input type='file'>` element that has been activated on the page.
pathsarrayrequiredThe absolute paths to the files to upload. Can be a single file or multiple files.anchorbrowsermcp_anchor_generate_playwright_code#Generate a Playwright test script for a given scenario described as a series of steps. Provide a test name, description, and ordered list of step instructions; the tool returns runnable Playwright code. Use this to automate browser test authoring from natural language instructions.3 params
Generate a Playwright test script for a given scenario described as a series of steps. Provide a test name, description, and ordered list of step instructions; the tool returns runnable Playwright code. Use this to automate browser test authoring from natural language instructions.
descriptionstringrequiredThe description of the testnamestringrequiredThe name of the teststepsarrayrequiredThe steps of the testanchorbrowsermcp_anchor_get_body_html#Get the HTML content of the body element from the current page, or of a specific element when a selector is provided. Useful for identifying the DOM structure and locating paths to important elements. By default, comments, scripts, styles, images, and SVGs are excluded to keep the output concise.2 params
Get the HTML content of the body element from the current page, or of a specific element when a selector is provided. Useful for identifying the DOM structure and locating paths to important elements. By default, comments, scripts, styles, images, and SVGs are excluded to keep the output concise.
slimResponsebooleanrequiredWhether to exclude HTML comments, script tags, style tags, images and svgs in the output (default: true)selectorstringoptionalThe selector of the element to be saved for example: .class-name, #id, etc.anchorbrowsermcp_anchor_handle_dialog#Accept or dismiss a browser dialog (alert, confirm, or prompt) that has appeared in the cloud browser page. Set `accept` to true to confirm/accept the dialog, or false to cancel/dismiss it. For prompt dialogs that require text input, provide the response text in `promptText`.2 params
Accept or dismiss a browser dialog (alert, confirm, or prompt) that has appeared in the cloud browser page. Set `accept` to true to confirm/accept the dialog, or false to cancel/dismiss it. For prompt dialogs that require text input, provide the response text in `promptText`.
acceptbooleanrequiredWhether to accept the dialog.promptTextstringoptionalThe text of the prompt in case of a prompt dialog.anchorbrowsermcp_anchor_hover#Hover the mouse cursor over an element in the cloud browser page without clicking it. Use `element` to provide a human-readable description of the target and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Useful for revealing tooltips, dropdown menus, or other hover-triggered UI states.2 params
Hover the mouse cursor over an element in the cloud browser page without clicking it. Use `element` to provide a human-readable description of the target and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Useful for revealing tooltips, dropdown menus, or other hover-triggered UI states.
elementstringrequiredHuman-readable element description used to obtain permission to interact with the elementrefstringrequiredExact target element reference from the page snapshotanchorbrowsermcp_anchor_network_requests#Returns all network requests captured since the current page was loaded. Use this to inspect API calls, resource loads, and HTTP traffic for debugging, auditing, or understanding page behavior.0 params
Returns all network requests captured since the current page was loaded. Use this to inspect API calls, resource loads, and HTTP traffic for debugging, auditing, or understanding page behavior.
anchorbrowsermcp_anchor_pdf_save#Save the current browser page as a PDF file. Useful for archiving page content, generating printable reports, or capturing rendered page state as a document. An optional filename can be specified; otherwise a timestamped default is used.1 param
Save the current browser page as a PDF file. Useful for archiving page content, generating printable reports, or capturing rendered page state as a document. An optional filename can be specified; otherwise a timestamped default is used.
filenamestringoptionalFile name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified.anchorbrowsermcp_anchor_press_key#Press a keyboard key or key combination in the cloud browser page. Accepts named keys (e.g. `ArrowLeft`, `Enter`, `Tab`, `Escape`) or single characters (e.g. `a`, `1`). Useful for keyboard navigation, submitting forms, triggering shortcuts, or dismissing dialogs without using the mouse.1 param
Press a keyboard key or key combination in the cloud browser page. Accepts named keys (e.g. `ArrowLeft`, `Enter`, `Tab`, `Escape`) or single characters (e.g. `a`, `1`). Useful for keyboard navigation, submitting forms, triggering shortcuts, or dismissing dialogs without using the mouse.
keystringrequiredName of the key to press or a character to generate, such as `ArrowLeft` or `a`anchorbrowsermcp_anchor_resize#Resize the browser window to the specified width and height in pixels. Use this to test responsive layouts, simulate different device viewports, or prepare the browser state before capturing screenshots or snapshots.2 params
Resize the browser window to the specified width and height in pixels. Use this to test responsive layouts, simulate different device viewports, or prepare the browser state before capturing screenshots or snapshots.
heightnumberrequiredHeight of the browser windowwidthnumberrequiredWidth of the browser windowanchorbrowsermcp_anchor_select_option#Select one or more options in a dropdown or select element in the cloud browser page. Use `element` to provide a human-readable description of the dropdown and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Pass one or more option values in the `values` array to select.3 params
Select one or more options in a dropdown or select element in the cloud browser page. Use `element` to provide a human-readable description of the dropdown and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Pass one or more option values in the `values` array to select.
elementstringrequiredHuman-readable element description used to obtain permission to interact with the elementrefstringrequiredExact target element reference from the page snapshotvaluesarrayrequiredArray of values to select in the dropdown. This can be a single value or multiple values.anchorbrowsermcp_anchor_snapshot#Capture an accessibility snapshot of the current page. This produces a structured representation of the page's accessible elements (roles, labels, states), which is more useful than a screenshot for planning and executing further interactions. Use this to understand page structure before performing actions.0 params
Capture an accessibility snapshot of the current page. This produces a structured representation of the page's accessible elements (roles, labels, states), which is more useful than a screenshot for planning and executing further interactions. Use this to understand page structure before performing actions.
anchorbrowsermcp_anchor_tab_close#Close a browser tab by its index, or close the currently active tab if no index is specified. Use this to clean up tabs that are no longer needed during a multi-tab automation session.1 param
Close a browser tab by its index, or close the currently active tab if no index is specified. Use this to clean up tabs that are no longer needed during a multi-tab automation session.
indexnumberoptionalThe index of the tab to close. Closes current tab if not provided.anchorbrowsermcp_anchor_tab_list#List all currently open tabs in the cloud browser session, returning their indices and titles or URLs. Use this to inspect available tabs before selecting or closing one.0 params
List all currently open tabs in the cloud browser session, returning their indices and titles or URLs. Use this to inspect available tabs before selecting or closing one.
anchorbrowsermcp_anchor_tab_new#Open a new browser tab in the cloud session, optionally navigating it to a specified URL. If no URL is provided, the new tab opens blank. Use this to work across multiple pages simultaneously.1 param
Open a new browser tab in the cloud session, optionally navigating it to a specified URL. If no URL is provided, the new tab opens blank. Use this to work across multiple pages simultaneously.
urlstringoptionalThe URL to navigate to in the new tab. If not provided, the new tab will be blank.anchorbrowsermcp_anchor_tab_select#Switch the active browser tab to the tab at the given zero-based index. Use this to move focus between multiple open tabs before interacting with the content of a specific tab.1 param
Switch the active browser tab to the tab at the given zero-based index. Use this to move focus between multiple open tabs before interacting with the content of a specific tab.
indexnumberrequiredThe index of the tab to selectanchorbrowsermcp_anchor_take_screenshot#Take a screenshot of the current browser page or a specific element. Returns a JPEG image by default (or PNG when raw mode is enabled). Use this to visually inspect page state; note that screenshots cannot be used as input for further actions — use anchor_snapshot instead when you need to interact with elements.4 params
Take a screenshot of the current browser page or a specific element. Returns a JPEG image by default (or PNG when raw mode is enabled). Use this to visually inspect page state; note that screenshots cannot be used as input for further actions — use anchor_snapshot instead when you need to interact with elements.
elementstringoptionalHuman-readable element description used to obtain permission to screenshot the element. If not provided, the screenshot will be taken of viewport. If element is provided, ref must be provided too.filenamestringoptionalFile name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified.rawbooleanoptionalWhether to return without compression (in PNG format). Default is false, which returns a JPEG image.refstringoptionalExact target element reference from the page snapshot. If not provided, the screenshot will be taken of viewport. If ref is provided, element must be provided too.anchorbrowsermcp_anchor_type#Type text into an editable element in the cloud browser page. Use `element` to provide a human-readable description of the target input and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Optionally press Enter after typing (`submit`) or type character-by-character to trigger key handlers (`slowly`).5 params
Type text into an editable element in the cloud browser page. Use `element` to provide a human-readable description of the target input and `ref` to supply the exact element reference from a prior `anchor_snapshot` accessibility snapshot. Optionally press Enter after typing (`submit`) or type character-by-character to trigger key handlers (`slowly`).
elementstringrequiredHuman-readable element description used to obtain permission to interact with the elementrefstringrequiredExact target element reference from the page snapshottextstringrequiredText to type into the elementslowlybooleanoptionalWhether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.submitbooleanoptionalWhether to submit entered text (press Enter after)anchorbrowsermcp_anchor_wait_for#Pause the automation until a specified text appears on the page, a specified text disappears from the page, or a given number of seconds elapses. Use this to synchronize with dynamic page content loading or transitions before taking the next action.3 params
Pause the automation until a specified text appears on the page, a specified text disappears from the page, or a given number of seconds elapses. Use this to synchronize with dynamic page content loading or transitions before taking the next action.
textstringoptionalThe text to wait fortextGonestringoptionalThe text to wait for to disappeartimenumberoptionalThe time to wait in seconds