Google Search MCP Server

Integrations

  • Uses environment variables to securely store and load Google API credentials and Custom Search Engine IDs for authentication.

  • Provides Google Custom Search functionality, allowing AI agents to search the web through Google's search engine API and retrieve search results programmatically.

  • Integrates with Google Cloud's Custom Search API, enabling access to customized search experiences with specific search engine configurations.

Google Search MCP Server

A Model Context Protocol (MCP) server that provides Google Custom Search functionality.

Installation

Installing via Smithery

To install google-search-mcp-server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @gradusnikov/google-search-mcp-server --client claude

Manual Installation

  1. Clone the repository:
git clone https://github.com/gradusnikov/google-search-mpc-server.git cd google-search-mpc-server
  1. Install dependencies:
pip install fastmcp google-api-python-client python-dotenv

Configuration

Create a .env file in the project root with the following variables:

GOOGLE_API_KEY=your_google_api_key GOOGLE_CSE_ID=your_custom_search_engine_id

To obtain these credentials:

  1. Create a Google Cloud project and enable the Custom Search API
  2. Generate an API key from the Google Cloud Console
  3. Create a Custom Search Engine at https://cse.google.com/cse/all and get its ID

Usage

Start the server using MCP:

mcp run google_search_mcp_server.py

or add the server to Claude Desktop app CLAUDE_DIRECTORY/claude_desktop_config.json. For example if you are using Windows Subsystem for Linux (WSL) it may look like this:

"google-search": { "command": "wsl.exe", "args": [ "bash", "-c", "source /home/[user]/anaconda3/etc/profile.d/conda.sh && conda activate mcp && /home/[user]/anaconda3/bin/mcp run /home/[user]/google-search-mpc-server/google_search_mcp_server.py" ] },
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server that enables Claude to perform Google Custom Search operations by connecting to Google's search API.

  1. Installation
    1. Installing via Smithery
    2. Manual Installation
  2. Configuration
    1. Usage

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        Provides web search capabilities using Google Custom Search API, enabling users to perform searches through a Model Context Protocol server.
        Last updated -
        2
        209
        17
        JavaScript
        MIT License
        • Apple
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables LLMs to perform web searches using Google's Custom Search API through a standardized interface.
        Last updated -
        1
        7
        TypeScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides DuckDuckGo search functionality for Claude, enabling web search capabilities through a clean tool interface with rate limiting support.
        Last updated -
        1
        60
        15
        TypeScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.
        Last updated -
        854
        4
        MIT License
        • Apple

      View all related MCP servers

      ID: zu75yt6gng