Cover image

3 years

Works with Finder

1

Github Watches

1

Github Forks

1

Github Stars

Google Search MCP

Model Context Protocol server for google search. A Playwright-based Model Context Protocol (MCP) tool that bypasses search engine anti-bot mechanisms, performs Google searches, and extracts results, providing real-time search capabilities for AI assistants like Claude and Cursor.

Features

  • Anti-Bot Bypass: Uses browser fingerprint spoofing and real user behavior simulation to avoid detection
  • Automatic CAPTCHA Handling: Switches to headed mode when encountering CAPTCHAs, allowing users to complete verification
  • State Persistence: Saves browser session state to reduce the need for repeated verification
  • Adaptability: Uses multiple selector combinations to adapt to changes in Google search pages
  • MCP Integration: Implements the Model Context Protocol for easy integration with AI assistants
  • Multi-language Support: Supports search results in different languages and regions

Using with Cursor

Installation - Globally

Run the MCP server using npx:

npx -y @mcp-server/google-search-mcp@latest

In your Cursor IDE

  1. Go to Cursor Settings > MCP
  2. Click + Add New MCP Server
  3. Fill in the form:
    • Name: google-search (or any name you prefer)
    • Type: command
    • Command: npx -y @mcp-server/google-search-mcp@latest

Installation - Project-specific

Add an .cursor/mcp.json file to your project:

{
  "mcpServers": {
    "google-search": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-server/google-search-mcp@latest"
      ]
    }
  }
}

Development

yarn install

Build the project

yarn build

Usage

Running as an MCP Server

yarn start

Using with MCP Inspector

To debug the server, you can use the MCP Inspector:

# First build the project
yarn build

# Start the MCP Inspector and server
npx @modelcontextprotocol/inspector node dist/index.js

Parameters

The search tool accepts the following parameters:

  • query (required): Search query string
  • limit (optional): Number of search results to return, default is 10
  • timeout (optional): Search operation timeout in milliseconds, default is 60000
  • language (optional): Language for search results, e.g., zh-CN, en-US, default is zh-CN
  • region (optional): Region for search results, e.g., cn, com, co.jp, default is cn

How It Works

  1. The tool uses Playwright to control a Chromium browser to perform Google searches
  2. It avoids bot detection through browser fingerprint spoofing and real user behavior simulation
  3. When encountering CAPTCHA verification, it automatically switches to headed mode for user completion
  4. It extracts search results and returns them in a structured format
  5. It saves browser state for reuse in subsequent searches

Advanced Configuration

Browser State File

By default, the browser state is saved in the .google-search-browser-state.json file in the user's home directory. You can modify this path through parameters.

Language and Region Settings

You can specify the language and region for search results through parameters:

// English (US) search results
"language": "en-US", "region": "com"

// Japanese search results
"language": "ja-JP", "region": "co.jp"

// Chinese (Simplified) search results
"language": "zh-CN", "region": "cn"

Notes

  • On first use, if you encounter CAPTCHA verification, the system will automatically switch to headed mode for you to complete the verification
  • After verification, the system will save the state file, making subsequent searches smoother
  • Overly frequent search requests may trigger Google's rate limiting mechanisms
  • This tool is for learning and research purposes only, please comply with Google's terms of service

License

MIT

Disclaimer

This tool is for learning and research purposes only. When using this tool to access Google or other search engines, please comply with relevant terms of service and legal regulations. The author is not responsible for any issues resulting from the use of this tool.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

    Reviews

    3 (1)
    Avatar
    user_HSu8rHGa
    2025-04-16

    As a dedicated user of google-search-mcp by modelcontextprotocol-servers, I can confidently say this tool is a game-changer. Its seamless integration and intuitive design make information retrieval easy and efficient. Whether you're a developer or just looking to enhance your search capabilities, google-search-mcp is a must-have. Highly recommended!