browser_ctl
Anthropic based MCP server built on Python Playwright , enable AI agents to control web browsers.
GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
45
フォーク
0
イシュー
0
Browser CTL MCP Server
SSE Anthropic based MCP server built on Python Playwright, providing a suite of tools that enable AI agents to control and interact with web browsers , this simple version use chrome browser.
Exposed Tools:
1. execute_javascript
Execute JavaScript code in real-time browser using Playwright's evaluate method and return the script's result.
2. go_to_url
Visit a target url in real-time browser.
3. sleep_for
Browser sleep for a random seconds between begin and end .
4. close_browser
Close the opened browser.
5. open_browser
Open browser in real-time.
6. take_browser_screenshot
Capture a screenshot of the current browser page and return a base64-encoded image.
Default log
This MCP server start with info log level by default:
#Configure logging
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
)
Default End Point
http://127.0.0.1:8001/sse
INSTALL
First, let’s install uv and set up our Python project and environment:
Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Clone the repo:
git clone https://github.com/biteval/browser_ctl.git
Go to the project dir:
cd browser_ctl
Create virtual environment and activate it
uv init
uv venv
Linux:
source .venv/bin/activate
Windows:
.venv\Scripts\activate
Install dependencies
Linux
uv add "mcp[cli]" httpx playwright
Windows
uv add mcp[cli] httpx playwright
Download playwright browser binaries
python -m playwright install
Start the Browser CTL MCP Server
python browser_ctl.py
Contributions Are Welcome!
Your expertise and ideas can make a significant impact on this project. Thanks!
Learn More
Visit our YouTube channel to learn how to create AI agents:
🎯 告别信息过载,AI 助你看懂新闻资讯热点,简单的舆情监控分析 - 多平台热点聚合+基于 MCP 的AI分析工具。监控35个平台(抖音、知乎、B站、华尔街见闻、财联社等),智能筛选+自动推送+AI对话分析(用自然语言深度挖掘新闻:趋势追踪、情感分析、相似检索等13种工具)。支持企业微信/个人微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 推送,30秒网页部署,1分钟手机通知,无需编程。支持Docker部署⭐ 让算法为你服务,用AI理解热点【不要 fork】 而是 【use this template】,以及建议大家使用【 docker部署】,作者正在和官方沟通
