apps-script-mcp
v0.1.0MCP server for Google Apps Script that needs no Google Cloud Console setup
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bridge_status Bridge Status
Check the bridge: its version, the Google account it runs as, and whether the Drive service is enabled (needed to create and edit projects).
run_code Run Code
Run Apps Script (JavaScript, V8) as the user and return the result and logs. `code` is a function body: use `return` to send back a JSON-serializable value. All built-in services are available (SpreadsheetApp, DocumentApp, DriveApp, GmailApp, CalendarApp, UrlFetchApp, ...). console.log and Logger.log output is returned in `logs`. There is no active document, so open files by ID or URL. Executions stop after 6 minutes.
| Parameter | Type | Description |
|---|---|---|
code * | string |
list_projects List Projects
List standalone Apps Script projects in the user's Drive, optionally filtered by a title substring. Scripts bound to a Sheet/Doc/Form are not listed, but work with the other tools when you pass their script ID.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query |
create_project Create Project
Create a standalone Apps Script project with an empty Code file.
| Parameter | Type | Description |
|---|---|---|
title * | string |
get_project Get Project
Get a standalone project's title and every file with its full source. `script_id` is the ID in the editor URL (script.google.com/d/<id>/edit).
| Parameter | Type | Description |
|---|---|---|
script_id * | string |
write_file Write File
Create or fully replace one file in a project; other files are kept. `name` has no extension ("Code", not "Code.gs"). `type` defaults to SERVER_JS, or JSON for the "appsscript" manifest; use HTML for HtmlService templates.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
script_id * | string | |
source * | string | |
type |
delete_file Delete File
Delete one file from a project (the appsscript manifest cannot be deleted).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
script_id * | string |
run_function Run Function
Run a top-level function from a project's saved code and return its result and logs. The project's .gs files are loaded into the bridge and executed there, so it runs as the user but outside the real project: there is no active document (getActiveSpreadsheet() returns null), and the project's own libraries, advanced services, script properties and triggers are not available. Only standalone projects can be loaded. `args` must be JSON-serializable.
| Parameter | Type | Description |
|---|---|---|
function_name * | string | |
script_id * | string | |
args |