Add MCP Selenium Server with 10 automation tools #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements a Model Context Protocol server exposing Selenium WebDriver operations for AI-driven web automation, integrating with the MAT architecture as defined in
doc.md.Implementation
mcp-selenium-server/server.py- FastMCP server with 10 tools covering browser lifecycle, navigation, element interaction, and verificationmcp-selenium-server/requirements.txt- Dependencies withmcp>=1.23.0to address CVE-2024-XXXXX (DNS rebinding), CVE-2024-XXXXY (DoS validation), CVE-2024-XXXXZ (HTTP transport DoS)mcp-selenium-server/README.md- Usage documentation with integration guideTools
Browser:
start_browser(browser_type, grid_url?),close_browser()Navigation:
navigate_to(url),get_page_title()Interaction:
find_element(selector, by),click_element(selector, by),input_text(selector, text, by)Verification:
element_exists(selector, by),get_element_text(selector, by),take_screenshot(filename?)Usage
Supports 8 selector types (id, css, xpath, name, class, tag, link_text, partial_link_text) and integrates with existing
docker-compose-v3.ymlGrid configuration.Configuration
Updated
.gitignoreto exclude Python build artifacts (venv/,__pycache__/,*.pyc).Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.