browser-mcp-claude

browser-mcp-claude

Enables remote browser automation via MCP, allowing models to open pages, read snapshots, click, fill, and select elements using Playwright, with built-in security restrictions against sensitive actions.

Category
Visit Server

README

Browser MCP for Claude and other models

هذا خادم MCP بعيد يوفّر أدوات متصفح عامة عبر Playwright وStreamable HTTP. لا يعتمد على Claude داخل الخادم؛ يمكن لأي عميل يدعم MCP عبر HTTPS استخدامه، بما في ذلك Claude، أو طبقة وسيطة تستعمل Gemini أو OpenAI أو نموذجًا محليًا.

الخادم يفتح الصفحات ويقرأها ويعبئ الحقول غير الحساسة، لكنه يمنع حقول كلمات المرور والملفات والإرسال النهائي وعمليات الدفع أو الحذف.

النشر على Replit

استورد هذا المستودع إلى Replit باستخدام Docker، ثم اختر Reserved VM أو خدمة تعمل باستمرار. أضف المتغيرات التالية في Secrets:

Key Value
MCP_AUTH_TOKEN رمز طويل عشوائي لمصادقة Claude مع الخادم
BROWSER_HEADLESS true
MAX_PAGE_TEXT 12000

لا تضع كلمات المرور أو رموز التحقق أو مفاتيح المواقع داخل GitHub أو الكود.

بعد النشر يصبح endpoint هو:

https://YOUR-REPL-DOMAIN/mcp

ويجب أن يكون عامًا عبر HTTPS؛ Claude يتصل بالخادم من بنية Anthropic السحابية، وليس من هاتفك المحلي.

ربط Claude Web

في Claude على الهاتف افتح Customize → Connectors → + → Add custom connector، وأدخل رابط /mcp. إذا طلبت الواجهة OAuth Client ID/Secret فلا تضع MCP_AUTH_TOKEN في تلك الخانات؛ هذه الخانات تخص OAuth. استخدم آلية المصادقة التي يعرضها Claude للحساب، أو نفّذ الربط عبر Claude API إذا كان الخادم يحتاج Bearer token مباشرًا.

بعد الإضافة فعّل الموصل في المحادثة من + → Connectors. ابدأ بأوامر قراءة فقط مثل فتح صفحة عامة وأخذ لقطة نصية. راجع كل طلب أداة قبل السماح به.

تعدد النماذج

خادم MCP لا يفرض نموذجًا. Claude أو Gemini أو OpenAI أو أي نموذج آخر يدعم MCP هو العميل الذي يقرر استدعاء الأدوات. يمكن تغيير النموذج دون تعديل Playwright أو خادم MCP.

أدوات الخادم

  • browser_open(url): فتح صفحة HTTP(S) عامة.
  • browser_snapshot(): قراءة الصفحة الحالية وعرض مراجع العناصر التفاعلية.
  • browser_click(ref): النقر على عنصر غير نهائي.
  • browser_fill(ref, value): تعبئة حقل نصي غير حساس.
  • browser_select(ref, label_or_value): اختيار عنصر من قائمة.
  • browser_back(): العودة صفحة واحدة.
  • browser_close(): إغلاق جلسة المتصفح.

القيود الأمنية

الخادم يرفض التشغيل إذا لم يكن MCP_AUTH_TOKEN مضبوطًا. يجب تشغيله خلف HTTPS عام، وتقييد الوصول إلى المواقع والبيانات بحسب الحاجة. لا تستخدمه لتجاوز CAPTCHA أو ضوابط المواقع، ولا تمنح Claude صلاحية تلقائية لعمليات شراء أو حذف أو إرسال. أضف OAuth حقيقيًا قبل استخدامه مع حسابات إنتاجية.

مراجع

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured