Google Apps Script MCP Server
The escape hatch: write, deploy, and execute custom code across Workspace.
Apps Script is the escape hatch for everything the other eleven services don’t cover. An assistant can create a script project, write or update its source with update_script_content, and execute deployed functions with arguments via run_script_function — custom automation authored and invoked in the same conversation.
The operational tools matter just as much: create_version, list_versions, and manage_deployment handle the versioning lifecycle, generate_trigger_code scaffolds time-driven and event triggers, and list_script_processes and get_script_metrics show what ran, what failed, and how often.
What you can ask
- “Write a script that snapshots the on-call sheet every Friday and deploy it”
- “Run the syncInventory function against the staging spreadsheet”
- “Which script executions failed this week, and why?”
All 15 Google Apps Script MCP tools
Expand any tool for its full parameter list. Tiers control how many tools the server
registers: start lean with --tool-tier core and step up to extended or complete when a workflow needs more.
Every service in one reference: full API documentation →
OAuth scopes
The server requests only the scopes for the services you enable. In read-only mode it requests just the readonly variants and skips registering write tools entirely.
script.projectscreate and edit script projectsscript.deploymentsmanage deployments and versionsscript.processesinspect executions and status
Google Apps Script MCP questions
- Can an assistant write a script and run it in the same session?
- Yes, with one Apps Script platform caveat: run_script_function executes functions from a deployed script, so the flow is create or update the source, create a deployment with manage_deployment, then invoke. All three steps are tool calls the assistant can chain.
- What are bound scripts, and are they supported?
- create_script_project creates both standalone projects and scripts bound to a specific Doc, Sheet, or Form — bound scripts are how you add custom behavior to one particular document.
- When should I reach for Apps Script instead of a native service?
- When the other services don’t expose what you need: custom triggers, Workspace APIs the server doesn’t wrap, or multi-step server-side logic that should run on Google’s infrastructure rather than through a dozen round trips.
Works alongside
All services: Gmail MCP Google Drive MCP Google Calendar MCP Google Docs MCP Google Sheets MCP Google Slides MCP Google Forms MCP Google Tasks MCP Google Contacts MCP Google Chat MCP Google Custom Search MCP Google Apps Script MCP