.env.example•1.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=