Back to search
webview-mcp
MCP serverGitHub
Light and simple browser mcp server
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Checked today
Badge for your README
Markdown
[](/listings/navideveloper--webview-mcp)HTML
<a href="/listings/navideveloper--webview-mcp"><img src="/api/listings/navideveloper--webview-mcp/badge.svg" alt="findsafeskills safety rating" /></a>Install
i
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
Use the browser directly in Python:
from browser import Browser, run
def main(browser: Browser) -> None:
page = browser.open("https://jadval.adu.uz")
print("Title:", page.title)
print("Content:", browser.text)
if __name__ == "__main__":
run(main)What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 69 lines
- # Browser & MCP Server
- A Python library to control a shared web browser either directly via script or remotely using a Model Context Protocol (MCP) server.
- ## Quickstart: Direct Usage
- Use the browser directly in Python:
- ```python
- from browser import Browser, run
- def main(browser: Browser) -> None:
- page = browser.open("https://jadval.adu.uz")
- print("Title:", page.title)
- print("Content:", browser.text)
- if __name__ == "__main__":
- run(main)
- ```
- ## Running the Server
- Start the MCP server over HTTP:
- ```bash
- python mcp-server.py --host 127.0.0.1 --port 8000
- ```
- ### CLI Arguments
- | Option | Type | Default | Description |
- | :--- | :--- | :--- | :--- |
- | `--show` | `bool` | `False` | Display the browser UI window |
- | `--session` | `bool` | `False` | Save cookies and session state |
- | `--host` | `str` | `127.0.0.1` | HTTP server host address |
- | `--port` | `int` | `8000` | HTTP server port number |
- ## Available MCP Tools
- * **Navigation**: `open`, `page`, `back`, `forward`, `reload`, `scroll_down`, `wait`
- * **Extraction**: `content`, `links`, `extract`, `attribute`, `html`
- * **Interaction**: `click`, `fill`, `submit`
- ## Client Example
- Control the server programmatically using the MCP client:
- ```python
- import asyncio
- from mcp import Client
- async def main() -> None:
- async with Client("http://localhost:8000/mcp") as client:
- # Navigate and wait for form
- await client.call_tool("open", {"url": "https://adekvatserver.ru/stats?server=4"})
- await client.call_tool("wait", {"selector": "#search_stats", "timeout": 15.0})
- # Fill search input and click submit
- await client.call_tool("fill", {"selector": "#search_stats", "text": "salokhiddinov", "clear": True})
- await client.call_tool("click", {"selector": "button[type='submit']", "navigates": False})
- # Wait for results table and extract text
- await client.call_tool("wait", {"selector": "table", "timeout": 15.0})
- result = await client.call_tool("extract", {"selector": "table"})
- print("Scraped Data:", result.content)
- asyncio.run(main())
- ```
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.