https://github.com/AgentDeskAI/browser-tools-mcp
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
https://github.com/AgentDeskAI/browser-tools-mcp
ai anthropic cursor mcp mcp-server
Last synced: about 1 year ago
JSON representation
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
- Host: GitHub
- URL: https://github.com/AgentDeskAI/browser-tools-mcp
- Owner: AgentDeskAI
- License: mit
- Created: 2025-02-10T09:20:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T20:05:01.000Z (about 1 year ago)
- Last Synced: 2025-03-01T20:42:58.155Z (about 1 year ago)
- Topics: ai, anthropic, cursor, mcp, mcp-server
- Language: JavaScript
- Homepage: https://agentdesk.ai/
- Size: 69.3 KB
- Stars: 383
- Watchers: 5
- Forks: 39
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-claude-code - AgentDeskAI/browser-tools-mcp - tools-mcp?style=flat-square&logo=github) | Browser console logs, network, errors monitoring | (MCP Ecosystem / Servers)
- awesome-github-projects - browser-tools-mcp - Monitor browser logs directly from Cursor and other MCP compatible IDEs. ⭐7,208 `JavaScript` ⚡ (🤖 AI & Machine Learning)
- awesome-mcp-servers - **browser-tools-mcp** - Monitor browser logs directly from Cursor and other MCP compatible IDEs. `javascript` `ai` `anthropic` `cursor` `mcp` `npm install AgentDeskAI/browser-tools-mcp` (🤖 AI/ML)
- awesome-mcp - AgentDeskAI/browser-tools-mcp - BrowserTools MCP is a powerful browser monitoring and interaction tool that leverages the Model Context Protocol to enable AI-powered applications to capture and analyze browser data directly within MCP-compatible IDEs. (MCP Servers / Browser Automation)
- StarryDivineSky - AgentDeskAI/browser-tools-mcp - tools-mcp项目是一个旨在直接从Cursor和其他MCP兼容的IDE中监控浏览器日志的工具。它允许开发者在IDE内部实时查看和分析浏览器控制台输出,无需离开开发环境即可进行调试。该工具的核心功能是与MCP(Monitor, Control, and Plan)协议兼容,这意味着它可以集成到支持该协议的各种IDE中。通过该工具,开发者可以更方便地追踪JavaScript错误、网络请求以及其他浏览器活动,从而提高开发效率和问题排查速度。该项目的主要目标是简化Web应用程序的调试流程,提供更集成的开发体验。它利用MCP协议的强大功能,将浏览器日志信息无缝地引入到IDE界面中,方便开发者进行实时监控和分析。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- metorial-index - browser-tools-mcp - Monitors browser logs and analyzes browser data through a Chrome extension, enabling AI applications to enhance their interaction capabilities within a browsing context. (Data Analytics)
- toolsdk-mcp-registry - ✅ @agentdeskai/browser-tools-mcp - powered browser tools integration. This server works in conjunction with the Browser Tools Server to provide AI capabilities for browser debugging and analysis. (14 tools) (node) (Browser Automation / How to Submit)
- awesome-mcp-lists - GitHub
- awesome - AgentDeskAI/browser-tools-mcp - Monitor browser logs directly from Cursor and other MCP compatible IDEs. (JavaScript)
- awesome - AgentDeskAI/browser-tools-mcp - Monitor browser logs directly from Cursor and other MCP compatible IDEs. (JavaScript)
- awesome-mcp - AgentDeskAI/browser-tools-mcp - tools-mcp?style=social) <img src="https://cdn.simpleicons.org/javascript/F7DF1E" width="16" height="16"/> <img src="https://cdn.simpleicons.org/typescript/3178C6" width="16" height="16"/> <img src="https://cdn.simpleicons.org/homeassistant/41BDF5" width="16" height="16"/> <img src="https://cdn.simpleicons.org/apple/999" width="16" height="16"/> <img src="https://cdn.simpleicons.org/windows/999" width="16" height="16"/> <img src="https://cdn.simpleicons.org/linux/999" width="16" height="16"/> - 浏览器监控和交互MCP服务器,集成Chrome扩展功能。捕获控制台日志、网络流量、屏幕截图,并提供SEO、性能和可访问性审计,使AI助手能够直接从MCP客户端与网页内容交互。 (服务器实现 / 系统与硬件)
README
# BrowserTools MCP
> Make your AI tools 10x more aware and capable of interacting with your browser
This application is a powerful browser monitoring and interaction tool that enables AI-powered applications via Anthropic's Model Context Protocol (MCP) to capture and analyze browser data through a Chrome extension.
Read our [docs](https://browsertools.agentdesk.ai/) for the full installation, quickstart and contribution guides.
## Updates
v1.1.0 is out! This includes several bug fixes for logging + screenshots.
Please make sure to update the version in your IDE / MCP client as so:
`npx @agentdeskai/browser-tools-mcp@1.1.0`
Also make sure to download the latest version of the chrome extension here:
[v1.1.0 BrowserToolsMCP Chrome Extension](https://github.com/AgentDeskAI/browser-tools-mcp/releases/download/v1.1.0/chrome-extension-v1-1-0.zip)
From there you can run the local node server as usual like so:
`npx @agentdeskai/browser-tools-server`
And once you've opened your chrome dev tools, logs should be getting sent to your server!
If you have any questions or issues, feel free to open an issue ticket! And if you have any ideas to make this better, feel free to reach out or open an issue ticket with an enhancement tag or reach out to me at [@tedx_ai on x](https://x.com/tedx_ai)
## Architecture
There are three core components all used to capture and analyze browser data:
1. **Chrome Extension**: A browser extension that captures screenshots, console logs, network activity and DOM elements.
2. **Node Server**: An intermediary server that facilitates communication between the Chrome extension and any instance of an MCP server.
3. **MCP Server**: A Model Context Protocol server that provides standardized tools for AI clients to interact with the browser.
```
┌─────────────┐ ┌──────────────┐ ┌───────────────┐ ┌─────────────┐
│ MCP Client │ ──► │ MCP Server │ ──► │ Node Server │ ──► │ Chrome │
│ (e.g. │ ◄── │ (Protocol │ ◄── │ (Middleware) │ ◄── │ Extension │
│ Cursor) │ │ Handler) │ │ │ │ │
└─────────────┘ └──────────────┘ └───────────────┘ └─────────────┘
```
Model Context Protocol (MCP) is a capability supported by Anthropic AI models that
allow you to create custom tools for any compatible client. MCP clients like Claude
Desktop, Cursor, Cline or Zed can run an MCP server which "teaches" these clients
about a new tool that they can use.
These tools can call out to external APIs but in our case, **all logs are stored locally** on your machine and NEVER sent out to any third-party service or API. BrowserTools MCP runs a local instance of a NodeJS API server which communicates with the BrowserTools Chrome Extension.
All consumers of the BrowserTools MCP Server interface with the same NodeJS API and Chrome extension.
#### Chrome Extension
- Monitors XHR requests/responses and console logs
- Tracks selected DOM elements
- Sends all logs and current element to the BrowserTools Connector
- Connects to Websocket server to capture/send screenshots
- Allows user to configure token/truncation limits + screenshot folder path
#### Node Server
- Acts as middleware between the Chrome extension and MCP server
- Receives logs and currently selected element from Chrome extension
- Processes requests from MCP server to capture logs, screenshot or current element
- Sends Websocket command to the Chrome extension for capturing a screenshot
- Intelligently truncates strings and # of duplicate objects in logs to avoid token limits
- Removes cookies and sensitive headers to avoid sending to LLMs in MCP clients
#### MCP Server
- Implements the Model Context Protocol
- Provides standardized tools for AI clients
- Compatible with various MCP clients (Cursor, Cline, Zed, Claude Desktop, etc.)
## Installation
Installation steps can be found in our documentation:
- [BrowserTools MCP Docs](https://browsertools.agentdesk.ai/)
## Usage
Once installed and configured, the system allows any compatible MCP client to:
- Monitor browser console output
- Capture network traffic
- Take screenshots
- Analyze selected elements
- Wipe logs stored in our MCP server
## Compatibility
- Works with any MCP-compatible client
- Primarily designed for Cursor IDE integration
- Supports other AI editors and MCP clients