MCP ExplorerExplorer

Playwright Agent

@tmaheshon a month ago
1 MIT
FreeCommunity
AI Systems
agentkit for playwright-mcp server

Overview

What is Playwright Agent

playwright-agent is a browser automation agent built using Inngest-AgentKit and Firebase-Genkit, designed for intelligent web navigation and task execution.

Use cases

Use cases include automated testing of web applications, intelligent data scraping, and executing complex workflows that require interaction with multiple web services.

How to use

To use playwright-agent, clone the repository, install dependencies, set up environment variables with your API keys, and start the Playwright MCP server. You can then run the agent with the provided commands.

Key features

Key features include integration with OpenAI and Google AI for advanced task execution, an intelligent agent system for web navigation, and built-in observability with OpenTelemetry.

Where to use

playwright-agent can be used in web automation tasks, testing environments, and scenarios requiring intelligent interaction with web applications.

Content

gentKit Browser Automation

A browser agent built with Inngest-AgentKit and Firebase-Genkit, featuring an agent system for intelligent web navigation and task execution.

Getting Started

Prerequisites

  • Node.js (v20 or higher)
  • npm or yarn
  • OpenAI API key (for GPT models)
  • Goolge AI key (for gemini models)

Installation

  1. Clone the repository:
git clone https://github.com/tmahesh/playwright-agent.git
cd playwright-agent
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.sample .env
# Edit .env with your API keys
  1. Start plawright mcp server in a seperate terminal window
npx @playwright/mcp@latest --port 8931
  1. To run with genkit sdk
npx tsx genkit.ts

#dev server(optional but recommended)
#It has fantastic observaibility built-in with opentelemetry
npx genkit start -- npx tsx --watch genkit.ts
  1. If you want to try agentkit of inngest-cli (NOTE: the names are very close agentkit nad genkit)
npx tsx agentkit.ts

#dev-server (optional)
npx inngest-cli@latest dev --no-discovery -u http://localhost:3000/api/inngest -v

Acknowledgments

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers