Stealth MCP server enables undetectable browsing and screenshot capture with Playwright and anti-detection techniques
The Stealth Browser MCP Server is an advanced model context protocol (MCP) server designed to provide stealth browser capabilities for AI applications. This server leverages the power of Playwright along with anti-detection techniques, making it an indispensable tool for developers looking to integrate AI applications like Claude Desktop, Continue, Cursor, and others. By enabling these applications to navigate through websites and capture screenshots in a manner that mimics regular user traffic, this MCP server ensures robust data collection while evading common bot detection systems.
One of the core capabilities of the Stealth Browser MCP Server is its Stealth Mode, which utilizes puppeteer-extra-plugin-stealth in conjunction with playwright-extra. This plugin significantly modifies browser fingerprints, effectively rendering them indistinguishable from regular user traffic. It intelligently handles various methods of browser fingerprinting, including WebGL, canvas, fonts, and plugins, thereby ensuring that the server can operate under a low profile while carrying out its tasks.
The Screenshot Tool allows for the generation of full-page or element-specific screenshots of any website with ease. Users can opt to run the browser in headless mode (default) or choose visible browser mode as needed. This flexibility makes it an invaluable tool for data collection, content analysis, and more.
The server integrates seamlessly via the Model Context Protocol, exposing rich browser capabilities that are essential for AI applications. These integrations empower developers to build complex workflows where AI-driven decision-making is powered by real-world data harvested through this stealthy browsing mechanism.
At its core, the Stealth Browser MCP Server utilizes FastMCP for its foundational protocol implementation. This ensures that the server operates in harmony with other ecosystem components designed to work via MCP. The server also employs Playwright and its companion plugins as the primary toolset for browser automation, providing a robust framework for navigating web environments without raising suspicion.
The architecture is built around a few key components:
The MCP protocol flow is illustrated by the Mermaid diagram below, highlighting the interactions between various entities.
Getting started with the Stealth Browser MCP Server involves a few straightforward steps:
Install Dependencies:
bun install
Run the MCP Server:
bun start
Development Mode (Optional):
bun dev
Inspect Available Tools:
bun inspect
AI applications like Claude Desktop can use the Stealth Browser MCP Server to collect real-time data from social media platforms or news websites. By analyzing sentiment around specific topics, these apps can provide insights and trends that enhance user interactions.
Technical Implementation: The server navigates to multiple social media posts related to a trending topic, captures screenshots of comments sections using stealth mode, and then passes this data back through the MCP protocol for further processing by Claude Desktop.
For applications like Continue that require frequent testing of web interfaces under various conditions, the Stealth Browser MCP Server proves invaluable. It can simulate user actions such as form submissions or dynamic content interactions to ensure smooth performance across different devices and browsers.
Technical Implementation: The server runs automated tests on a web application by navigating through its interface while maintaining stealth mode. This helps in identifying potential issues that might not be evident during manual testing.
MCP clients such as Claude Desktop, Continue, Cursor, and more can integrate seamlessly with the Stealth Browser MCP Server to enhance their functionality. The compatibility matrix below outlines the support status for each client:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ (Tools Only) | ✅ | ❌ | Tools Only |
The Stealth Browser MCP Server has been tested against a variety of environments to ensure its reliability and compatibility. The performance metrics are as follows:
For advanced configurations, users can customize settings via environment variables and command-line arguments. An example configuration snippet is provided below:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Security is a significant concern, and the server includes various security features such as API key authentication, secure session handling, and regular audits to ensure data integrity.
Q: Can the Stealth Browser MCP Server be used with other AI applications? A: Absolutely! The server is designed to be compatible with a wide range of AI clients, including those not listed in the compatibility matrix, through minor modifications and configuration updates.
Q: How does this server handle resource-intensive tasks? A: While resource usage is moderate, it can be optimized by adjusting settings or using more powerful hardware for demanding operations.
Q: Are there any specific security measures implemented in the server? A: Yes, the server includes robust authentication mechanisms and regular security audits to ensure data integrity and user privacy.
Q: Can users access detailed logs of browsing activities? A: Detailed logs are available, but their visibility is restricted based on admin permissions for enhanced security.
Q: How frequently does this server need maintenance updates? A: Regular updates addressing performance optimizations and security patches are released every week to ensure the server stays robust against evolving threats.
Contributions to the Stealth Browser MCP Server are welcome from both developers and enthusiasts. To get started, you can:
Clone the Repository:
bun clone https://github.com/punkpeye/stealth-browser-mcp-server.git
Run Tests Locally:
bun test
Contribute Code or Join Issue Discussions: Use the issue tracker to report bugs, suggest features, and make bug fixes.
The Stealth Browser MCP Server is part of a larger ecosystem designed to support developers working with Model Context Protocol clients. For more information and resources, visit our documentation site and community forums:
By leveraging this server, developers can unlock new possibilities in AI application integration and expand their workflows to include stealth browsing capabilities.
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration