Skip to main content
Glama
Googlebot Simulator MCP

Googlebot Simulator MCP

Googlebot Simulator MCP

An MCP server that simulates Googlebot crawling pages and captures analytics events. Use this to verify your site's bot detection and analytics tracking work correctly.

Features

  • Authentic Googlebot User-Agents: Uses real Googlebot desktop and mobile user-agent strings

  • Idle Detection Simulation: Mimics Googlebot's requestIdleCallback-based idle detection

  • Event Interception: Captures analytics/tracking requests matching your pattern

  • Detailed Reporting: Returns timing info, captured payloads, and screenshots

Related MCP server: ai-visibility-mcp

Installation

Add to Claude Code

claude mcp add googlebot-sim -- npx googlebot-simulator-mcp

Or add to .claude.json

{
  "mcpServers": {
    "googlebot-sim": {
      "type": "stdio",
      "command": "npx",
      "args": ["googlebot-simulator-mcp"]
    }
  }
}

From source

git clone https://github.com/RichardDillman/googlebot-simulator-mcp.git
cd googlebot-simulator-mcp
npm install
npm run build

Usage

Once added to Claude, you can use natural language:

"Test https://example.com/jobs as Googlebot, watching for requests containing 'page_viewed'"

Or be more specific:

"Simulate mobile Googlebot on https://talent.com/jobs, capture events to **/serp-event-producer/send"

Tool: simulate_googlebot

Input

{
  // Required: URL(s) to test
  urls: string | string[];

  // Required: Pattern to match analytics events
  eventPattern: {
    urlPattern?: string;    // e.g., "**/analytics/**"
    bodyContains?: string;  // e.g., "page_viewed"
  };

  // Optional configuration
  options?: {
    userAgent?: "desktop" | "mobile";  // Default: "desktop"
    idleTimeout?: number;              // Default: 5000ms
    maxWaitTime?: number;              // Default: 10000ms
    captureScreenshot?: boolean;       // Default: true
    screenshotDir?: string;            // Default: cwd
  };
}

Output

{
  results: Array<{
    url: string;
    success: boolean;              // true if matching event was captured
    eventsFired: Array<{
      timestamp: number;
      url: string;
      method: string;
      payload: object;
      matchedPattern: boolean;
      responseStatus?: number;
    }>;
    timing: {
      navigationStart: number;
      domContentLoaded: number;
      idleDetected: number;
      totalTime: number;
      firstIdleCallback?: number;
    };
    screenshot?: string;           // Path to screenshot file
    errors: string[];
    idleCallbacksObserved: number;
  }>;
  summary: {
    totalUrls: number;
    passed: number;
    failed: number;
    totalEventsCaptured: number;
  };
}

Example Output

{
  "results": [
    {
      "url": "https://talent.com/jobs",
      "success": true,
      "eventsFired": [
        {
          "timestamp": 1704825600000,
          "url": "https://events.talent.com/serp-event-producer/send",
          "method": "POST",
          "payload": {
            "event_type": "page_viewed_bot",
            "bot_type": "google",
            "page_name": "serp"
          },
          "matchedPattern": true,
          "responseStatus": 200
        }
      ],
      "timing": {
        "navigationStart": 1704825595000,
        "domContentLoaded": 1704825596500,
        "idleDetected": 1704825600000,
        "totalTime": 5000,
        "firstIdleCallback": 3200
      },
      "screenshot": "/tmp/googlebot_desktop_jobs_1704825600000.png",
      "errors": [],
      "idleCallbacksObserved": 3
    }
  ],
  "summary": {
    "totalUrls": 1,
    "passed": 1,
    "failed": 0,
    "totalEventsCaptured": 1
  }
}

How It Works

  1. Launches headless Chromium with Googlebot user-agent and viewport settings

  2. Injects tracking script to monitor requestIdleCallback usage

  3. Sets up network interception to capture matching requests

  4. Navigates to URL and waits for page to reach idle state

  5. Captures screenshot at the "idle" moment (what Googlebot sees)

  6. Returns detailed report with all captured events and timing

Use Cases

  • Verify bot detection: Ensure your analytics correctly identifies Googlebot

  • Test event timing: Confirm events fire before Googlebot's idle timeout

  • Debug rendering: See what content is visible when Googlebot considers the page "done"

  • Compare desktop vs mobile: Test both Googlebot variants

License

MIT

Available Tools

1 tool
simulate_googlebotA

Simulate Googlebot crawling a page and capture analytics events.

This tool:

  • Uses authentic Googlebot user-agent strings

  • Simulates Googlebot's idle detection behavior (requestIdleCallback)

  • Intercepts and captures network requests matching your pattern

  • Returns detailed timing, events captured, and optional screenshots

Use this to verify:

  • Analytics pageview events fire correctly for bots

  • Bot detection is working (e.g., page_viewed vs page_viewed_bot)

  • Content is rendered correctly at the "idle" state

  • Timing of event firing relative to page load

Inputs: urls (required), eventPattern (required), options.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The tool's purpose is clearly distinct by default.

    Naming Consistency5/5

    The single tool name 'simulate_googlebot' follows a clear verb_noun pattern and is descriptive. With only one tool, there are no naming inconsistencies.

    Tool Count3/5

    One tool is on the low end, but it is well-scoped to a specific use case (simulating Googlebot). It feels slightly thin but not inappropriate for its narrow domain.

    Completeness4/5

    The tool covers the main aspects of simulating Googlebot crawling (user-agent, idle detection, event capture, timing, screenshots). No obvious gaps for its stated purpose, though it is a single tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Audits AI-bot visibility: robots.txt per-bot for 22 AI user-agents (GPTBot/ClaudeBot/PerplexityBot/etc), Cloudflare flags, JSON-LD, sitemap, llms.txt, SPA shell, plus cross-model brand mentions via Perplexity + OpenRouter. 0-100 score. SSRF-guarded, spend-capped.
      4
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables JavaScript-rendered Google searches and readable text extraction from public URLs via a real Chrome instance, along with health and CAPTCHA status monitoring.
      3
      69
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables a coding agent to audit any public page the way search engines and AI crawlers see it, including per-crawler robots.txt rules, CDN/firewall blocks, and no-JavaScript content. It returns a prioritized fix pack showing where each fix belongs in the codebase plus a command to verify it, so the agent can apply the changes, flag human-only settings, and re-run the audit to confirm.
      MIT