selagent
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 init2. 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.pyOption 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"
]
}
}
}Option C: Manual Configuration for VS Code
Press
Ctrl + Shift + Pand selectMCP: Add ServerSelect
Commandand enter:uv run --with mcp[cli] mcp run C:\path\to\SelAgent\main.pyAlternatively, update
C:\Users\[username]\AppData\Roaming\Code\User\mcp.jsondirectly:
{
"servers": {
"selagent": {
"type": "stdio",
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"C:\\path\\to\\SelAgent\\main.py"
]
}
}
}Related MCP server: Selenium MCP Server
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, textExtract all
<img>elements with src, alt, idExtract all
<input>elements with type, name, id, placeholder, valueExtract all
<button>elements with type, name, id, textExtract 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>dropdownToggle 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.readyStateis 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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Browz hosted MCP (free public beta): let an AI app drive your own Browz browser profiles from anywhere. Connect https://mcp.gobrowz.com/mcp and sign in with your Browz account (OAuth) or an agent token. Each call is relayed to the Browz app on your computer, which must be online with Remote control on and have a hardware security chip (Mac Secure Enclave or TPM 2.0). 17 tools: profiles, tabs, navigate, snapshot, act, wait, screenshot. Cookies, downloads and stored sign-ins stay on your computer.
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes Selenium WebDriver as an MCP server, enabling AI agents and LLMs to control real browsers for automation tasks like navigation, element interaction, and screenshot capture.2227 PyPI3MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for web automation using Selenium WebDriver, enabling AI assistants to navigate, interact with elements, take screenshots, and manage browser storage.10MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides browser automation capabilities, enabling LLMs to control a web browser for navigation, interaction, and data extraction.32111 npm14MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to automate browser testing via Chromium, providing tools for navigation, interaction, and inspection.-