Browser JavaScript Evaluator icon

Browser JavaScript Evaluator

Createdmatdmiller

Executes JavaScript code in a browser from Python using MCP, enabling interaction with web pages through server-sent events.

About

This tool provides a mechanism to execute JavaScript code within a browser environment directly from a Python-based MCP server. It establishes a connection between the server and a browser through Server-Sent Events (SSE), allowing the MCP server to send JavaScript commands to the browser for execution and receive the results back. This enables dynamic control and interaction with web pages, opening up possibilities for browser automation and integration with MCP-managed workflows.

Key Features

  • Provides MCP tools for executing JavaScript commands.
  • Supports synchronous result retrieval.
  • Executes arbitrary JavaScript code in a browser environment.
  • Leverages Server-Sent Events (SSE) for real-time communication.
  • Offers a REST API endpoint for JavaScript execution.
  • 0 GitHub stars

Use Cases

  • Browser automation tasks managed through MCP.
  • Testing web application functionality via MCP-driven JavaScript execution.
  • Dynamically modifying web page content based on MCP events.
Craft Better Prompts with AnyPrompt