Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A Selenium-based MCP server that exposes browser automation tools for navigation, interaction, form filling, and assertions, enabling AI agents to control web browsers through natural language.

README.md

<img src="./logo.svg" width="20" height="20"> SelAgent

A Selenium-powered MCP server that exposes browser automation as tool calls. Designed to let AI agents navigate, interact with, and test web pages through natural language.

Usage

Prerequisites:

1. Initialize the Project

SelAgent uses uv (a fast alternative to pip). Run the following in your project directory:

uv init

2. Configure the MCP Server

You can install SelAgent automatically or configure it manually for your preferred client.

Option A: Automatic Installation (Claude Desktop)

uv run mcp install main.py

<details> <summary>Note on Automatic Installation</summary>

<p>The above command only works if the Claude Desktop config is in <em>C:\Users\[username]\AppData\Roaming\Claude</em>.<br> Otherwise you must manually update the configuration.<br> If installed from the Microsoft Store, the path would be <em>C:\Users\[username]\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude</em></p>

</details> <br>

Option B: Manual Configuration for Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "selagent": {
      "command": "C:\\path\\to\\uv.exe",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "C:\\path\\to\\SelAgent\\main.py"
      ]
    }
  }
}

<details> <summary>Config File Locations</summary>

<p>Standard install: <em>C:\Users\[username]\AppData\Roaming\Claude</em>.<br> Microsoft Store install: <em>C:\Users\[username]\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude</em></p>

</details> <br>

Option C: Manual Configuration for VS Code

  1. Press Ctrl + Shift + P and select MCP: Add Server
  2. Select Command and enter: uv run --with mcp[cli] mcp run C:\path\to\SelAgent\main.py
  3. Alternatively, update C:\Users\[username]\AppData\Roaming\Code\User\mcp.json directly:
{
  "servers": {
    "selagent": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "C:\\path\\to\\SelAgent\\main.py"
      ]
    }
  }
}

Tools

Browser

  • Set headless or visible mode (before first navigation)
  • Quit the current session and start a fresh one
  • Close the browser and release all resources

Navigation

  • Navigate to a URL and wait for page load
  • Return the current page URL
  • Return the page title
  • Return the full HTML source
  • Browser history navigation
  • Reload the current page

Element Finding & Extraction

  • Find a single element by locator (id, name, class, css, xpath, tag, data-*)
  • Find all matching elements
  • Get visible text of an element
  • Get an HTML attribute value
  • Return all visible text on the page
  • Extract all <a> elements with href, id, text
  • Extract all <img> elements with src, alt, id
  • Extract all <input> elements with type, name, id, placeholder, value
  • Extract all <button> elements with type, name, id, text
  • Extract all <form> elements with action, method, id, name

Actions

  • Click an element
  • Type text into an input/textarea (clears first by default)
  • Clear the content of an input/textarea
  • Hover the mouse over an element
  • Drag source element onto destination element
  • Upload a file to a file-type input

Forms

  • Select an option from a <select> dropdown
  • Toggle checkbox state
  • Select a radio button
  • Fill form fields by matching name, id, placeholder, or label text
  • Submit a form element
  • Submit a form and return the resulting page text

Explicit Waits

  • Wait until an element is present (or visible)
  • Wait until text appears on the page
  • Wait until the URL changes
  • Wait until the URL contains a fragment
  • Wait until document.readyState is complete

Assertions

  • Verify text presence on page
  • Verify an element exists in the DOM
  • Verify an element is visible
  • Verify an element is enabled

Screenshots

  • Capture a full-page screenshot (saves to temp if no path given)

Windows & Frames

  • List all open window/tab handles
  • Switch to a window/tab by handle
  • Close the current window/tab
  • Switch into an iframe by locator or index
  • Exit all iframes back to the top-level page

Alerts

  • Accept (OK) the current alert
  • Dismiss (Cancel) the current alert
  • Read alert text without acting on it

Scrolling

  • Scroll until an element is centered in viewport
  • Scroll to page extremes
  • Scroll by a relative pixel amount

Keyboard

  • Send keys to a specific element
  • Press a special key globally (enter, tab, escape, etc.)
  • Press a keyboard shortcut (e.g. ctrl+a, ctrl+shift+t)

JavaScript & Inspection

  • Execute arbitrary JavaScript and return the result
  • Return a structured summary of all interactive elements on the page

Cookies

  • Return all cookies for the current domain
  • Return a single cookie by name
  • Add a cookie with the given name and value
  • Delete a specific cookie by name
  • Delete all cookies for the current domain

Local Storage

  • Get a value from localStorage by key
  • Set a key-value pair in localStorage
  • Return all localStorage key-value pairs
  • Clear all localStorage entries

Session Storage

  • Get a value from sessionStorage by key
  • Set a key-value pair in sessionStorage
  • Return all sessionStorage key-value pairs
  • Clear all sessionStorage entries

Additional Resources

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.