-
securityF
license-
qualityEnables AI agents to control web browsers via a standardized interface for operations like launching, interacting with, and closing browsers.
Last updated -
0
JavaScript
铁匠徽章
一个使用 Selenium 与 WebDriver 实例交互的 MCP 服务器。使用MCP-Server-Starter模板构建。
该服务器允许 AI 代理通过 Selenium WebDriver 控制 Web 浏览器会话,从而通过模型上下文协议实现 Web 抓取、自动化测试和表单填写等任务。
chromedriver
) 已安装并位于您的 PATH 中。src/seleniumService.ts
(您将创建此文件)。该服务器将提供以下工具:
selenium_navigate
:将浏览器导航到特定的 URL。selenium_findElement
:使用 CSS 选择器在页面上查找元素。selenium_click
:点击一个元素。selenium_sendKeys
:向元素发送击键。selenium_getPageSource
:检索当前页面源 HTML。服务器使用@modelcontextprotocol/sdk
和selenium-webdriver
库。
npm run build
npm start
(执行node build/index.js
)npm run lint
npm run format
使用 MCP Inspector 或标准 Node.js 调试技术。
(保留原始 README 中有关 Cursor、Claude Desktop、Smithery 等的相关部分,并根据需要更新路径和命令)
npm run build
Settings
> Features
> MCP
:添加新的 MCP 服务器。stdio
作为传输类型。Selenium Server
(或类似名称)。node /path/to/selenium-mcp-server/build/index.js
。npm run build
claude_desktop_config.json
:src/tools/
中每个工具一个文件)。driver.quit()
)。根据 Seth Rose 创建的模板:
local-only server
The server can only run on the client's local machine because it depends on local resources.
允许 AI 代理通过 Selenium WebDriver 控制 Web 浏览器会话,从而通过模型上下文协议实现抓取、测试和表单填写等 Web 自动化任务。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/themindmod/selenium-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server