Feedback

Cypress Test Generator MCP Server

@jprealini Claim

Basic information

Runtime
JavaScript
Version
1.0.0
License
MIT
Transports
stdio
Author
jprealini
Submitted by
Community
Quality
25
Stars
17

About Cypress Test Generator MCP Server

Automate Cypress test creation: analyze pages with Puppeteer to extract DOM elements and generate page object models, selectors, and end-to-end test automation.

Cypress Test Generator is a MCP server in the Browser Automation category listed in the AddMCP.net directory, published by jprealini. It exposes 2 tools, including createCypressFiles, generateLocator. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 17 GitHub stars. Source code is hosted on github.com. Related topics: automation, browser-automation, community, cypress, pageobject.

Setup

{
    "mcpServers": {
        "cypress-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@jprealini/cypress-mcp"
            ]
        }
    }
}

Cypress Test Generator MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "cypress-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@jprealini/cypress-mcp"
            ]
        }
    }
}

Cypress Test Generator MCP Server tools

  • createCypressFiles — Crear archivos Page Object y Tests directamente en el proyecto Cypress
    pageObjectName:string, url:string*, workspacePath:string
  • generateLocator — Generar Page Object y Tests de Cypress
    url:string*

Overview

What is Cypress Test Generator?

This MCP server automatically generates complete Cypress Page Object classes and comprehensive test suites for any web page by scraping the page with Puppeteer and parsing HTML with Cheerio. It is for developers who want to quickly create structured Cypress test infrastructure.

How to use Cypress Test Generator?

Install via npm, then start the server with npx tsx main.ts. Use an MCP client to call the generateLocator tool with a URL parameter; it returns both a TypeScript Page Object class and a Cypress test suite.

Key features of Cypress Test Generator

  • Web scraping with Puppeteer for dynamic page rendering
  • HTML parsing with Cheerio to extract element information
  • Generates TypeScript Page Object classes with locators, getters, and interaction methods
  • Generates comprehensive Cypress test suites including positive, negative, accessibility, and performance tests
  • Supports multiple element types: buttons, inputs, links, selects, textareas, forms
  • Intelligently detects common workflows like login, search, and navigation patterns

Use cases of Cypress Test Generator

  • Automate creation of Cypress Page Objects and tests for a new web application
  • Rapidly set up test coverage for an existing website without manual coding
  • Generate regression test suites for pages with many interactions
  • Validate page structure and element accessibility as part of CI

Frequently asked questions

1 What does the server output?

It outputs two files: a TypeScript Page Object class (.ts) and a Cypress test suite (.cy.ts) containing positive, negative, workflow, accessibility, performance, and edge case tests.

2 What are the runtime dependencies?

The server requires Node.js, and its dependencies include @modelcontextprotocol/sdk, puppeteer, cheerio, zod, and typescript.

3 Does the server handle dynamic content?

Yes, Puppeteer runs in headless mode and waits for network idle to capture dynamically loaded content.

4 What transport or authentication does the server use?

The server uses the Model Context Protocol (MCP) with a tool-based interface; no specific authentication is mentioned.

5 Are there any known limitations?

The server only generates tests based on the current page state; it may not capture every dynamic interaction. Error handling includes invalid URLs and network failures.

Videos

Tutorials, guides, and showcases related to Cypress Test Generator MCP Server. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬