شعار MCP Browser Kit

MCP Browser Kit

المجتمع
ndthanhdev

An MCP Server that enables AI assistants to interact with your local browsers.

الناشرndthanhdev
المستودعmcp-browser-kit
اللغةTypeScript
التفريعات
10
النجوم
54
الأدوات المتاحة
11
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح MCP Browser Kit إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 11

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

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 54، والنسخ المتفرعة: 10 في المستودع المرتبط.

MCP Browser Kit

NPM Version Firefox Add-on Chrome Web Store Workspace Updated Checked with Biome Trust Score

mcp-browser-kit MCP server

🚀 On the main branch? You're viewing the bleeding-edge dev docs! For other versions, check out the release/* branches.

An MCP Server that enables AI assistants to interact with your local browsers.

https://github.com/user-attachments/assets/1fbf87fd-06d1-42bf-a06f-cc2bbdf375a8

Usage

  1. Add MCP Browser Kit to your MCP Client:

    json
    {
    	"mcpServers": {
    		"browser-kit": {
    			"command": "npx",
    			"args": ["@mcp-browser-kit/server@latest"]
    		}
    	}
    }

    By default the server use stdio transport, alternatively you can use http transport:

    bash
    npx @mcp-browser-kit/server@latest --transport http
    # optional flags (defaults shown):
    #   --http-host 127.0.0.1
    #   --http-port 21082

    Then point your MCP client at the URL instead of a command:

    json
    {
    	"mcpServers": {
    		"browser-kit": {
    			"url": "http://127.0.0.1:21082/mcp"
    		}
    	}
    }

    Security: there's no auth yet, so --http-host defaults to 127.0.0.1 (loopback only). Only pass --http-host 0.0.0.0 (or a LAN address) if you understand that anyone who can reach that host/port can control your browser.

  2. Choose the right extension build for your browser:

    • Check the Compatibility table below to see which build (M2 or M3) is compatible with your browser
    • Note that M2 builds offer more functionality than M3 builds, so prefer M2 if your browser supports both
  3. Download the latest compatible build from The Latest Release.

  4. Load the extension into a compatible browser and enable it.

  5. Refresh open tabs to ensure extension scripts are loaded.

  6. Start messaging on your MCP Client:

    Use browser-kit, star the last open GitHub repo on my browser
  7. Optional, check User Notes for more information.

Compatibility table

The M2 build supports more functionalities than the M3 build. Extension file name patterns:

  • M2 build:
    • Chromium: mcp_browser_kit_m2-<version>.zip (e.g., mcp_browser_kit_m2-5.0.0.zip)
    • Firefox: mcp_browser_kit_m2-<version>.xpi (e.g., mcp_browser_kit_m2-5.0.0.xpi)
  • M3 build: mcp_browser_kit_m3-<version>.zip (e.g., mcp_browser_kit_m3-5.0.0.zip)
BrowserM2 buildM3 build
Chrome❌✅
Brave✅✅
Edge✅✅
Firefox✅❌
Safari✅❌

Load Extension

  • Chromium-based browsers (Chrome, Brave, Edge)
    1. Unzip the downloaded .zip file
    2. Open chrome://extensions/
    3. Enable Developer mode
    4. Click Load unpacked
    5. Select the unpacked extension folder
  • Firefox
    1. Open about:addons
    2. Click the gear icon and select Install Add-on From File
    3. Select the downloaded .xpi file
  • Safari
    1. Unzip the downloaded .zip file
    2. Open Develop > Show Extension Builder
    3. Click + and select Add Extension
    4. Select the unpacked extension folder
    5. Click Install to install the extension

User Notes

Note for Alpha stage: Consider using a separate browser profile or dedicated browser instance with this MCP to prevent sensitive data from being unintentionally exposed to AI model providers.

Security: BrowserKit currently lacks authentication for incoming requests. Keep ports 21082 and 2769-2799 on your device network only.

Hosted deployment

A hosted deployment is available on Fronteir AI.

التثبيت

TypingMind
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "@mcp-browser-kit/server"
      ]
    }
  }
}

الأدوات المتاحة

  • getBasicBrowserContext

    🌐 GET BROWSER CONTEXT - CRITICAL FIRST STEP BEFORE USING ANY OTHER TOOLS!

    • This tool MUST be called first to initialize browser automation and get essential data.
    • Returns data structure with:
      • tabs: Array of browser tabs with properties like id, url, title, and active status
      • manifestVersion: Version of extension manifest format supported by the browser
    • Each tab includes a unique tabId required for all other tool operations
    • The active tab (marked with 'active: true') is typically your target for automation
    • The manifestVersion determines which browser features and extension capabilities are available
    • Different browsers support different manifest versions, affecting available tools and API access
    • Standard workflow:
      1. getBasicBrowserContext → get browser state and tabId
      2. Analyze page content based on your goal and manifest version:
        • If interaction is required (clicking, filling forms, etc.): · For Manifest Version 2: Use captureActiveTab for visual
  • captureActiveTab

    📷 Captures a screenshot of the active browser tab

    • Use this tool after calling getBasicBrowserContext to obtain visual context of the current page
    • The screenshot helps you see what the browser is displaying to the user
    • No parameters are needed as it automatically captures the active tab
    • Returns an image with width, height, and data in base64 format
    • Workflow: 1) getBasicBrowserContext → 2) captureActiveTab → 3) interact with elements
    • NOTE: This feature is only available in browsers supporting Manifest Version 2
  • getInnerText

    📝 Extracts all text content from the current web page

    • Retrieves all visible text from the active tab
    • Requires the tabId obtained from getBasicBrowserContext
    • Use this to analyze the page content without visual elements
    • Returns a string containing all the text on the page
    • Useful for getting a quick overview of page content
  • getReadableElements

    🔍 Lists all interactive elements on the page with their text

    • Returns a list of elements with their index, HTML tag, and text content
    • Requires the tabId obtained from getBasicBrowserContext
    • Each element is returned as [index, tag, text]
    • Use the index to interact with elements through click or fill operations
    • Helps you identify which elements can be interacted with by their text
  • clickOnViewableElement

    👆 Clicks on an element at specific X,Y coordinates

    • Use this to click on elements by their position on the screen
    • Requires tabId from getBasicBrowserContext and x,y coordinates from the screenshot
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • Useful when you know the visual position of an element
    • Parameters: tabId, x, y
  • fillTextToViewableElement

    ⌨️ Types text into an input field at specific X,Y coordinates

    • Use this to enter text into form fields by their position
    • Requires tabId from getBasicBrowserContext, x,y coordinates, and the text to enter
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • First clicks at the specified position, then types the provided text
    • After filling text, check for associated submit-like buttons (submit, search, send, etc.)
    • If submit button is visible, use clickOnViewableElement with that button
    • If no submit button is visible, use hitEnterOnViewableElement instead
    • Parameters: tabId, x, y, value (text to enter)
  • hitEnterOnViewableElement

    ↵ Hits the Enter key on an element at specific X,Y coordinates

    • Use this to trigger actions like form submission or button clicks
    • Requires tabId from getBasicBrowserContext and x,y coordinates from the screenshot
    • Coordinates are based on the captureActiveTab screenshot dimensions
    • Parameters: tabId, x, y
  • clickOnReadableElement

    🔘 Clicks on an element identified by its index from getReadableElements

    • Use this to click on elements after identifying them by their text
    • Requires tabId from getBasicBrowserContext and index from getReadableElements
    • More reliable than coordinate-based clicking for dynamic layouts
    • First call getReadableElements to get the index, then use this tool
    • Parameters: tabId, index
  • fillTextToReadableElement

    ✏️ Types text into an input field identified by its index from getReadableElements

    • Use this to enter text into form fields identified by their text
    • Requires tabId from getBasicBrowserContext, index from getReadableElements, and text to enter
    • Works with text inputs, textareas, and other editable elements
    • First call getReadableElements to get the index, then use this tool
    • After filling text, check for associated submit-like buttons (submit, search, send, etc.)
    • If submit button is visible, use clickOnReadableElement with that button
    • If no submit button is visible, use hitEnterOnReadableElement instead
    • Parameters: tabId, index, value (text to enter)
  • hitEnterOnReadableElement

    ↵ Hits the Enter key on an element identified by its index from getReadableElements

    • Use this to trigger actions like form submission or button clicks
    • Requires tabId from getBasicBrowserContext and index from getReadableElements
    • More reliable than coordinate-based clicking for dynamic layouts
    • First call getReadableElements to get the index, then use this tool
    • Parameters: tabId, index
  • invokeJsFn

    ⚙️ Executes custom JavaScript code in the context of the web page

    • Use this for advanced operations not covered by other tools
    • Requires tabId from getBasicBrowserContext and JavaScript code to execute
    • The code should be the body of a function that returns a value
    • Example: 'return document.title;' to get the page title
    • Gives you full flexibility for custom browser automation
    • Parameters: tabId, fnBodyCode (JavaScript code as string)
    • NOTE: This feature is only available in browsers supporting Manifest Version 2

استخدم MCP الخاص بـ MCP Browser Kit مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل MCP Browser Kit، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف MCP Browser Kit كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ MCP Browser Kit.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "mcp-browser-kit": {
      "command": "npx",
      "args": [
        "-y",
        "root"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ MCP Browser Kit، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ MCP Browser Kit.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام MCP Browser Kit لمساعدتي في هذه المهمة؟
MCP Browser Kit
بالتأكيد. قرأته.
إليك ما وجدته باستخدام MCP Browser Kit.

الأسئلة الشائعة

ما استخدامات خادم MCP MCP Browser Kit؟

MCP Browser Kit هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP MCP Browser Kit مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام MCP Browser Kit مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP MCP Browser Kit مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل MCP Browser Kit، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP MCP Browser Kit بـ TypingMind؟

يعمل MCP Browser Kit عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP MCP Browser Kit في TypingMind؟

يتيح MCP Browser Kit أدوات MCP بعدد 11، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP MCP Browser Kit؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان MCP Browser Kit يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇