Google Apps Script MCP Server

by utakata

Not rated
GitHub

About

Manage Google Apps Script projects, including creation, editing, deployment, and execution. Requires Google Cloud credentials for authentication.

Details

Author
utakata
Categories
Developer Tools

Setup

Install Google Apps Script MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/utakata/google-apps-script-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Manage Google Apps Script projects, including creation, editing, deployment, and execution. Requires Google Cloud credentials for authentication.

世界初のGoogle Apps Script完全操作MCPサーバー -JSON-RPC Protocol完全準拠版

JSON-RPC Protocol汚染エラー完全修正
プロセス早期終了エラー根本解決
99%軽量化達成: 647KB → 4.82KB
Claude Desktop v0.11.6 完全対応

- スクリプトプロパティ暗号化: AES-256-GCM暗号化で機密情報を安全に保存
- セキュリティ監査: 自動的な脆弱性チェック・推奨事項の提示
- バックアップ・復元: チェックサム検証付きの安全なデータ管理
- アクセス制御: 適切な権限管理とAPIスコープ制限

- プロジェクト管理: 作成・更新・削除・一覧取得
- ファイル操作: スクリプト・HTMLファイルの読み書き・実行
- デプロイ管理: Webアプリ・アドオン・ライブラリ公開
- トリガー管理: 時間・イベント・フォーム連動
- ログ・監視: 実行ログ・エラー監視・パフォーマンス分析

- 暗号化プロパティ管理: APIキー・パスワードの安全な保存
- セキュリティ監査: 機密情報の検出・暗号化推奨
- 安全なバックアップ: 暗号化されたデータの保護
- 復元機能: チェックサム検証による完全性保証

google-apps-script-mcp-STABLE-FIXED.dxt (4.82KB)

- Claude Desktop設定を開く
- 「Extensions」タブを選択
- DXTファイルをドラッグ&ドロップまたは選択
- 「Install」をクリック

- 7つのClaspツールが自動で利用可能
- 設定不要、依存関係も自動解決
- JSON-RPC Protocol 100%準拠
- Google Cloud Consoleでプロジェクトを作成
- Google Apps Script API を有効化
- Service Accountを作成してキーをダウンロード
- 環境変数を設定:

# Service Accountキー(JSON文字列) export GOOGLE_SERVICE_ACCOUNT_KEY='{"type":"service_account","project_id":"your-project",...}' # または、ファイルパス指定 export GOOGLE_SERVICE_ACCOUNT_KEY="/path/to/service-account-key.json" # 暗号化キー(推奨) export ENCRYPTION_KEY="your-hex-encryption-key"
export GOOGLE_CREDENTIALS_PATH="/path/to/credentials.json" export GOOGLE_AUTH_CODE="your-authorization-code"

.envファイルまたは環境変数を設定後、Claude.aiの設定に以下を追加:

{ "mcpServers": { "google-apps-script-mcp": { "command": "node", "args": ["src/index-security.js"], "cwd": "/path/to/google-apps-script-mcp", "env": { "GOOGLE_SERVICE_ACCOUNT_KEY": "your-service-account-key", "ENCRYPTION_KEY": "your-encryption-key" } } } }
// APIキーを暗号化して保存 await setSecureProperty("script-id", "API_KEY", "your-secret-key", true); // 暗号化されたAPIキーを取得 const apiKey = await getSecureProperty("script-id", "API_KEY", true); // 全プロパティを一覧表示(マスキング付き) await listProperties("script-id", true, true);
// セキュリティ監査を実行 const audit = await auditProperties("script-id"); // → 機密情報の検出、暗号化推奨、統計情報 // プロパティをバックアップ const backup = await backupProperties("script-id", false); // → チェックサム付きバックアップ // バックアップから復元 await restoreProperties("script-id", backup, true); // → チェックサム検証付き復元
// 新しいGASプロジェクトを作成 const project = await createGasProject("My New Project"); console.log(プロジェクトID: ${project.scriptId});
// スクリプトファイルを作成 await createGasFile(scriptId, "main.js", "SERVER_JS",  function myFunction() { console.log("Hello from GAS!"); } ); // ファイル内容を取得 const fileContent = await getGasFile(scriptId, "main.js");
// GAS関数を実行 const result = await executeGasFunction(scriptId, "myFunction", []); console.log("実行結果:", result);
// Webアプリとしてデプロイ const deployment = await deployGasWebApp(scriptId, null, "appsscript", "初回デプロイ"); console.log(WebアプリURL: ${deployment.url});
// ❌ 平文でAPIキーを保存(危険) await setSecureProperty(scriptId, "api_key", "secret123", false); // ✅ 暗号化してAPIキーを保存(安全) await setSecureProperty(scriptId, "api_key", "secret123", true);
// 月1回実行推奨 const audit = await auditProperties(scriptId); if (audit.suspiciousKeys.length > 0) { console.warn("暗号化が必要なキーが見つかりました:", audit.suspiciousKeys); }
// 重要なプロパティは定期的にバックアップ const backup = await backupProperties(scriptId, false); // 復号化してバックアップ // 安全な場所に保存...

- dependency_check- システム環境検証とClasp CLIセットアップ確認
- clasp_setup- Clasp CLI認証セットアップガイダンス
- clasp_create- Google Apps Scriptプロジェクト作成準備
- clasp_clone- 既存プロジェクトクローン準備
- clasp_pull- プロジェクト変更取得準備
- clasp_push_and_deploy- プロジェクトプッシュ&デプロイ準備
- clasp_list- プロジェクト一覧取得

注意: STABLE版は基本的なClasp操作の準備・ガイダンスを提供します。実際のClasp実行は別途ローカル環境で行ってください。高度なセキュリティ機能については開発版をご利用ください。

- set_secure_property- 暗号化保存
- get_secure_property- 復号化取得
- delete_property- プロパティ削除
- list_properties- プロパティ一覧
- audit_properties- セキュリティ監査
- backup_properties- バックアップ
- restore_properties- 復元

https://www.googleapis.com/auth/script.projects https://www.googleapis.com/auth/script.processes https://www.googleapis.com/auth/script.deployments https://www.googleapis.com/auth/script.metrics https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.metadata.readonly

- Service Accountキーが正しいか確認
- Google Apps Script APIが有効化されているか確認
- 必要なスコープが付与されているか確認
- 暗号化キーが64文字のhex文字列か確認
- 新しい暗号化キーを生成:openssl rand -hex 32
- スクリプトIDが正しいか確認
- APIスコープにscript.projectsが含まれているか確認
- このリポジトリをフォーク
- 機能ブランチを作成 (git checkout -b feature/amazing-feature)
- 変更をコミット (git commit -m 'Add amazing feature')
- ブランチにプッシュ (git push origin feature/amazing-feature)
- Pull Requestを作成

- Google Apps Script API
-
MCP Protocol
-
Claude.ai
-
Google Cloud Console

🔒 Security First - Google Apps Script MCP Server

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.