Mcp सर्वर प्लेयराइट Mcp सर्वर प्लेयराइट एक ऐसा प्लेटफॉर्म है जहाँ आप Minecraft के लिए अपने खुद के सर्वर बना सकते हैं। विशेषताएँ - कस्टमाइज़ेशन: आप अपने सर्वर को अपनी पसंद के अनुसार कस्टमाइज़ कर सकते हैं। - मल्टीप्लेयर: अपने दोस्तों के साथ मिलकर खेलें। - सुरक्षा: आपके सर्वर की सुरक्षा के लिए विभिन्न उपाय उपलब्ध हैं। कैसे शुरू करें 1. सर्वर सेटअप करें: पहले अपने सर्वर को सेटअप करें। 2. प्लगइन्स इंस्टॉल करें: अपनी आवश्यकताओं के अनुसार प्लगइन्स इंस्टॉल करें। 3. खेलना शुरू करें: अब आप और आपके दोस्त खेलना शुरू कर सकते हैं। सहायता यदि आपको किसी भी प्रकार की सहायता की आवश्यकता है, तो आप हमारे सहायता केंद्र से संपर्क कर सकते हैं।
MCP सर्वर ब्राउज़र स्वचालन के लिए Playwright का उपयोग करते हुए
सारांश
MCP-Server-Playwright क्या है?
MCP-Server-Playwright एक नवोन्मेषी सर्वर है जो Playwright का उपयोग करके ब्राउज़र स्वचालन के लिए डिज़ाइन किया गया है, जो एक शक्तिशाली पुस्तकालय है जो डेवलपर्स को विभिन्न ब्राउज़रों में वेब अनुप्रयोगों को स्वचालित करने की अनुमति देता है। यह प्रोजेक्ट विशेष रूप से परीक्षण और वेब स्क्रैपिंग के लिए उपयोगी है, जिससे उपयोगकर्ता उपयोगकर्ता इंटरैक्शन का अनुकरण कर सकते हैं और डेटा को कुशलता से एकत्र कर सकते हैं।
MCP-Server-Playwright की विशेषताएँ
- क्रॉस-ब्राउज़र समर्थन: MCP-Server-Playwright कई ब्राउज़रों का समर्थन करता है, जिसमें Chrome, Firefox और Safari शामिल हैं, यह सुनिश्चित करते हुए कि आपके स्वचालन स्क्रिप्ट विभिन्न वातावरणों में सुचारू रूप से चल सकें।
- आसान सेटअप: सर्वर को त्वरित स्थापना और कॉन्फ़िगरेशन के लिए डिज़ाइन किया गया है, जिससे यह सभी कौशल स्तरों के डेवलपर्स के लिए सुलभ है।
- मजबूत API: यह एक व्यापक API प्रदान करता है जो ब्राउज़र इंटरैक्शन पर विस्तृत नियंत्रण की अनुमति देता है, जिसमें नेविगेशन, तत्व चयन और इवेंट हैंडलिंग शामिल हैं।
- हेडलेस मोड: उपयोगकर्ता हेडलेस मोड में परीक्षण चला सकते हैं, जो CI/CD पाइपलाइनों और उन वातावरणों के लिए आदर्श है जहाँ ग्राफिकल इंटरफ़ेस उपलब्ध नहीं है।
- व्यापक दस्तावेज़ीकरण: प्रोजेक्ट के साथ विस्तृत दस्तावेज़ीकरण आता है, जिससे डेवलपर्स के लिए शुरू करना और सभी सुविधाओं का प्रभावी ढंग से उपयोग करना आसान हो जाता है।
MCP-Server-Playwright का उपयोग कैसे करें
- स्थापना: GitHub से रिपॉजिटरी को क्लोन करके शुरू करें:
git clone https://github.com/Automata-Labs-team/MCP-Server-Playwright.git cd MCP-Server-Playwright
- निर्भरताएँ: npm या yarn का उपयोग करके आवश्यक निर्भरताएँ स्थापित करें:
npm install
- सर्वर चलाना: निम्नलिखित कमांड के साथ सर्वर शुरू करें:
npm start
- स्वचालन स्क्रिप्ट बनाना: प्रदान किए गए API का उपयोग करके अपनी स्वचालन स्क्रिप्ट लिखें। यहाँ एक सरल उदाहरण है जो एक वेबपृष्ठ पर जाने के लिए है:
const { chromium } = require('playwright'); (async () => { const browser = await chromium.launch(); const page = await browser.newPage(); await page.goto('https://example.com'); await browser.close(); })();
- परीक्षण और डिबगिंग: अपने स्क्रिप्ट का परीक्षण करने और यह सुनिश्चित करने के लिए अंतर्निहित डिबगिंग उपकरणों का उपयोग करें कि वे अपेक्षित रूप से कार्य करते हैं।
अक्सर पूछे जाने वाले प्रश्न
Playwright क्या है?
Playwright एक ओपन-सोर्स स्वचालन पुस्तकालय है जिसे Microsoft द्वारा विकसित किया गया है जो डेवलपर्स को विभिन्न ब्राउज़रों में वेब अनुप्रयोगों को स्वचालित करने की अनुमति देता है। यह आधुनिक वेब ऐप सुविधाओं का समर्थन करता है और ब्राउज़र इंटरैक्शन के लिए एक समृद्ध API प्रदान करता है।
क्या मैं MCP-Server-Playwright का उपयोग वेब स्क्रैपिंग के लिए कर सकता हूँ?
हाँ, MCP-Server-Playwright वेब स्क्रैपिंग कार्यों के लिए अच्छी तरह से उपयुक्त है। इसके ब्राउज़र क्रियाओं को स्वचालित करने की क्षमता इसे वेब पृष्ठों से डेटा निकालना आसान बनाती है।
क्या MCP-Server-Playwright का उपयोग मुफ्त है?
बिल्कुल! MCP-Server-Playwright ओपन-सोर्स है और किसी भी व्यक्ति द्वारा उपयोग, संशोधित और MIT लाइसेंस के तहत वितरित किया जा सकता है।
मैं प्रोजेक्ट में कैसे योगदान कर सकता हूँ?
योगदान का स्वागत है! आप GitHub रिपॉजिटरी पर मुद्दे, फीचर अनुरोध या पुल अनुरोध सबमिट करके योगदान कर सकते हैं। अधिक विवरण के लिए कृपया दस्तावेज़ में योगदान दिशानिर्देशों को देखें।
मुझे दस्तावेज़ीकरण कहाँ मिलेगा?
MCP-Server-Playwright का दस्तावेज़ीकरण रिपॉजिटरी में उपलब्ध है। आप इसे सीधे यहाँ एक्सेस कर सकते हैं।
विवरण
<a href="https://glama.ai/mcp/servers/9q4zck8po5"><img width="380" height="200" src="https://glama.ai/mcp/servers/9q4zck8po5/badge" alt="MCP-Server-Playwright MCP server" /></a>
Table of Contents
Features
- 🌐 Full browser automation capabilities
- 📸 Screenshot capture of entire pages or specific elements
- 🖱️ Comprehensive web interaction (navigation, clicking, form filling)
- 📊 Console log monitoring
- 🔧 JavaScript execution in browser context
Installation
Installing via Smithery
To install MCP Server Playwright for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude
You can install the package using either npx or mcp-get:
Using npx:
npx @automatalabs/mcp-server-playwright install
This command will:
- Check your operating system compatibility (Windows/macOS)
- Create or update the Claude configuration file
- Configure the Playwright server integration
The configuration file will be automatically created/updated at:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Using mcp-get:
npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright
Configuration
The installation process will automatically add the following configuration to your Claude config file:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@automatalabs/mcp-server-playwright"]
}
}
}
Using with Cursor
You can also use MCP Server Playwright with Cursor, an AI-powered code editor. To enable browser automation in Cursor via MCP:
-
Install Playwright browsers (if not already):
npx playwright install
-
Install MCP Server Playwright for Cursor using Smithery:
npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client cursor
-
Configuration file setup:
If you do not use Claude, the configuration file (claude_desktop_config.json
) may not be created automatically.- On Windows, create a folder named
Claude
in%APPDATA%
(usuallyC:\Users\<YourName>\AppData\Roaming\Claude
). - Inside that folder, create a file named
claude_desktop_config.json
with the following content:
{ "serverPort": 3456 }
- On Windows, create a folder named
-
Follow the remaining steps in the Installation section above to complete the setup.
Now, you can use all the browser automation tools provided by MCP Server Playwright directly from Cursor’s AI features, such as web navigation, screenshot capture, and JavaScript execution.
Note: Make sure you have Node.js installed and
npx
available in your system PATH.
Components
Tools
browser_navigate
Navigate to any URL in the browser
{
"url": "https://stealthbrowser.cloud"
}
browser_screenshot
Capture screenshots of the entire page or specific elements
{
"name": "screenshot-name", // required
"selector": "#element-id", // optional
"fullPage": true // optional, default: false
}
browser_click
Click elements on the page using CSS selector
{
"selector": "#button-id"
}
browser_click_text
Click elements on the page by their text content
{
"text": "Click me"
}
browser_hover
Hover over elements on the page using CSS selector
{
"selector": "#menu-item"
}
browser_hover_text
Hover over elements on the page by their text content
{
"text": "Hover me"
}
browser_fill
Fill out input fields
{
"selector": "#input-field",
"value": "Hello World"
}
browser_select
Select an option in a SELECT element using CSS selector
{
"selector": "#dropdown",
"value": "option-value"
}
browser_select_text
Select an option in a SELECT element by its text content
{
"text": "Choose me",
"value": "option-value"
}
browser_evaluate
Execute JavaScript in the browser console
{
"script": "document.title"
}
Resources
-
Console Logs (
console://logs
)- Access browser console output in text format
- Includes all console messages from the browser
-
Screenshots (
screenshot://<n>
)- Access PNG images of captured screenshots
- Referenced by the name specified during capture
License
This project is licensed under the MIT License - see the LICENSE file for details.
सर्वर कॉन्फ़िगरेशन
{
"mcpServers": {
"mcp-server-playwright": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--automata-labs-team--mcp-server-playwright--mcp-server-playwright",
"node dist/index.js"
],
"env": {}
}
}
}