Greenrun MCP server for browser test management

Greenrun MCP server for browser test management

greenrun-cli•byadd-item-to

An MCP server that connects Claude Code to the Greenrun API so you can define browser tests in plain English and have Playwright scripts generated, executed, and tracked.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes MCP tools for managing projects, pages, tests, and runs through the Greenrun API.
  • •Generates Playwright scripts on first run by performing a scouting pass in the browser, then caches them for reuse.
  • •Supports named credential sets so tests can authenticate before running.
  • •Provides impact analysis to find tests affected by changed pages and re-run only those.

BEST FOR

  • •Teams using Claude Code that want AI-generated and AI-executed Playwright browser tests from plain-English descriptions.
  • •Projects needing targeted regression runs after code changes.

ABOUT GREENRUN-CLI

Greenrun MCP server for browser test management is cataloged as an MCP server attributed to add-item-to. An MCP server that connects Claude Code to the Greenrun API so you can define browser tests in plain English and have Playwright scripts generated, executed, and tracked. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Greenrun MCP server for browser test management are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What happens if a cached script fails?

An AI agent re-executes the test manually to determine whether the cached script is stale or a real bug exists; stale scripts are automatically cleared for regeneration.

Can tests be filtered when running them?

Yes, the /greenrun command supports filters by tag, linked page path, or test name, as well as running all active tests.

Upstream README

View this exact version on GitHub

README.md · 80b03336bd00 · Fetched 2026-11-13 11:25:04 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

greenrun-cli

Browser test management for Claude Code. Write tests in plain English, and Claude generates and runs Playwright scripts automatically.

Greenrun is an MCP server that connects Claude Code to the Greenrun API. You describe what to test, Greenrun handles the rest — script generation, parallel execution, result tracking, and re-running only what's needed.

Quick Start

npx greenrun-cli init

The setup wizard will:

  1. Validate your Greenrun API token
  2. Configure the Greenrun and Playwright MCP servers for Claude Code
  3. Install /greenrun and /greenrun-sweep slash commands
  4. Add project instructions to your CLAUDE.md
  5. Set up tool permissions so tests run without prompts

Get an API token at app.greenrun.dev/tokens.

Prerequisites

  • Node.js 18+
  • Claude Code — install guide
  • Playwright MCP — configured automatically by init

How It Works

  1. Define tests in the dashboard or via Claude Code using MCP tools
  2. Run /greenrun — Claude fetches tests, generates Playwright scripts on first run, then executes them natively
  3. Scripts are cached — subsequent runs skip generation and execute instantly via npx playwright test
  4. Results are tracked — pass/fail status, duration, and summaries stored per run

Script Generation

On first run, Claude walks through each test's instructions in the browser (scouting pass), observes UI states, and generates a .spec.ts script using real selectors. Scripts are saved to the API and reused on future runs.

If a cached script fails, an AI agent re-executes the test manually to determine whether the script is stale or there's a real bug. Stale scripts are automatically cleared for regeneration.

Authentication

Projects support named credential sets (name, email, password). Each test can reference a credential by name via credential_name. During execution, the matching credentials are used to authenticate before running the test.

Impact Analysis

After code changes, run /greenrun-sweep to find which tests are affected by the pages you changed. Only the relevant tests are re-run.

Slash Commands

/greenrun [filter]

Run tests for the current project. Supports filters:

  • /greenrun — run all active tests
  • /greenrun tag:smoke — run tests tagged "smoke"
  • /greenrun /checkout — run tests linked to pages matching "/checkout"
  • /greenrun login — run tests with "login" in the name

/greenrun-sweep

Detect which tests are impacted by recent git changes and offer to run them.

MCP Tools

ToolDescription
list_projectsList all projects
create_projectCreate a project (with credentials, auth config)
get_projectGet project details
update_projectUpdate project settings
list_pagesList pages in a project
create_pageRegister a page URL
list_testsList tests with latest run status
get_testGet full test details and instructions
create_testCreate a test (with credential_name, tags, pages)
update_testUpdate test (auto-invalidates script on content change)
prepare_test_batchFetch, filter, and start runs for a batch of tests
export_test_scriptWrite a test's cached Playwright script to a local file (keeps scripts out of context)
export_test_instructionsWrite a test's instructions to a local file (keeps instructions out of context)
sweepFind tests affected by specific pages
start_runStart a test run
complete_runRecord a single test result
batch_complete_runsRecord results for multiple test runs in one call
get_runGet run details
list_runsList run history

Manual Setup

If you prefer to configure manually instead of using init:

claude mcp add greenrun --transport stdio -e GREENRUN_API_TOKEN=your_token -- npx -y greenrun-cli@latest
claude mcp add playwright -- npx @playwright/mcp@latest --browser chrome --user-data-dir ~/.greenrun/browser-profile

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "greenrun": {
      "command": "npx",
      "args": ["-y", "greenrun-cli@latest"],
      "env": { "GREENRUN_API_TOKEN": "${GREENRUN_API_TOKEN}" }
    }
  }
}

CLI Commands

greenrun init             Interactive setup wizard
greenrun update           Update templates and commands to latest version
greenrun serve            Start MCP server directly
greenrun --version        Print version
greenrun --help           Print help

Non-interactive init:

npx greenrun-cli init --token gr_xxx --scope local --no-claude-md --no-commands

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Greenrun MCP server for browser test management from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/greenrun-cli)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools