Skip to main content
Glama

Google Search MCP Server

by jspv
.env.example1.5 kB
# Google Search MCP Configuration # Copy this file to .env and fill in your actual values # # NOTE: Environment variables will override .env file values if both are set. # For example, if you have GOOGLE_API_KEY in both .env and as an environment # variable, the environment variable value will be used. # Google Custom Search Engine API Key # Get this from: https://console.developers.google.com/ # Environment variable: GOOGLE_API_KEY (overrides this .env setting) GOOGLE_API_KEY=your_google_api_key_here # Google Custom Search Engine ID (CX) # Get this from: https://cse.google.com/cse/all # Environment variable: GOOGLE_CX (overrides this .env setting) GOOGLE_CX=your_custom_search_engine_id_here # Optional: Restrict results to specific domains (comma-separated) # Examples: # ALLOW_DOMAINS=example.com # ALLOW_DOMAINS=example.com, docs.python.org # If set, results outside these domains will be filtered out. # Environment variable: GOOGLE_ALLOW_DOMAINS GOOGLE_ALLOW_DOMAINS= # Optional: Logging controls # Enable/disable logging of search queries and timings (stdout) # LOG_QUERIES accepts: 1/true/yes/on (case-insensitive) to enable GOOGLE_LOG_QUERIES= # Include full query text in logs (off by default to avoid sensitive content) GOOGLE_LOG_QUERY_TEXT= # Log level: DEBUG|INFO|WARNING|ERROR|CRITICAL (default INFO) GOOGLE_LOG_LEVEL= # Optional: Write logs to a file in addition to stderr # Use an absolute path if the client sets a different working directory GOOGLE_LOG_FILE=

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jspv/google_search_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server