Skip to content
Back to search

webview-mcp

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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/navideveloper--webview-mcp/badge.svg)](/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
  1. # Browser & MCP Server
  2. A Python library to control a shared web browser either directly via script or remotely using a Model Context Protocol (MCP) server.
  3. ## Quickstart: Direct Usage
  4. Use the browser directly in Python:
  5. ```python
  6. from browser import Browser, run
  7. def main(browser: Browser) -> None:
  8. page = browser.open("https://jadval.adu.uz")
  9. print("Title:", page.title)
  10. print("Content:", browser.text)
  11. if __name__ == "__main__":
  12. run(main)
  13. ```
  14. ## Running the Server
  15. Start the MCP server over HTTP:
  16. ```bash
  17. python mcp-server.py --host 127.0.0.1 --port 8000
  18. ```
  19. ### CLI Arguments
  20. | Option | Type | Default | Description |
  21. | :--- | :--- | :--- | :--- |
  22. | `--show` | `bool` | `False` | Display the browser UI window |
  23. | `--session` | `bool` | `False` | Save cookies and session state |
  24. | `--host` | `str` | `127.0.0.1` | HTTP server host address |
  25. | `--port` | `int` | `8000` | HTTP server port number |
  26. ## Available MCP Tools
  27. * **Navigation**: `open`, `page`, `back`, `forward`, `reload`, `scroll_down`, `wait`
  28. * **Extraction**: `content`, `links`, `extract`, `attribute`, `html`
  29. * **Interaction**: `click`, `fill`, `submit`
  30. ## Client Example
  31. Control the server programmatically using the MCP client:
  32. ```python
  33. import asyncio
  34. from mcp import Client
  35. async def main() -> None:
  36. async with Client("http://localhost:8000/mcp") as client:
  37. # Navigate and wait for form
  38. await client.call_tool("open", {"url": "https://adekvatserver.ru/stats?server=4"})
  39. await client.call_tool("wait", {"selector": "#search_stats", "timeout": 15.0})
  40. # Fill search input and click submit
  41. await client.call_tool("fill", {"selector": "#search_stats", "text": "salokhiddinov", "clear": True})
  42. await client.call_tool("click", {"selector": "button[type='submit']", "navigates": False})
  43. # Wait for results table and extract text
  44. await client.call_tool("wait", {"selector": "table", "timeout": 15.0})
  45. result = await client.call_tool("extract", {"selector": "table"})
  46. print("Scraped Data:", result.content)
  47. asyncio.run(main())
  48. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.