The Anchor Browser MCP connector routes your AI agent's tool calls to Anchor Browser's own MCP server through Scalekit. Each user signs in to Anchor Browser once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 25 tools.
- Tools
- 25
- What they doRead · write · destructive
- 9 · 16 · 09 read16 write0 destructive
- Users sign in with
- OAuth
- OAuth app
- Scalekit's or your own
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet 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>Create the Anchor Browser MCP connection
In AgentKit > Connections, create an Anchor Browser MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for Anchor Browser MCP server, so you don't need to register an OAuth app.
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_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)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'anchorbrowsermcp_anchor_console_messages',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_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_console_messages",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolanchorbrowsermcp_anchor_console_messagesReturns all console messages captured since the current page was loaded.Read-onlyGet 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.
Inputs
This tool takes no inputs.
anchorbrowsermcp_anchor_generate_playwright_codeGenerate a Playwright test script for a given scenario described as a series of steps.Read-onlyGenerate 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.
Inputs
descriptionstringrequired- The description of the test
namestringrequired- The name of the test
stepsarrayrequired- The steps of the test
anchorbrowsermcp_anchor_get_body_htmlGet the HTML content of the body element from the current page, or of a specific element when a selector is provided.Read-onlyGet 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.
Inputs
slimResponsebooleanrequired- Whether to exclude HTML comments, script tags, style tags, images and svgs in the output (default: true)default
true selectorstring- The selector of the element to be saved for example: .class-name, #id, etc.
anchorbrowsermcp_anchor_network_requestsReturns all network requests captured since the current page was loaded.Read-onlyList 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.
Inputs
This tool takes no inputs.
anchorbrowsermcp_anchor_pdf_saveSave the current browser page as a PDF file.Read-onlySave Page as PDF
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.
Inputs
filenamestring- File name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified.
anchorbrowsermcp_anchor_snapshotCapture an accessibility snapshot of the current page.Read-onlyCapture Accessibility 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.
Inputs
This tool takes no inputs.
anchorbrowsermcp_anchor_tab_listList all currently open tabs in the cloud browser session, returning their indices and titles or URLs.Read-onlyList Browser Tabs
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.
Inputs
This tool takes no inputs.
anchorbrowsermcp_anchor_take_screenshotTake a screenshot of the current browser page or a specific element.Read-onlyTake 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.
Inputs
elementstring- Human-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.
filenamestring- File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified.
rawboolean- Whether to return without compression (in PNG format). Default is false, which returns a JPEG image.
refstring- Exact 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_wait_forPause the automation until a specified text appears on the page, a specified text disappears from the page, or a given number of seconds elapses.Read-onlyWait 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.
Inputs
textstring- The text to wait for
textGonestring- The text to wait for to disappear
timenumber- The time to wait in seconds
anchorbrowsermcp_anchor_clickPerform a click on an element in the cloud browser page.WriteClick Element
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.
Inputs
elementstringrequired- Human-readable element description used to obtain permission to interact with the element
refstringrequired- Exact target element reference from the page snapshot
doubleClickboolean- Whether to perform a double click instead of a single click
anchorbrowsermcp_anchor_closeClose the current browser page and end the active cloud browser session.WriteClose Browser
Close the current browser page and end the active cloud browser session. Use this to cleanly terminate a session when automation is complete.
Inputs
This tool takes no inputs.
anchorbrowsermcp_anchor_dragPerform a drag-and-drop operation between two elements in the cloud browser page.WriteDrag and Drop
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.
Inputs
endElementstringrequired- Human-readable target element description used to obtain the permission to interact with the element
endRefstringrequired- Exact target element reference from the page snapshot
startElementstringrequired- Human-readable source element description used to obtain the permission to interact with the element
startRefstringrequired- Exact source element reference from the page snapshot
anchorbrowsermcp_anchor_file_uploadUpload one or more files to the cloud browser page via a file input element.WriteUpload Files
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.
Inputs
pathsarrayrequired- The absolute paths to the files to upload. Can be a single file or multiple files.
anchorbrowsermcp_anchor_handle_dialogAccept or dismiss a browser dialog (alert, confirm, or prompt) that has appeared in the cloud browser page.WriteHandle 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`.
Inputs
acceptbooleanrequired- Whether to accept the dialog.
promptTextstring- The text of the prompt in case of a prompt dialog.
anchorbrowsermcp_anchor_hoverHover the mouse cursor over an element in the cloud browser page without clicking it.WriteHover Over Element
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.
- Idempotent
Inputs
elementstringrequired- Human-readable element description used to obtain permission to interact with the element
refstringrequired- Exact target element reference from the page snapshot
anchorbrowsermcp_anchor_press_keyPress a keyboard key or key combination in the cloud browser page.WritePress 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.
Inputs
keystringrequired- Name of the key to press or a character to generate, such as `ArrowLeft` or `a`
anchorbrowsermcp_anchor_resizeResize the browser window to the specified width and height in pixels.WriteResize Browser Window
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.
- Idempotent
Inputs
heightnumberrequired- Height of the browser window
widthnumberrequired- Width of the browser window
anchorbrowsermcp_anchor_select_optionSelect one or more options in a dropdown or select element in the cloud browser page.WriteSelect Dropdown 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.
Inputs
elementstringrequired- Human-readable element description used to obtain permission to interact with the element
refstringrequired- Exact target element reference from the page snapshot
valuesarrayrequired- Array of values to select in the dropdown. This can be a single value or multiple values.
anchorbrowsermcp_anchor_tab_closeClose a browser tab by its index, or close the currently active tab if no index is specified.WriteClose Tab
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.
Inputs
indexnumber- The index of the tab to close. Closes current tab if not provided.
anchorbrowsermcp_anchor_tab_newOpen a new browser tab in the cloud session, optionally navigating it to a specified URL.WriteOpen New Tab
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.
Inputs
urlstring- The URL to navigate to in the new tab. If not provided, the new tab will be blank.
anchorbrowsermcp_anchor_tab_selectSwitch the active browser tab to the tab at the given zero-based index.WriteSelect Tab
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.
- Idempotent
Inputs
indexnumberrequired- The index of the tab to select
anchorbrowsermcp_anchor_typeType text into an editable element in the cloud browser page.WriteType Text
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`).
Inputs
elementstringrequired- Human-readable element description used to obtain permission to interact with the element
refstringrequired- Exact target element reference from the page snapshot
textstringrequired- Text to type into the element
slowlyboolean- Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.
submitboolean- Whether to submit entered text (press Enter after)
No tools match.