Google Apps Script MCP
MCP server by A1-x-Tech Community
Lets an AI assistant create, read, edit, version, deploy and run Google Apps Script projects through the Apps Script API. Built for developers who maintain Apps Script code tied to Docs, Sheets, Slides or Forms.
Install Google Apps Script MCP
Built from the published package, never by AI.
claude mcp add google-apps-script-mcp -- npx -y mcp-google-apps-scriptRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-apps-script-mcp": {
"args": [
"-y",
"mcp-google-apps-script"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Google Apps Script MCP in Claude Desktop
{
"mcpServers": {
"google-apps-script-mcp": {
"args": [
"-y",
"mcp-google-apps-script"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-apps-script-mcp": {
"args": [
"-y",
"mcp-google-apps-script"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-apps-script-mcp -- npx -y mcp-google-apps-script{
"mcpServers": {
"google-apps-script-mcp": {
"args": [
"-y",
"mcp-google-apps-script"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Google Apps Script MCP in Antigravity CLI
gemini mcp add google-apps-script-mcp npx -y mcp-google-apps-scriptGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-apps-script-mcp block.
About
Google Apps Script MCP is an MCP server from A1-x-Tech that lets an AI assistant work with Google Apps Script projects through the Apps Script API. It can create standalone and bound projects, read and update code files, snapshot immutable versions, manage deployments, run functions and read execution history and metrics. Code is edited at HEAD, while a version cannot be edited or deleted once created.
The server uses your Google account over OAuth 2.0. You can connect from the chat, where the server stores tokens locally and handles a PKCE login on 127.0.0.1, or set environment variables for CI and unattended installs. Each operation names its own Google scope. It suits developers who manage Apps Script code with an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
create_projectCreates a standalone or bound script project and returns its scriptId.update_project_contentUpdates code files at HEAD, merging by default and keeping the appsscript manifest.create_versionSnapshots HEAD as an immutable version that cannot be edited or deleted.run_functionRuns a function through an API-executable deployment and returns the result.list_processesShows the script's execution history with status and timing.get_project_metricsReturns usage metrics such as users, executions and failures.setup_instructionsPrints the Google Cloud and OAuth setup checklist.start_loginReturns a Google consent link to start the OAuth login.
What you need
- Node.js 20 or later
- A Google account that owns the Apps Script projects
- A Google Cloud project with Apps Script API enabled
- A Desktop app OAuth client
| Setting | Needed | What it is |
|---|---|---|
GOOGLE_Environment variable | Optional | Google OAuth2 client id (refresh-token flow). |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 client secret (refresh-token flow). Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing. |
GOOGLE_Environment variable | 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_Environment variable | Optional | API root override. Default: https://script.googleapis.com |
GOOGLE_Environment variable | Optional | Per-request timeout in milliseconds. Default: 60000 |
GOOGLE_Environment variable | Optional | Retries on transient errors (429 always; 5xx/network for reads). Default: 3 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Show the files in my report script and which functions failed this week
- Add a formatDate helper to the Utils file and keep the other files as they are
- Snapshot the current code as a version before we refactor
Good to know
- The API cannot list or delete script projects; keep the returned scriptId.
- run_function needs an API-executable deployment and an OAuth client from the same Cloud project.
- Apps Script stops any execution after 6 minutes.
- Execution history shows status and timing but no error messages.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Google Apps Script MCP
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Google Apps Script MCP: common questions
Do I need to edit config files to connect?
No. Saying connect Google Apps Script starts a guided setup in the chat, and tokens are saved to a local credentials file without a restart. Environment variables are an option for CI and unattended installs.
Can the server delete a script project?
No. The Apps Script API cannot delete projects, and deleting the Drive file is not covered by this server.
Why do my refresh tokens stop working after a week?
The source says OAuth refresh tokens in testing mode can expire after seven days. Publishing the OAuth app or using an Internal app in a Workspace domain avoids this.
How do I install Google Apps Script MCP?
In Claude Code run claude mcp add google-apps-script-mcp -- npx -y mcp-google-apps-script. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Apps Script MCP the official server?
Google Apps Script MCP is a community project by A1-x-Tech, not verified by a company domain.
Is Google Apps Script MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Google Apps Script MCP safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Google Apps Script MCP?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Google Apps Script MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
