Skip to content
Back to search

playwright-plus-python-mcp

\A MCP server with playwright tools\

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/blackwhite084--playwright-plus-python-mcp/badge.svg)](/listings/blackwhite084--playwright-plus-python-mcp)

HTML

<a href="/listings/blackwhite084--playwright-plus-python-mcp"><img src="/api/listings/blackwhite084--playwright-plus-python-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.

Install

Claude Desktop

On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json` On Windows: `%APPDATA%/Claude/claude_desktop_config.json`

<details> <summary>Development/Unpublished Servers Configuration</summary>

  "mcpServers": {
    "playwright-server": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\Users\xxxxx\Documents\project\python\mcp\playwright-server",
        "run",
        "playwright-server"
      ]
    }
  }

</details>

<details> <summary>Published Servers Configuration</summary>

  "mcpServers": {
    "playwright-server": {
      "command": "uvx",
      "args": [
        "playwright-server"
      ]
    }
  }

</details>

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 · 127 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # playwright-server MCP server
  2. \A MCP server with playwright tools\
  3. <a href="https://glama.ai/mcp/servers/c50bsocgzb"><img width="380" height="200" src="https://glama.ai/mcp/servers/c50bsocgzb/badge" alt="Playwright Server MCP server" /></a>
  4. ## Components
  5. ### Resources
  6. The server implements a simple note storage system with:
  7. - Custom note:// URI scheme for accessing individual notes
  8. - Each note resource has a name, description and text/plain mimetype
  9. ### Prompts
  10. The server provides a single prompt:
  11. - summarize-notes: Creates summaries of all stored notes
  12. - Optional "style" argument to control detail level (brief/detailed)
  13. - Generates prompt combining all current notes with style preference
  14. ### Tools
  15. The server implements the following tools:
  16. - `playwright_navigate`: Navigates to a specified URL. This operation will automatically create a new session if there is no active session.
  17. - Requires a `url` argument (string).
  18. - `playwright_screenshot`: Takes a screenshot of the current page or a specific element.
  19. - Requires a `name` argument (string) for the screenshot file name.
  20. - Optional `selector` argument (string) to specify a CSS selector for the element to screenshot. If no selector is provided, a full-page screenshot is taken.
  21. - `playwright_click`: Clicks an element on the page using a CSS selector.
  22. - Requires a `selector` argument (string) to specify the CSS selector for the element to click.
  23. - `playwright_fill`: Fills out an input field.
  24. - Requires a `selector` argument (string) to specify the CSS selector for the input field.
  25. - Requires a `value` argument (string) to specify the value to fill.
  26. - `playwright_evaluate`: Executes JavaScript code in the browser console.
  27. - Requires a `script` argument (string) to specify the JavaScript code to execute.
  28. - `playwright_click_text`: Clicks an element on the page by its text content.
  29. - Requires a `text` argument (string) to specify the text content of the element to click.
  30. - `playwright_get_text_content`: Get the text content of all visiable elements.
  31. - `playwright_get_html_content`: Get the HTML content of the page.
  32. - Requires a `selector` argument (string) to specify the CSS selector for the element.
  33. ## Configuration
  34. [TODO: Add configuration details specific to your implementation]
  35. ## Quickstart
  36. ### Install
  37. #### Claude Desktop
  38. On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
  39. On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
  40. <details>
  41. <summary>Development/Unpublished Servers Configuration</summary>
  42. ```
  43. "mcpServers": {
  44. "playwright-server": {
  45. "command": "uv",
  46. "args": [
  47. "--directory",
  48. "C:\Users\xxxxx\Documents\project\python\mcp\playwright-server",
  49. "run",
  50. "playwright-server"
  51. ]
  52. }
  53. }
  54. ```
  55. </details>
  56. <details>
  57. <summary>Published Servers Configuration</summary>
  58. ```
  59. "mcpServers": {
  60. "playwright-server": {
  61. "command": "uvx",
  62. "args": [
  63. "playwright-server"
  64. ]
  65. }
  66. }
  67. ```
  68. </details>
  69. ## Development
  70. ### Building and Publishing
  71. To prepare the package for distribution:
  72. 1. Sync dependencies and update lockfile:
  73. ```bash
  74. uv sync
  75. ```
  76. 2. Build package distributions:
  77. ```bash
  78. uv build
  79. ```
  80. This will create source and wheel distributions in the `dist/` directory.
  81. 3. Publish to PyPI:
  82. ```bash
  83. uv publish
  84. ```
  85. Note: You'll need to set PyPI credentials via environment variables or command flags:
  86. - Token: `--token` or `UV_PUBLISH_TOKEN`
  87. - Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`
  88. ### Debugging
  89. Since MCP servers run over stdio, debugging can be challenging. For the best debugging
  90. experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
  91. You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:
  92. ```bash
  93. npx @modelcontextprotocol/inspector uv --directory C:\Users\YUNYING\Documents\project\python\mcp\playwright-server run playwright-server
  94. ```
  95. Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Ratings and comments

Sign in to rate this skill.

Sign in

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