Google Apps Script MCP
v1.1.2MCP server for the Google Apps Script API: projects, code, versions, deployments and executions.
Values you need
| Variable | What it is | |
|---|---|---|
GOOGLE_APPS_SCRIPT_CLIENT_ID | optional | Google OAuth2 client id (refresh-token flow). |
GOOGLE_APPS_SCRIPT_CLIENT_SECRET | optional secret | Google OAuth2 client secret (refresh-token flow). Treat it as a secret. |
GOOGLE_APPS_SCRIPT_REFRESH_TOKEN | optional secret | Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret. |
GOOGLE_APPS_SCRIPT_ACCESS_TOKEN | optional secret | Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing. |
GOOGLE_APPS_SCRIPT_OAUTH_PORT | optional | 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 | optional | API root override. Default: https://script.googleapis.com |
GOOGLE_APPS_SCRIPT_TIMEOUT_MS | optional | Per-request timeout in milliseconds. Default: 60000 |
GOOGLE_APPS_SCRIPT_MAX_RETRIES | optional | Retries on transient errors (429 always; 5xx/network for reads). Default: 3 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-google-apps-script -- npx -y mcp-google-apps-script@1.1.2Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-google-apps-script": {
"args": [
"-y",
"mcp-google-apps-script@1.1.2"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-google-apps-script": {
"args": [
"-y",
"mcp-google-apps-script@1.1.2"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp-google-apps-script": {
"args": [
"-y",
"mcp-google-apps-script@1.1.2"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-google-apps-script]
command = "npx"
args = ["-y", "mcp-google-apps-script@1.1.2"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: auth_status, set_client, start_login, finish_login, logout, create_project, get_project, get_project_content, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json