Apps Script MCP
Connects to the official Apps Script API to manage projects and files, sync projects locally, create backups and restore them, manage versions and deployments, run functions, and inspect executions and metrics.
Uses the Google Drive API to discover and list standalone Apps Script projects stored in Drive; it does not provide general Drive file management.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Apps Script MCP
Menyambungkan Claude ke Google Apps Script (script.google.com) lewat Apps Script API resmi, pakai akun Google kamu sendiri.
Tool (23)
Grup | Tool |
Status |
|
Project |
|
File |
|
Sinkron lokal |
|
Backup |
|
Versi & deploy |
|
Eksekusi |
|
Setiap tool yang menulis (write_file, delete_file, rename_file, push_project, restore_backup) menyimpan backup penuh project ke backups\ dulu, karena API Google menimpa seluruh isi project sekaligus.
delete_deployment butuh confirm=true (URL deployment mati untuk semua orang).
Related MCP server: Google Workspace MCP Server
Setup (sekali saja)
1. Aktifkan Apps Script API di akunmu
Buka https://script.google.com/home/usersettings lalu nyalakan Google Apps Script API.
2. Buat OAuth client di Google Cloud
https://console.cloud.google.com/ lalu buat project baru (misal
appscript-mcp).APIs & Services > Library: aktifkan Apps Script API dan Google Drive API.
APIs & Services > OAuth consent screen: tipe External, isi nama app, tambahkan email kamu di Test users.
APIs & Services > Credentials > Create credentials > OAuth client ID, tipe Desktop app.
Download JSON-nya, simpan sebagai
C:\path\to\appscript-mcp\credentials.json.
3. Install dan login
pip install -r C:\path\to\appscript-mcp\requirements.txt
python C:\path\to\appscript-mcp\server.py --authBrowser terbuka, login, izinkan. Token tersimpan di token.json.
Peringatan "Google hasn't verified this app" itu normal untuk app pribadi: klik Advanced > Go to ....
4. Daftarkan ke MCP client
{
"mcpServers": {
"appscript": {
"command": "python",
"args": ["C:\\path\\to\\appscript-mcp\\server.py"]
}
}
}Supaya run_function jalan (opsional, syarat dari Google)
Baca/tulis/deploy kode langsung bisa setelah setup di atas. Menjalankan fungsi dari luar butuh tambahan:
Samakan GCP project. Di editor Apps Script: Project Settings > Google Cloud Platform (GCP) Project > Change project, masukkan project number dari project Cloud di langkah 2.
Deploy sebagai API Executable (atau pakai
dev_mode=truekalau kamu owner-nya). Bisa lewat MCP: tambahkan keappsscript.json:"executionApi": { "access": "MYSELF" }lalu
create_deployment.Scope token harus mencakup semua scope yang dipakai script (bukan cuma fungsi yang dipanggil). Contoh script yang akses Spreadsheet dan fetch URL:
setx APPSCRIPT_EXTRA_SCOPES "https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/script.external_request"Hapus
token.json, jalankan lagipython server.py --auth, restart MCP client. Daftar scope script ada diappsscript.json(oauthScopes) atau di Project Settings.
Batasan dari Google: parameter dan hasil hanya string/angka/boolean/array/object, maksimal 6 menit per eksekusi, tidak bisa membuat installable trigger, service account tidak didukung.
Catatan
list_projectshanya menampilkan script standalone di Drive. Script yang terikat ke Sheet/Doc dibuka pakai scriptId-nya (Extensions > Apps Script > Project Settings > Script ID).credentials.json,token.json, danbackups\sudah masuk.gitignore. Jangan di-commit atau dibagikan.Env opsional:
APPSCRIPT_CREDENTIALS,APPSCRIPT_TOKEN,APPSCRIPT_BACKUP_DIR,APPSCRIPT_EXTRA_SCOPES.
Lisensi
MIT, lihat LICENSE.
Proyek independen, tidak berafiliasi dengan Google.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give Claude only the Google Drive files you choose. Every action logged.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Personal CRM for Claude. Contacts live as plain-text files in your own Google Drive.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides integration with the Google Apps Script API, allowing management of script projects, deployments, versions, and executions through any MCP-compatible client like Claude Desktop or VS Code.1660MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to interact with Google Workspace services (Drive, Docs, Sheets, Slides, Forms, Gmail) via OAuth 2.0 authentication and natural language commands.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to directly read and write Google Apps Script projects, including editing code, managing versions and deployments, and diagnosing trigger failures, with automatic version backups before any write operation.-
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to directly read and write Google Apps Script projects, manage versions, deployments, and inspect execution logs to debug triggers.-