Back to Home
ShogoOkamoto icon

google-search-mcp

Verified Safe

by ShogoOkamoto

Overview

Enables Large Language Models (LLMs) to perform real-time web searches using Google Custom Search Engine.

Installation

Run Command
google-search-mcp

Environment Variables

  • GOOGLE_API_KEY
  • GOOGLE_CSE_ID

Security Notes

The server loads sensitive credentials (Google API Key, CSE ID) from environment variables or a .env file, which is a good practice. It uses `httpx` for network requests to a legitimate Google API endpoint. Input parameters are validated (e.g., `num_results` clamping). The server does not use `eval` or other inherently dangerous functions. The `query` string is passed directly to the Google Custom Search API, relying on Google's API to handle potential sanitization. Error messages expose `response.text` which, in rare cases, could contain sensitive information if Google's API returned such in an error, but this is a minor concern.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-11-29

Tags

Google Custom SearchLLM ToolWeb SearchModel Context ProtocolPython