MCP Google Custom Search Server logo

MCP Google Custom Search Server

by alexatnordnet

A Model Context Protocol (MCP) server that provides web search capabilities through Google's Custom Search API. This server enables Language Learning Models (LLMs) to perform web searches using a standardized interface.

View on GitHub

Last updated: N/A

What is MCP Google Custom Search Server?

This is a Model Context Protocol (MCP) server that integrates with Google's Custom Search API to provide web search functionality to Language Learning Models (LLMs). It allows LLMs to perform web searches using a standardized MCP interface.

How to use MCP Google Custom Search Server?

To use this server, you need to clone the repository, install dependencies, configure environment variables with your Google API key and Custom Search Engine ID, build the server, and then start it. You can then integrate it with MCP-compatible clients like Claude Desktop by adding the appropriate configuration to the client's config file.

Key features of MCP Google Custom Search Server

  • Seamless integration with Google Custom Search API

  • Model Context Protocol (MCP) compliant server implementation

  • Type-safe implementation using TypeScript

  • Environment variable configuration

  • Input validation using Zod

  • Configurable search results (up to 10 per query)

Use cases of MCP Google Custom Search Server

  • Enabling LLMs to perform real-time web searches

  • Providing LLMs with up-to-date information for improved responses

  • Integrating web search capabilities into LLM-powered applications

  • Augmenting LLM knowledge with external information sources

FAQ from MCP Google Custom Search Server

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a standardized interface for connecting LLMs with external tools and services.

What are the prerequisites for using this server?

You need a Google Cloud Project with Custom Search API enabled, a Custom Search Engine ID, and Node.js (v18 or higher) with npm.

How do I configure the server?

You need to set the GOOGLE_API_KEY and GOOGLE_SEARCH_ENGINE_ID environment variables.

How do I integrate this server with Claude Desktop?

Add the provided configuration snippet to your Claude Desktop config file, typically located at ~/Library/Application Support/Claude/claude_desktop_config.json.

How many search results can I retrieve per query?

You can configure the number of results to return, up to a maximum of 10.