Skip to main content
Glama
fveiraswww

xfactor

by fveiraswww

xfactor

MCP server that connects AI agents to browser DevTools via CDP (Chrome DevTools Protocol).

Give your AI agent real-time access to browser console logs, network requests, and page state.

Features

  • Real-time console logs capture (errors, warnings, info, debug)

  • Network request/response monitoring

  • Page state (URL, title, viewport)

  • Works with any AI agent that supports MCP (Claude, etc.)

Related MCP server: chrome-dev-mcp

Quick Start

# Install dependencies
pnpm install

# Start the server (spawns Chrome + MCP server)
pnpm dev

Connect to your AI Agent

The server runs on http://localhost:3001 by default.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "xfactor": {
      "url": "http://localhost:3001/mcp"
    }
  }
}

Other Agents

Point your MCP client to: http://localhost:3001/mcp

Available Tools

get_browser_context

Get browser state including console logs and network requests.

{
  "includePageState": true,
  "includeLogs": true,
  "includeRequests": true
}

Returns:

  • status - Connection status, CDP port, attached pages

  • pageState - Current URL, title, viewport

  • consoleLogs - Array of captured console messages

  • networkRequests - Array of captured network requests

refresh_browser

Refresh the page to capture logs from page load.

{
  "clearLogs": true
}

Configuration

Environment Variables

  • CDP_PORT - Chrome DevTools Protocol port (default: 9222)

  • TARGET_URL - URL to monitor (default: localhost:3000)

xmcp.config.ts

const config: XmcpConfig = {
  http: { port: 3001 },
  // ... other options
};

How It Works

  1. pnpm dev spawns a Chrome instance with remote debugging enabled

  2. MCP server connects to Chrome via CDP

  3. CDP listeners capture console logs and network activity

  4. AI agents query the captured data via MCP tools

Requirements

  • Node.js >= 20

  • Google Chrome installed

  • pnpm

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    An MCP server that connects AI agents to a running Chrome tab via the Chrome DevTools Protocol (CDP), enabling runtime debugging and page inspection.
    21
    37
    1
    ISC
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    MCP server that connects AI agents to a real Chrome browser via a WebSocket extension bridge, enabling over 40 browser control tools without debug mode or profile isolation.
    -
  • A
    license
    B
    quality
    A
    maintenance
    A lightweight 30KB MCP browser automation server that uses raw Chrome DevTools Protocol to enable AI agents to browse the web, take screenshots, interact with elements, and capture live page events like console logs and network requests.
    26
    26
    15
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fveiraswww/xfact'

If you have feedback or need assistance with the MCP directory API, please join our Discord server