Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 74
  • 0 stars
  • 105 a week
  • MIT
  • Updated

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-script

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Google Apps Script MCP in Claude Code

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
SettingNeededWhat it is
GOOGLE_APPS_SCRIPT_CLIENT_IDEnvironment variableOptionalGoogle OAuth2 client id (refresh-token flow).
GOOGLE_APPS_SCRIPT_CLIENT_SECRETEnvironment variable, secretOptionalGoogle OAuth2 client secret (refresh-token flow). Treat it as a secret.
GOOGLE_APPS_SCRIPT_REFRESH_TOKENEnvironment variable, secretOptionalGoogle OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret.
GOOGLE_APPS_SCRIPT_ACCESS_TOKENEnvironment variable, secretOptionalStatic OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing.
GOOGLE_APPS_SCRIPT_OAUTH_PORTEnvironment variableOptionalFixed 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_BASEEnvironment variableOptionalAPI root override. Default: https://script.googleapis.com
GOOGLE_APPS_SCRIPT_TIMEOUT_MSEnvironment variableOptionalPer-request timeout in milliseconds. Default: 60000
GOOGLE_APPS_SCRIPT_MAX_RETRIESEnvironment variableOptionalRetries 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

A

No 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 →

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.

Google Apps Script MCP Install

Add to stack

Loading.