Skip to content
Prompt

brosh — Cursor Rules

by twardoch

AI Summary

brosh is a Cursor-integrated MCP server that enables AI assistants to capture full-page browser screenshots with scrolling support using Playwright. Developers using Claude in Cursor benefit from automated visual webpage inspection for debugging, testing, and content analysis.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "brosh — Cursor Rules" prompt rules to my project.
Repository: https://github.com/twardoch/brosh

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

MCP server and CLI tool for browser screenshots (using Playwright and Python)

Running the Tools

The package provides two command-line tools: • brosh: Main CLI for screenshot capture • brosh-mcp: MCP server for AI tool integration Primary Tool (brosh) `bash

Basic usage

brosh shot "https://example.com"

Key Features

• Async Architecture: Uses Playwright's async API for better performance • Dual API: Provides both synchronous and asynchronous APIs for different contexts • Command Structure: Fire-based CLI with subcommands (run, shot, quit, mcp) • Browser Management: Can connect to existing browsers or start new ones • MCP Integration: Includes FastMCP server mode for model context protocol • Error Handling: Comprehensive retry logic and timeout management • HTML Extraction: Can extract minified HTML of fully visible elements • Text Extraction: Automatically converts visible content to Markdown format

Use MCP tools if you can

Before and during coding (if have access to tools), you should: • consult the context7 tool for most up-to-date software package documentation; • ask intelligent questions to the deepseek/deepseek-r1-0528:free model via the chat_completion tool to get additional reasoning; • also consult the openai/o3 model via the chat_completion tool for additional reasoning and help with the task; • use the sequentialthinking tool to think about the best way to solve the task; • use the perplexity_ask and duckduckgo_web_search tools to gather up-to-date information or context;

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 9mo ago
Stale
AdoptionUnder 100 stars
3 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars3
Issues0
Updated9mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more