Google Apps Script MCP MCP Server
io.github.A1-x-Tech/mcp-google-apps-script
What this kind of tool is for
- Automate a build, test, or deployment step you repeat by hand.
- Review or refactor code in an existing repository without leaving your agent.
- Bridge an internal service or CLI into the agent toolset.
How to compare servers like this
- Scope of control:
- Repos and CI are hard to undo; prefer tools that ask before anything irreversible.
- Environment fit:
- Match the runtime it expects (Node, Python, a container) to what you actually run.
- Maintenance signal:
- Check the last-commit date — dev tooling that lags upstream breaks first.
- Config surface:
- Prefer tools whose environment-variable or config keys are documented plainly.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the Google Apps Script MCP MCP server?
MCP server for the Google Apps Script API: projects, code, versions, deployments and executions.
How to install Google Apps Script MCP
Copy-paste configuration for popular MCP clients.
GOOGLE_APPS_SCRIPT_CLIENT_IDGoogle OAuth2 client id (refresh-token flow).
GOOGLE_APPS_SCRIPT_CLIENT_SECRETsecretGoogle OAuth2 client secret (refresh-token flow). Treat it as a secret.
GOOGLE_APPS_SCRIPT_REFRESH_TOKENsecretGoogle OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
GOOGLE_APPS_SCRIPT_ACCESS_TOKENsecretStatic OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing.
GOOGLE_APPS_SCRIPT_OAUTH_PORTFixed 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_BASEAPI root override.
GOOGLE_APPS_SCRIPT_TIMEOUT_MSPer-request timeout in milliseconds.
GOOGLE_APPS_SCRIPT_MAX_RETRIESRetries on transient errors (429 always; 5xx/network for reads).
{
"mcpServers": {
"mcp-google-apps-script": {
"command": "npx",
"args": [
"-y",
"mcp-google-apps-script"
],
"env": {
"GOOGLE_APPS_SCRIPT_CLIENT_ID": "<YOUR_GOOGLE_APPS_SCRIPT_CLIENT_ID>",
"GOOGLE_APPS_SCRIPT_CLIENT_SECRET": "<YOUR_GOOGLE_APPS_SCRIPT_CLIENT_SECRET>",
"GOOGLE_APPS_SCRIPT_REFRESH_TOKEN": "<YOUR_GOOGLE_APPS_SCRIPT_REFRESH_TOKEN>",
"GOOGLE_APPS_SCRIPT_ACCESS_TOKEN": "<YOUR_GOOGLE_APPS_SCRIPT_ACCESS_TOKEN>",
"GOOGLE_APPS_SCRIPT_OAUTH_PORT": "<YOUR_GOOGLE_APPS_SCRIPT_OAUTH_PORT>",
"GOOGLE_APPS_SCRIPT_API_BASE": "<YOUR_GOOGLE_APPS_SCRIPT_API_BASE>",
"GOOGLE_APPS_SCRIPT_TIMEOUT_MS": "<YOUR_GOOGLE_APPS_SCRIPT_TIMEOUT_MS>",
"GOOGLE_APPS_SCRIPT_MAX_RETRIES": "<YOUR_GOOGLE_APPS_SCRIPT_MAX_RETRIES>"
}
}
}
}Related MCP servers

MCP server for Google Business Profile: locations, reviews, local posts and performance metrics.

Google Calendar MCP
MCP server for the Google Calendar API: events, recurrence, invitations, availability, calendars.

Google Chat MCP
MCP server for the Google Chat API: spaces, messages, threads, reactions and memberships.

Google Contacts MCP
MCP server for the Google People API: search, create, update and delete contacts and groups.

Google CrUX MCP
Real-user Core Web Vitals from the Chrome UX Report (CrUX) API for any origin or URL.

Google Custom Search MCP
MCP server for Google Custom Search: web and image search via a Programmable Search Engine.