npm · mcp-google-apps-script
$npx -y mcp-google-apps-script@1.0.0 GOOGLE_APPS_SCRIPT_CLIENT_ID — Google OAuth2 client id (refresh-token flow).
GOOGLE_APPS_SCRIPT_CLIENT_SECRET · secret — Google OAuth2 client secret (refresh-token flow). Treat it as a secret.
GOOGLE_APPS_SCRIPT_REFRESH_TOKEN · secret — Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
GOOGLE_APPS_SCRIPT_ACCESS_TOKEN · secret — Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing.
GOOGLE_APPS_SCRIPT_OAUTH_PORT — Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login.
GOOGLE_APPS_SCRIPT_API_BASE — API root override.
GOOGLE_APPS_SCRIPT_TIMEOUT_MS — Per-request timeout in milliseconds.
GOOGLE_APPS_SCRIPT_MAX_RETRIES — Retries on transient errors (429 always; 5xx/network for reads).