MCP.so
ログイン

Browser JavaScript Evaluator MCP Server

@matdmiller

基本情報

カテゴリ

ブラウザ自動化

トランスポート

stdio

作者

matdmiller

Browser JavaScript Evaluator MCP Server について

This is a reference design for a MCP server that hosts a web page that connects back to the server via sse and allows Claude to execute javascript on the page.

Browser JavaScript Evaluator MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp_py_sse_browser_control": {
      "command": "python",
      "args": [
        "web_server.py"
      ]
    }
  }
}

Browser JavaScript Evaluator MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Browser JavaScript Evaluator?

Browser JavaScript Evaluator is an MCP (Model Control Protocol) server that lets you execute arbitrary JavaScript code in a browser from Python. It uses a web server with SSE (Server-Sent Events) and a REST API to relay code to a connected browser and return results.

How to use Browser JavaScript Evaluator?

Add the server to your Claude Desktop configuration using uv pointing to the repository directory and the browser_server.py script. After launching Claude, open a browser to http://127.0.0.1:8000 to connect. The server provides two tools: execute_javascript (run any JavaScript) and add_numbers (add two numbers via browser execution).

Key features of Browser JavaScript Evaluator

  • Executes arbitrary JavaScript in a connected browser
  • Provides two MCP tools: execute_javascript and add_numbers
  • Uses SSE for real-time communication with the browser
  • Returns results synchronously via REST API
  • Web server and MCP server are split into separate components

Use cases of Browser JavaScript Evaluator

  • Perform browser‑based calculations from an MCP client (e.g., add_numbers)
  • Run custom JavaScript to manipulate or inspect a live browser page
  • Test and debug JavaScript code in a real browser environment
  • Automate browser interactions within an AI‑assisted workflow

よくある質問

1

What does Browser JavaScript Evaluator do?

It allows you to execute JavaScript code in a browser from Python via MCP. A web server sends code to a connected browser using SSE, and the browser returns results.

2

How do I install and run it?

Add the server to your Claude config with the `uv` command pointing to the repository, then launch Claude. Open a browser at http://127.0.0.1:8000 to connect. Alternatively, run `python web_server.py` to start only the web server.

3

What MCP tools are available?

Two tools: `execute_javascript` (runs any JavaScript) and `add_numbers` (adds two numbers using JavaScript).

4

Is there a security warning?

Yes. The server can execute arbitrary JavaScript in your browser, which is potentially dangerous. Use at your own risk and be aware of the implications.

5

What are the dependencies or runtime requirements?

The server runs with Python and uses the `uv` package manager. A browser must be open and connected to the web server (default at port 8000) for code execution to work.

コメント

「ブラウザ自動化」の他のコンテンツ