MCP (Model Context Protocol) server for browser tools integration
npm install @agentdeskai/browser-tools-mcpA Model Context Protocol (MCP) server that provides AI-powered browser tools integration. This server works in conjunction with the Browser Tools Server to provide AI capabilities for browser debugging and analysis.
- MCP protocol implementation
- Browser console log access
- Network request analysis
- Screenshot capture capabilities
- Element selection and inspection
- Real-time browser state monitoring
- Accessibility, performance, SEO, and best practices audits
- Node.js 14 or higher
- Browser Tools Server running
- Chrome or Chromium browser installed (required for audit functionality)
``bash`
npx @agentdeskai/browser-tools-mcp
Or install globally:
`bash`
npm install -g @agentdeskai/browser-tools-mcp
1. First, make sure the Browser Tools Server is running:
`bash`
npx @agentdeskai/browser-tools-server
2. Then start the MCP server:
`bash`
npx @agentdeskai/browser-tools-mcp
3. The MCP server will connect to the Browser Tools Server and provide the following capabilities:
- Console log retrieval
- Network request monitoring
- Screenshot capture
- Element selection
- Browser state analysis
- Accessibility and performance audits
The server provides the following MCP functions:
- mcp_getConsoleLogs - Retrieve browser console logsmcp_getConsoleErrors
- - Get browser console errorsmcp_getNetworkErrors
- - Get network error logsmcp_getNetworkSuccess
- - Get successful network requestsmcp_getNetworkLogs
- - Get all network logsmcp_getSelectedElement
- - Get the currently selected DOM elementmcp_runAccessibilityAudit
- - Run a WCAG-compliant accessibility auditmcp_runPerformanceAudit
- - Run a performance auditmcp_runSEOAudit
- - Run an SEO auditmcp_runBestPracticesAudit` - Run a best practices audit
-
This server is designed to work with AI tools and platforms that support the Model Context Protocol (MCP). It provides a standardized interface for AI models to interact with browser state and debugging information.
MIT